/* The Sing Social. Overprint: two-ink print on toothy paper. */

:root {
  color-scheme: light;
  --paper: #eee8da;
  --paper-deep: #e2d9c4;
  --ink: #122618;
  --forest: #122618;
  --forest-lift: #1b3623;
  --green: #1f6b43;
  --mint: #a9d8b0;
  --ochre: #cf8a26;
  --ochre-deep: #744809;
  --body: #2b3f31;
  --body-on-dark: #d7e2d3;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --text: 'Hanken Grotesk', system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 78rem;
  --bg: var(--forest);
  --fg: var(--paper);
  --fg-soft: var(--body-on-dark);
  --line: rgba(238, 232, 218, 0.38);
  --label: #e3a64a;
  --accent: var(--mint);
  --rx: 5px;
  --ry: -4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--green) var(--forest); }

body {
  background: var(--bg);
  color: var(--fg-soft);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Print tooth. Fixed, tiny, never animated. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--ochre); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { top: 0.75rem; }

/* ---------- Type ---------- */

.display, h1, h2, h3, .h3 {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--fg);
  letter-spacing: -0.005em;
  word-spacing: 0.1em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 10.5vw, 7rem); line-height: 0.92; }
h2 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 0.95; }
h3, .h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1; }

.lede { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.4; color: var(--fg); max-width: 34ch; font-weight: 500; }
p { max-width: 65ch; }
p + p { margin-top: 1em; }
p { color: var(--fg-soft); }

.wordmark {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wm-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.wordmark em { font-style: italic; font-weight: 800; color: var(--mint); }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.on-dark { background: var(--forest); }
.on-lift { background: var(--forest-lift); }
.on-ochre, .on-mint, .on-paper {
  --fg: var(--ink); --fg-soft: #1d3324; --line: var(--ink); --label: var(--ochre-deep); --accent: var(--ink);
}
.on-ochre { background: var(--ochre); }
.on-mint { background: var(--mint); }
.on-paper { background: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a:not(.btn) {
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--fg);
  padding-block: 0.4rem; border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.nav a:not(.btn):hover, .nav a[aria-current='page'] { border-bottom-color: var(--ochre); }
.menu-btn {
  display: none; background: none; border: 2px solid var(--fg); color: var(--fg);
  font: 700 0.9rem var(--text); padding: 0.55rem 0.9rem; cursor: pointer; min-height: 44px;
}

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: fixed; inset: 4.5rem 0 0 0; background: var(--forest);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 2rem var(--gutter) 3rem; gap: 0.25rem; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) {
    color: var(--paper); font-family: var(--display); font-stretch: 68%; font-weight: 900;
    font-size: 2.6rem; text-transform: uppercase; padding-block: 0.35rem; line-height: 1;
  }
  .nav .btn { margin-top: 1.5rem; }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.85rem 1.7rem;
  background: transparent; color: var(--ink);
  font: 700 1rem var(--text); letter-spacing: 0.01em; text-decoration: none;
  border: 2px solid var(--paper); border-radius: 0; cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--ochre);
}
.btn::before {
  content: ''; position: absolute; inset: -2px; z-index: -2;
  background: var(--green);
  transform: translate(5px, 4px);
  transition: transform 0.25s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(1px, 1px); }
