/* Twin Tiers Wrestling Club — site styles
   Look: a printed tournament program. Paper, black ink, ruled lines,
   a serif for headings, mono for labels and numbers. */
:root {
  --paper: #f5f1e8;
  --card: #fbf8f1;
  --ink: #191714;
  --text: #2f2b25;
  --muted: #615a4e;
  --rule: #cfc7b6;
  --blue: #2a5b98;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --max: 1120px;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 1.02rem;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

/* Touch devices (phones, tablets) can text and call; computers with a
   mouse can't, so they get the number and email to copy instead. */
@media (hover: hover) and (pointer: fine) {
  .touch-only {
    display: none !important;
  }
}

@media not all and (hover: hover) and (pointer: fine) {
  .desktop-only {
    display: none !important;
  }
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px double var(--ink);
}

.mast-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.3rem;
}

.nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.85rem !important;
  border: 1.5px solid var(--ink);
  padding: 0.4rem 0.7rem;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Lines turn into an X while the menu is open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  font: 600 1rem var(--sans);
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(25, 23, 20, 0.06);
}

.btn-sm {
  flex-shrink: 0;
  min-height: 40px;
  min-width: 6.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.btn-link:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.75rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

/* The club logo in team colors, fixed behind the whole page: the sections scroll over it,
   and each section keeps its top rule so the page still reads in clear sections */
.page-watermark {
  position: fixed;
  z-index: 0;
  left: 50%;
  top: calc(50% + var(--header-h) / 2);
  width: min(760px, 92vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media print {
  .page-watermark {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 em {
  font-style: italic;
}

.lead {
  font-size: 1.15rem;
  max-width: 33rem;
  margin: 1.4rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.info-card {
  border: 1px solid var(--ink);
  /* Slightly see-through so the crest behind it shows faintly */
  background: rgba(251, 248, 241, 0.86);
}

.info-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ink);
}

.info-card dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
}

.info-card dt,
.info-card dd {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.info-card dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.95rem;
}

.info-card dd {
  font-weight: 600;
  color: var(--ink);
}

.info-card dd a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.info-card dl > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-note {
  border-top: 1px solid var(--ink);
  padding: 0.85rem 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--ink);
}

.section-grid {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 3rem;
  align-items: start;
}

.section-label {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
  border-top: 3px solid var(--ink);
  padding-top: 0.6rem;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 44rem;
}

.statement + .statement {
  margin-top: 1rem;
}

.statement-follow {
  font-size: 1.12rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.list-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 2.5rem 0 0.6rem;
}

.list-title:first-child {
  margin-top: 0;
}

/* Goal */
.goal-close {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 42rem;
}

/* Results */
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

.results-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.results-panel {
  margin-top: 2.25rem;
}

.empty-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  padding: 0.5rem 0 1rem;
}

.results {
  border-top: 1px solid var(--ink);
  margin-bottom: 0.5rem;
}

.results li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.r-mark {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.2rem;
}

.r-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.r-name em {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-left: 0.35rem;
}

.r-detail {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

#results .btn-link {
  margin-top: 1.25rem;
}

/* How to join */
.notice {
  margin-top: 1.25rem;
  max-width: 42rem;
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 0.85rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}

.notice-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.steps {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
}

.steps strong {
  display: block;
  color: var(--ink);
}

.steps span {
  color: var(--muted);
}

.steps a {
  color: var(--blue);
  font-weight: 600;
}

/* Prices */
.price-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.price-table h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
}

.price-sub {
  color: var(--muted);
  margin: 0.2rem 0 1rem;
}

.price-sub a {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 3px;
}

.price-list {
  border-top: 1px solid var(--ink);
  margin-bottom: 1.25rem;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.price-list i {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-0.3em);
}

.price-list b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

.price-list small {
  font-size: 0.78rem;
  color: var(--muted);
}

.price-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Coach */
.coach-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
}

.coach-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.coach-competitor {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

/* Photos are mounted like prints: thin ink border on a paper card */
.photo {
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 6px;
}

.photo img {
  width: 100%;
  height: auto;
}

.photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--muted);
  padding: 0.5rem 0.2rem 0.15rem;
}

.coach-intro .list-title {
  margin-top: 1.75rem;
}

.ruled {
  border-top: 1px solid var(--ink);
}

.ruled li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
}

.coach-intro p {
  margin-bottom: 1rem;
}

/* Contact */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact-copy {
  border: 1px solid var(--ink);
  background: var(--card);
  max-width: 36rem;
  margin-top: 1.75rem;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.copy-row + .copy-row {
  border-top: 1px solid var(--rule);
}

.copy-value {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.copy-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-value span:last-child,
.copy-value a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.copy-value a:hover {
  text-decoration: underline;
}

.contact-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--ink);
  max-width: 44rem;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.contact-list dd a {
  color: var(--blue);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 3px double var(--ink);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.footer-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

/* Phone-only bottom action bar */
.mobile-bar {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .price-columns,
  .coach-top,
  .coach-competitor {
    grid-template-columns: 1fr;
  }

  .coach-photo {
    max-width: 340px;
  }

  .podium-photo {
    max-width: 240px;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .section-grid {
    gap: 1.75rem;
  }

  .section-label {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 3px double var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.95rem !important;
    padding: 0.8rem !important;
    border: 1.5px solid var(--ink) !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .price-table .btn,
  .results-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.25rem 0;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .results li {
    grid-template-columns: 4.25rem 1fr;
    gap: 0.75rem;
  }

  .info-card dl {
    grid-template-columns: 6.25rem 1fr;
  }

  /* Keep the main actions one tap away while scrolling */
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--ink);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .mobile-bar.show {
    transform: none;
  }

  .mobile-bar .btn {
    min-height: 46px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
