/* Dotwyn — one quiet page system: cream ground, ink type, one orange dot. Sora only. */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F2EE;
  --ink: #1B1B1F;
  --muted: #66646B;
  --acc: #E8553D;
  --pill: rgba(27, 27, 31, .06);
  --line: rgba(27, 27, 31, .12);
  --card: #FAF9F6;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1152px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1B1F;
    --ink: #F4F2EE;
    --muted: #A6A4AB;
    --pill: rgba(244, 242, 238, .08);
    --line: rgba(244, 242, 238, .14);
    --card: #232328;
    color-scheme: dark;
  }
}
@media (min-width: 720px) { :root { --gutter: 48px; } }
@media (min-width: 1100px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.logo {
  display: inline-block; font-weight: 600; font-size: 24px; letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); text-decoration: none; padding: 8px 0;
}
.lo {
  display: inline-block; width: .56em; height: .56em; border-radius: 50%; background: var(--acc);
  vertical-align: -0.016em; margin: 0 .03em 0 .02em;
}
.links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--pill); }
.links a {
  display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.links a:hover { background: var(--bg); }
.links a[aria-current="page"] { background: var(--bg); }
@media (min-width: 720px) { .nav { padding-block: 32px; } .logo { font-size: 26px; } .links a { padding: 0 18px; } }

main { flex: 1; }

/* Shared type */
.lbl {
  margin: 0 0 20px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--pill); text-decoration: none; font-weight: 500; font-size: 15px;
}
.chip:hover { background: var(--line); }
.cd { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.soon { color: var(--muted); font-size: 15px; }
.soon-line { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; }

/* Home */
.hero { padding-block: clamp(40px, 9vh, 120px) clamp(56px, 12vh, 140px); }
.hero-h1 {
  margin: 0; font-weight: 600; font-size: clamp(64px, 12.5vw, 144px); line-height: 1.02; letter-spacing: -0.045em;
  cursor: default; -webkit-tap-highlight-color: transparent;
}
.vis, .lead, .slot { display: block; }
.lead { color: var(--muted); }
.slot { position: relative; height: 1.02em; width: 100%; }
.wclip { position: absolute; left: 0; top: -0.14em; right: 0; height: 1.5em; overflow: hidden; }
.wd { position: absolute; left: 0; top: .14em; white-space: nowrap; line-height: 1.02; }
.dl { position: absolute; left: 0; top: 0; line-height: 1.02; white-space: nowrap; }
.dt, .dot-inline {
  display: inline-block; width: .24em; height: .24em; border-radius: 50%; background: var(--acc); vertical-align: -0.016em;
}
.dot-inline { margin-left: .05em; }
.mv { transform: translate(0, 0) scale(1); transform-origin: 50% 100%; }
.static .lead-s { display: block; color: var(--muted); }
html:not(.js) .vis { display: none; }
.js .static { display: none; }
.js .wd, .js .lead, .js .sub, .js .games { opacity: 0; }
.js .dt { transform: translate(0, -200vh); }
.sub { margin: 36px 0 0; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--muted); }
.games { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
@media (min-width: 720px) { .sub { font-size: 19px; margin-top: 40px; } .games { margin-top: 32px; } }

/* Text pages */
.page { padding-block: clamp(24px, 6vh, 72px) clamp(64px, 10vh, 120px); }
.doc { max-width: 42rem; }
.doc h1 {
  margin: 0; font-weight: 600; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance;
}
.doc .meta { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.doc .intro { margin: 28px 0 0; font-size: 19px; line-height: 1.55; }
.doc h2 { margin: 56px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.doc h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--muted); }
.doc a { text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc strong { font-weight: 600; }
.short { list-style: none; padding: 0; margin: 28px 0 0; }
.short li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.short li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

.items { display: grid; gap: 12px; margin: 20px 0 16px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.item dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 20px; font-size: 15px; line-height: 1.5; }
.item dt { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .02em; margin-top: 8px; }
.item dd { margin: 0; }
@media (min-width: 640px) {
  .item { padding: 22px 24px; }
  .item dl { grid-template-columns: 8.5rem 1fr; gap: 8px 20px; }
  .item dt { margin-top: 1px; }
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; margin-bottom: 12px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pill); display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 16px 0 20px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.mail { font-weight: 600; user-select: all; }

.terms { counter-reset: t; list-style: none; padding: 0; }
.terms li { counter-increment: t; position: relative; padding-left: 36px; margin-bottom: 18px; }
.terms li::before { content: counter(t) "."; position: absolute; left: 0; top: 0; color: var(--muted); font-weight: 600; }

/* Tessa */
.app-head { display: flex; flex-direction: column; gap: 24px; }
.app-tag { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; letter-spacing: -0.01em; margin: 24px 0 0; max-width: 32em; }
.feat { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.feat li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.feat h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (min-width: 760px) { .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.related a { color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 3px; }
.related a:hover { color: var(--ink); }

/* 404 */
.nf { display: flex; flex-direction: column; gap: 32px; padding-block: clamp(32px, 8vh, 100px) clamp(64px, 12vh, 140px); }
@media (min-width: 760px) { .nf { flex-direction: row; align-items: center; gap: 72px; } }
.doc .back { margin: 28px 0 0; }
.nf .doc h1 { font-size: clamp(48px, 9vw, 96px); }
.card404 {
  position: relative; flex: none; width: 160px; height: 160px; border-radius: 30%; background: var(--ink);
  container-type: inline-size; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 760px) { .card404 { width: 280px; height: 280px; order: 2; } }
.tl { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: var(--bg); transform-origin: 50% 50%; transform: translate(0,0) scale(0); }
.tl0 { background: var(--acc); z-index: 2; }
.ic {
  position: absolute; inset: 0; padding-bottom: .12em; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 46cqw; letter-spacing: -0.03em; line-height: 1; color: var(--bg);
}
.icr { display: inline-block; white-space: nowrap; }
.icd { display: inline-block; width: .56em; height: .56em; border-radius: 50%; vertical-align: -0.016em; margin-right: .03em; opacity: 0; }
.icw { display: inline-block; transform-origin: 50% 50%; }
html:not(.js) .icw { opacity: 1; }
html:not(.js) .icd { opacity: 1; background: var(--acc); }
.js .icw { opacity: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--ink); }

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