.btn:active { transform: translate(1px, 1px); }
.btn.quiet { background: transparent; }
.btn.quiet::before, .btn.quiet::after { display: none; }
.btn.quiet { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.quiet:hover { background: var(--fg); color: var(--bg-contrast, var(--forest)); }
.on-ochre .btn, .on-mint .btn, .on-paper .btn { border-color: var(--ink); }
.on-ochre .btn::after { background: var(--paper); }
.on-ochre .btn::before { background: var(--forest); }
.on-ochre .btn.quiet:hover { color: var(--ochre); }
.text-link { font-weight: 700; color: var(--fg); text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: var(--label); }

/* ---------- Hero ---------- */

.hero { overflow-x: clip; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.reg { isolation: isolate; }
.reg .line { position: relative; display: block; width: fit-content; padding-inline: 0.12em; }
.reg .line > span { position: relative; display: inline-block; transform: translate(calc(var(--rx) * -0.35), calc(var(--ry) * -0.35)); }
.reg .line::before {
  content: ''; position: absolute; inset: -0.02em -0.2em -0.06em -0.2em; z-index: -1;
  background: var(--mint); mix-blend-mode: screen;
  transform: translate(var(--rx), var(--ry));
}
.reg .line.b::before { background: var(--ochre); }
.reg .line > span { color: var(--ink); }
.reg .line.b { margin-top: -0.06em; margin-left: clamp(0.5rem, 4vw, 3.5rem); }
.js .reg { animation: settle 1.1s var(--ease) 0.1s backwards; }
@property --rx { syntax: '<length>'; inherits: true; initial-value: 5px; }
@property --ry { syntax: '<length>'; inherits: true; initial-value: -4px; }
@keyframes settle { from { --rx: 9px; --ry: -7px; } }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: end; }
.hero-copy .lede { margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.place { margin-top: 1.5rem; font-weight: 600; font-size: 0.95rem; color: var(--fg); }

.ticket {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--paper-deep); border: 2px solid var(--ink);
  padding: 1.25rem 1.5rem 1.25rem 1.5rem; max-width: 20rem; width: 100%;
  transform: rotate(-2.2deg);
  transition: transform 0.4s var(--ease);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket:hover, .ticket:focus-visible { transform: rotate(-0.6deg) translateY(-3px); }
.ticket .t-top { font-family: var(--display); font-stretch: 68%; font-weight: 900; font-size: 2.2rem; line-height: 0.95; text-transform: uppercase; }
.ticket .t-rule { border: 0; border-top: 2px dashed var(--ink); margin: 0.9rem 0; opacity: 0.7; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1rem; font-size: 0.95rem; font-weight: 600; }
.ticket dt { color: var(--ochre-deep); font-weight: 700; }
.ticket .t-go { margin-top: 0.9rem; font-weight: 700; font-size: 0.95rem; }

@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .ticket { justify-self: end; }
}

/* ---------- Idea (alone / together) ---------- */

.idea { overflow: hidden; }
.idea-grid { display: grid; gap: 3rem; align-items: center; }
.idea .discs { position: relative; height: clamp(18rem, 42vw, 30rem); }
.disc {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; width: 62%; aspect-ratio: 1;
  transition: transform 1.4s var(--ease);
}
.disc.d1 { background: var(--green); left: 0; top: 4%; }
.disc.d2 { background: var(--ochre); left: 30%; top: 0; }
.disc.d3 { background: #d9efdc; left: 15%; top: 32%; opacity: 0.5; }
.js .idea:not(.in) .d1 { transform: translate(-14%, 6%); }
.js .idea:not(.in) .d2 { transform: translate(14%, -6%); }
.js .idea:not(.in) .d3 { transform: translate(0, 18%); }
@media (min-width: 900px) { .idea-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* ---------- Rows (what it is) ---------- */

.rows { border-top: 2px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.row { display: grid; gap: 0.75rem 3rem; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 2px solid var(--line); }
.row h3 { position: relative; width: fit-content; }
@media (min-width: 820px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; } }
.row:hover h3 span { background: var(--mint); color: var(--ink); }
.row h3 span { transition: background 0.3s; padding-inline: 0.1em; margin-inline: -0.1em; }

/* ---------- Two-column prose ---------- */

.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .split.even { grid-template-columns: 1fr 1fr; } }
.prose p { font-size: 1.1rem; }

/* ---------- Page heads ---------- */

.page-head { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 2px solid var(--line); }
.page-head h1 { font-size: clamp(3rem, 9vw, 6.25rem); }
.page-head .lede { margin-top: 1.75rem; }
.page-head .reg .line.b { margin-left: 0; margin-top: 0; }
.page-head { overflow-x: clip; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 0; margin-top: 3rem; border-top: 2px solid var(--line); }
.step { display: grid; gap: 0.6rem 3rem; padding-block: 2rem; border-bottom: 2px solid var(--line); }
@media (min-width: 820px) { .step { grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; } }
.step .when { font-weight: 700; color: var(--label); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { margin-top: 2.5rem; border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  font-family: var(--display); font-stretch: 68%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.05; color: var(--fg); padding-block: 1.25rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 2rem; line-height: 1; transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; font-size: 1.05rem; }

/* ---------- Facts list ---------- */

.facts { margin-top: 2.5rem; border-top: 2px solid var(--line); }
.fact { display: grid; gap: 0.25rem 2rem; padding-block: 1.1rem; border-bottom: 2px solid var(--line); }
@media (min-width: 700px) { .fact { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; } }
.fact dt { font-weight: 700; color: var(--label); }
.fact dd { color: inherit; }

/* ---------- Forms ---------- */

.form-card { max-width: 38rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; font: 500 1.05rem var(--text);
  background: var(--paper); color: var(--ink); border: 2px solid var(--fg); border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder { color: #5d6e61; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.field label { color: var(--fg); }
.field .err { display: none; font-weight: 600; font-size: 0.9rem; margin-top: 0.35rem; }
.field .err { color: #ffc9b8; }
.on-ochre .field .err, .on-mint .field .err, .on-paper .field .err { color: #7a210c; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #ff8a65; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; margin-top: 1rem; }
.form-fail { display: none; margin-top: 1rem; font-weight: 600; }
.form-fail.show { display: block; }

.done { display: none; background: var(--mint); color: var(--ink); border: 2px solid var(--paper); padding: 2rem; max-width: 38rem; position: relative; }
.done.show { display: block; }
.done .h3 { margin-bottom: 0.75rem; color: var(--ink); }
.done p { color: var(--ink); }

/* ---------- Event / journal / members ---------- */

.slot { border: 2px dashed var(--line); padding: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; background: transparent; }
.slot .h3 { margin-bottom: 0.5rem; }
.list-plain { list-style: none; margin-top: 1.5rem; border-top: 2px solid var(--line); }
.list-plain li { padding-block: 1rem; border-bottom: 2px solid var(--line); font-weight: 600; color: var(--fg); }

.posts { margin-top: 2.5rem; border-top: 2px solid var(--line); }
.post-link { display: grid; gap: 0.5rem 3rem; padding-block: 2rem; border-bottom: 2px solid var(--line); text-decoration: none; color: inherit; }
.post-link:hover h3 { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--ochre); text-underline-offset: 0.12em; }
@media (min-width: 820px) { .post-link { grid-template-columns: 10rem minmax(0, 1fr); } }
.post-link time, .post-meta { font-weight: 700; color: var(--label); font-size: 0.95rem; }
.article { max-width: 42rem; }
.article h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); margin-bottom: 1.5rem; }
.article p { font-size: 1.15rem; max-width: none; }
.article h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 2.5rem 0 0.75rem; }

/* ---------- Footer ---------- */

.site-footer { background: #0b1a10; color: var(--body-on-dark); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-family: var(--text); font-stretch: 100%; font-weight: 700; letter-spacing: 0.04em; text-transform: none; color: var(--mint); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .small { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(238, 232, 218, 0.3); font-size: 0.9rem; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .idea:not(.in) .disc { transform: none; }
  .btn, .btn::before, .ticket, .disc { transition: none; }
}

@media (max-width: 520px) {
  .reg .line.b { margin-left: 0.75rem; }
  .ticket { max-width: none; }
}
