/* Pixel Syndicate — site styles. Generated site; edit here, then rebuild pages. */

:root {
  color-scheme: light dark;

  --paper: #faf9f5;
  --paper-2: #f2f0e8;
  --ink: #15140f;
  --muted: #5d5b50;
  --line: #e4e1d6;
  --accent: #d9301b;
  --accent-ink: #ffffff;
  --focus: #1a6dff;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --measure: 40rem;
  --wrap: 74rem;
  --step: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13120e;
    --paper-2: #1c1a15;
    --ink: #f4f1e7;
    --muted: #a7a493;
    --line: #2b291f;
    --accent: #ff5a3c;
    --accent-ink: #14120c;
    --focus: #6aa4ff;
  }
}

:root[data-theme="light"] {
  --paper: #faf9f5; --paper-2: #f2f0e8; --ink: #15140f; --muted: #5d5b50;
  --line: #e4e1d6; --accent: #d9301b; --accent-ink: #ffffff; --focus: #1a6dff;
}
:root[data-theme="dark"] {
  --paper: #13120e; --paper-2: #1c1a15; --ink: #f4f1e7; --muted: #a7a493;
  --line: #2b291f; --accent: #ff5a3c; --accent-ink: #14120c; --focus: #6aa4ff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.5rem); }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.02rem; }
.brand .glyph { width: 1.4rem; height: 1.4rem; display: inline-block; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.9rem); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
.nav .join { color: var(--accent-ink); background: var(--accent); padding: 0.45rem 0.9rem; border-radius: 999px; }
.nav .join:hover { color: var(--accent-ink); filter: brightness(1.05); }

@media (max-width: 34rem) {
  .nav .label-full { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; text-decoration: none; padding: 0.8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.7rem, 8.5vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 850; margin: 0; }
.hero h1 .b { color: var(--accent); display: block; }
.hero .lede { max-width: 34rem; font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem); color: var(--muted); margin: 1.6rem 0 2.2rem; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.cta-row.mt { margin-top: 1.6rem; }
.cta-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.1rem; }

/* Generic section */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 1.2rem; font-weight: 800; }
.section .kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin: 0 0 0.9rem; }
.section p { max-width: var(--measure); color: var(--ink); }
.section p.big { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem); color: var(--ink); line-height: 1.45; }

/* Refuse grid */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid .cell { background: var(--paper); padding: 1.5rem 1.4rem; }
.grid .cell h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.grid .cell p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: none; }

/* Closing band */
.band { padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; background: var(--ink); color: var(--paper); }
.band p.line { font-size: clamp(1.6rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 850; letter-spacing: -0.025em; line-height: 1.02; margin: 0 auto 1.8rem; max-width: 22rem; }
.band .btn-primary { background: var(--accent); }

/* Article / prose (generated pages) */
.prose-head { padding: clamp(2.8rem, 7vw, 5rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.prose-head .kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin: 0 0 0.8rem; }
.prose-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.03em; line-height: 1; margin: 0; font-weight: 850; }

.prose { max-width: var(--measure); margin: 0 auto; padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(3rem, 7vw, 5rem); }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.015em; line-height: 1.12; margin: 2.6em 0 0.7em; font-weight: 800; scroll-margin-top: 5rem; }
.prose h2:first-of-type { margin-top: 0.5em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; font-weight: 700; }
.prose p { margin: 0 0 1.15em; }
.prose p:first-child { font-size: 1.15em; color: var(--ink); }
.prose .lead-block p:first-child { color: var(--muted); }
.prose .updated { color: var(--muted); margin-top: 2.4em; }

/* Footer */
.site-footer { padding: clamp(2.5rem, 6vw, 4rem) 0; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: baseline; justify-content: space-between; }
.site-footer .brand { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .tag { color: var(--muted); }
.site-footer .dot { color: var(--accent); }

/* Apply form */
.prose-head-lede { max-width: var(--measure); color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); margin: 1.1rem 0 0; }
.preview-banner { margin: 1.5rem 0 0; padding: 0.85rem 1.1rem; border: 1px solid var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font-weight: 600; font-size: 0.96rem; }
.form-wrap { max-width: 46rem; margin: 0 auto; padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(3rem, 7vw, 5rem); }

#apply-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.8rem 0 0.4rem; }
#apply-form fieldset:first-of-type { border-top: 0; padding-top: 0.5rem; }
#apply-form legend { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; padding: 0; margin-bottom: 1rem; }
.fieldset-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.1rem; }

