/* Needle Tycoon: the site. "Golden Hour Workshop", like the game: charcoal
   ink, panels a shade lighter, one amber accent, sage and rust for small
   marks, a serif for names and Inter for everything else. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --ink: #1c1a17;
  --ink-2: #221f1b;
  --panel: #282520;
  --panel-2: #302c26;
  --line: rgba(243, 236, 223, 0.10);
  --line-2: rgba(243, 236, 223, 0.18);
  --text: #f3ecdf;
  --text-2: #c9bfae;
  --text-3: #9a9081;
  --amber: #d9a441;
  --amber-2: #e8bd68;
  --sage: #8fa876;
  --rust: #c4553a;
  --serif: 'Fraunces', 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1080px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--ink);
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
p + p { margin-top: 12px; }
strong { color: var(--text); font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}

/* The bar across the top. Solid, no blur, like the game's own panels. */
.bar { border-bottom: 1px solid var(--line); background: var(--ink); position: sticky; top: 0; z-index: 10; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; }
.bar nav a { color: var(--text-2); text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.bar nav .lang { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; font-size: 0.82rem; }
@media (max-width: 760px) { .bar nav .wide { display: none; } }
@media (max-width: 400px) { .bar nav .mid { display: none; } .bar nav { gap: 14px; } }
/* The narrowest phones: the name and the language switch, nothing else. */
@media (max-width: 360px) { .bar nav a:not(.lang) { display: none; } .brand { font-size: 1rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #1c1a17; font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; font-size: 1rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--amber-2); color: #1c1a17; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--amber); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -30% auto auto; width: 80%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(217,164,65,0.20), transparent 72%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 12px 0 16px; }
.hero .pitch { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--text); line-height: 1.35; font-weight: 400; max-width: 30ch; }
.hero .lede { margin-top: 18px; max-width: 56ch; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero .soon { font-size: 0.86rem; color: var(--text-3); margin-top: 12px; }
.hero .art img { width: min(100%, 460px); margin: 0 auto; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 24px; gap: 8px; }
  .hero .art { order: -1; }
  .hero .art img { width: min(72%, 300px); }
}

/* At a glance: short, quotable facts. */
.glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.glance dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.glance dl > div { padding: 18px 16px; border-left: 1px solid var(--line); }
.glance dl > div:first-child { border-left: 0; }
.glance dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.glance dd { color: var(--text); font-weight: 500; margin-top: 2px; }
@media (max-width: 860px) {
  .glance dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance dl > div { border-left: 0; border-top: 1px solid var(--line); }
  .glance dl > div:nth-child(-n+2) { border-top: 0; }
  .glance dl > div:nth-child(even) { border-left: 1px solid var(--line); }
}

/* Sections */
section.block { padding: 72px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block header { max-width: 680px; margin-bottom: 32px; }
.block header p { font-size: 1.05rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(217,164,65,0.16); color: var(--amber); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.steps p { font-size: 0.94rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.features article::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--amber); margin-bottom: 14px; }
.features article:nth-child(3n+2)::before { background: var(--sage); }
.features article:nth-child(3n)::before { background: var(--rust); }
.features p { font-size: 0.95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.piles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.piles div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--ink-2); }
.piles .n { font-family: var(--serif); font-size: 1.9rem; color: var(--amber); line-height: 1.1; font-variant-numeric: tabular-nums; }
.piles .k { color: var(--text); font-weight: 500; }
@media (max-width: 560px) { .piles { grid-template-columns: 1fr; } }

/* The comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
caption { text-align: left; padding: 14px 18px 0; color: var(--text-3); font-size: 0.86rem; caption-side: bottom; padding-bottom: 14px; }
th, td { text-align: left; vertical-align: top; padding: 13px 18px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--serif); color: var(--text); font-size: 1.02rem; font-weight: 600; background: var(--panel); }
tbody th { color: var(--text); font-weight: 500; width: 22%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.us { color: var(--text); }
.note { margin-top: 18px; font-size: 0.92rem; color: var(--text-3); max-width: 760px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq .qa { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--ink-2); }
.faq h3 { font-size: 1.12rem; }
.faq p { font-size: 0.97rem; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 14px; }

/* Closing call */
.closing { text-align: center; }
.closing header { margin: 0 auto 24px; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; }

/* Long-form pages: privacy, terms, support */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 10px 0 8px; }
.doc .updated { color: var(--text-3); font-size: 0.92rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .short { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--ink-2); padding: 16px 18px; margin: 8px 0 8px; }
.doc .toc { columns: 2; column-gap: 28px; font-size: 0.94rem; margin: 18px 0 8px; padding-left: 1.25rem; }
@media (max-width: 560px) { .doc .toc { columns: 1; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; margin: 18px 0; }
.contact-card .mail { font-family: var(--serif); font-size: 1.35rem; }
.crumbs { font-size: 0.86rem; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

/* 404 */
.lost { text-align: center; padding: 96px 20px; }
.lost img { width: 220px; margin: 0 auto 10px; }
.lost h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 8px 0 12px; }
.lost p { max-width: 46ch; margin: 0 auto 24px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--ink-2); font-size: 0.9rem; }
footer.site .wrap { padding-top: 36px; padding-bottom: 40px; display: grid; gap: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site nav a { color: var(--text-2); text-decoration: none; }
footer.site nav a:hover { color: var(--text); }
footer.site .fine { color: var(--text-3); font-size: 0.84rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The trailer, in a phone's frame, beside the story. */
.trailer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.trailer .screen { position: sticky; top: 88px; width: min(100%, 320px); margin: 0 auto; padding: 8px; border-radius: 34px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.trailer video { display: block; width: 100%; height: auto; border-radius: 26px; background: var(--ink); }
.story { margin-top: 8px; scroll-margin-top: 88px; }
.story h2 { margin-bottom: 14px; }
.story p { margin-top: 14px; font-size: 1.02rem; max-width: 62ch; }
.story p:first-of-type { font-family: var(--serif); font-size: 1.2rem; color: var(--text); line-height: 1.5; }
@media (max-width: 820px) {
  .trailer { grid-template-columns: 1fr; gap: 32px; }
  .trailer .screen { position: static; width: min(100%, 300px); }
}
