/* ---------------------------------------------------------------
   Transmasc Wrestling — base styles
   Deliberately minimal. Headings use Kenyan Coffee (the broadcast
   display face); everything else is a plain system sans.
   Tweak the tokens in :root to theme later.
   --------------------------------------------------------------- */

/* Kenyan Coffee Bold — display face for headings + link buttons.
   Self-hosted OTF (same file the OBS graphics embed). */
@font-face {
  font-family: "Kenyan Coffee";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/kenyan-coffee-bold.otf") format("opentype");
}

/* Work Sans — body / all non-heading text. Self-hosted variable
   woff2 (from Google Fonts, OFL). One file covers weights 400-700. */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/worksans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/worksans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Sancreek — only used inside the inline logo SVG on the home page.
   (The standalone /assets/wrestling.svg embeds its own copy.) */
@font-face {
  font-family: "Sancreek";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sancreek-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sancreek";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/sancreek-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f1ea;           /* page, behind the box — warm paper */
  --surface: #fffdf8;      /* the content box — warm white */
  --fg: #221f1b;
  --muted: #6a6258;
  --accent: #7a4fc7;       /* friendly violet, bridges the logo gradient */
  --accent-hover: #b0509b; /* orchid — echoes the logo's pink end */
  --border: #e7ded0;
  --btn-bg: #f1ebdf;
  --radius: 14px;
  --maxw: 42rem;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Kenyan Coffee", "Arial Narrow", Impact, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e13;
    --surface: #191620;
    --fg: #ece7ec;
    --muted: #a49ca9;
    --accent: #bb9df0;
    --accent-hover: #e79ad4;
    --border: #332d3b;
    --btn-bg: #201b28;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 1.5rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.75rem 2rem 3rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

@media (max-width: 34rem) {
  .wrap { padding: 2rem 1.15rem 2.25rem; }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.25rem; scroll-margin-top: 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

p { margin: 0 0 1rem; }

/* Home hero */
.hero { text-align: center; margin-bottom: 2rem; }
.logo {
  display: block;
  margin: 0 auto 1rem;
  width: 280px;
  max-width: 100%;
  height: auto;      /* keep the SVG's 296:178 aspect ratio */
}
.tagline { color: var(--muted); }

.blurb { margin-bottom: 2rem; text-align: center; }

/* Button-style links */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
}
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: var(--surface);
}

/* Interior pages */
.back { font-size: 0.95rem; }
.back a { text-decoration: none; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

.pay li { margin-bottom: 0.6rem; }

.thanks {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--btn-bg);
}
.thanks h2 { margin-top: 0; }

/* Table of contents (e.g. the Resources section on /help) */
.toc {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--btn-bg);
}
.toc ul {
  margin: 0;
  padding-left: 1.1rem;
}
.toc li {
  margin-bottom: 0.2rem;
}

/* Anonymous message form (contact page) */
.concern-form {
  margin: 1.25rem 0 0.75rem;
}
.concern-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.concern-form textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
}
.concern-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.concern-form .cf-turnstile {
  margin-top: 0.85rem;
}
.concern-form button {
  margin-top: 0.85rem;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.concern-form button:hover:not(:disabled) {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: var(--surface);
}
.concern-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-note {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-note.ok { color: var(--accent); }
.form-note.err { color: #c0392b; }

/* Small logo at the foot of interior pages */
.page-foot {
  margin-top: 3.5rem;
  text-align: center;
}
.page-foot .sitemark {
  display: inline-block;
  width: 170px;
  max-width: 55%;
  height: auto;
  opacity: 0.8;
}

.foot {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