.grid-2 { display: grid; gap: 1.1rem 1.3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field-wide { margin-top: 0.2rem; }
.field .lbl { font-weight: 600; font-size: 0.95rem; }
.field .help { color: var(--muted); font-size: 0.86rem; }
.req { color: var(--accent); }

#apply-form input, #apply-form select, #apply-form textarea {
  font: inherit; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%;
}
#apply-form textarea { resize: vertical; min-height: 3rem; }
#apply-form input:focus, #apply-form select:focus, #apply-form textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent;
}

.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.6rem 0 0; font-size: 0.97rem; color: var(--ink); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: 0 0 auto; accent-color: var(--accent); }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; margin-top: 1.8rem; }
#apply-form button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; }
.form-status.note { color: var(--muted); }
.form-status.ok { color: var(--ink); }
.form-status.error { color: var(--accent); }

/* Join / pricing (join.html). CSS only toggle: prices live in the markup and
   the checkbox flips which billing period shows. No script required to read. */
.pricing { padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }

/* Focusable but visually hidden: the switch label is the visible control. */
.billing-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.billing-row { display: flex; justify-content: center; margin: 0 0 clamp(1.8rem, 4vw, 2.8rem); }
.billing-switch { display: inline-flex; align-items: center; gap: 0.9rem; cursor: pointer; font-weight: 700; user-select: none; }
.billing-opt { color: var(--muted); transition: color 0.15s ease; }
.billing-opt-monthly { color: var(--ink); }
.billing-track { position: relative; width: 3.4rem; height: 1.9rem; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--line); flex: 0 0 auto; }
.billing-thumb { position: absolute; top: 0.2rem; left: 0.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent); transition: transform 0.18s ease; }
.billing-input:focus-visible ~ .billing-row .billing-switch { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.billing-input:checked ~ .billing-row .billing-opt-monthly { color: var(--muted); }
.billing-input:checked ~ .billing-row .billing-opt-yearly { color: var(--ink); }
.billing-input:checked ~ .billing-row .billing-thumb { transform: translateX(1.5rem); }

.pricing-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 62rem) { .pricing-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; } }

.tier { display: flex; flex-direction: column; gap: 1.15rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.1rem); }
.tier-head { display: flex; flex-direction: column; gap: 0.5rem; }
.tier-name { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.tier-flag { margin: 0; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.tier-price { margin: 0; }
.price { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price .amt { font-size: clamp(2.6rem, 2rem + 2.6vw, 3.5rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.tier-lock { margin: 0.7rem 0 0; color: var(--muted); }
.tier-list { list-style: none; margin: 0; padding: 1.15rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.tier-list li { position: relative; padding-left: 1.6rem; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; background: var(--accent); border-radius: 2px; }
.tier-cta { width: 100%; justify-content: center; margin-top: auto; }

/* The boldness, spent once: the founding card is the loud, inverted surface. */
.tier-founding { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 1.4rem 3rem color-mix(in srgb, var(--ink) 28%, transparent); }
.tier-founding .tier-name { color: var(--paper); }
.tier-founding .tier-flag { color: var(--paper); }
.tier-founding .price .amt { color: var(--paper); }
.tier-founding .price .per, .tier-founding .tier-lock { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.tier-founding .tier-list { border-top-color: color-mix(in srgb, var(--paper) 22%, transparent); }
.tier-founding .tier-list li::before { background: var(--paper); }

.bill-yearly { display: none; }
.billing-input:checked ~ .pricing-grid .bill-monthly { display: none; }
.billing-input:checked ~ .pricing-grid .bill-yearly { display: block; }

.roster-note { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.roster-note .wrap { max-width: 48rem; }
.roster-note h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 850; }
.roster-note p { margin: 0; color: var(--ink); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: var(--measure); }

/* Theme switch. The button stamps :root[data-theme]; those palette blocks
   already exist and outrank the prefers-color-scheme block, so a forced choice
   wins over the OS. Ships hidden; JS reveals it so no-JS keeps the OS theme. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; flex: 0 0 auto; transition: color 0.15s ease, border-color 0.15s ease; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .icon { width: 1.2rem; height: 1.2rem; display: block; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-moon { display: none; }
  .theme-toggle .icon-sun { display: block; }
}
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
