/* weareoky.com: Oky Labs and Dally. The app's own tokens (docs/DESIGN.md "Colour tokens"), flat, no shading.
   Lexend is served from this site (no font service sees our visitors). */
@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/Lexend.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --page: #FFF6E2;      /* cream */
  --panel: #FFFFFF;
  --raised: #FCE4CB;
  --grass: #C4DF90;
  --ink: #3E2436;
  --sub: #6E3C55;       /* crayon */
  --line: #6E3C55;
  --soft-line: rgba(110, 60, 85, 0.25);
  --butter: #F9D573;
  --on-accent: #3E2436;
  --link: #6E3C55;
  --font: "Lexend", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #241923;
    --panel: #35283A;
    --raised: #45354A;
    --grass: #3F4A33;
    --ink: #FFF6E2;
    --sub: #E9C9DA;
    --line: #C7A6BE;
    --soft-line: rgba(233, 201, 218, 0.25);
    --link: #F9D573;
    color-scheme: dark;
  }
  .only-light { display: none !important; }
}
@media (prefers-color-scheme: light) { .only-dark { display: none !important; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* top bar */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.top .brand img { width: auto; height: 44px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--sub); }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 54px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 4.5vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2.6vw, 22px); color: var(--sub); max-width: 34em; }
.sub { color: var(--sub); }
.small { font-size: 15px; }

main { padding: 24px 0 72px; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 48px; }

.hero { display: grid; gap: 22px; padding: 24px 0 8px; }
.hero .wordmark { width: min(100%, 360px); }
.hero .tagline { font-size: 20px; font-weight: 500; color: var(--sub); margin-top: -10px; padding-left: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--butter); color: var(--on-accent); font-weight: 600; font-size: 15px;
  border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px;
}

.card {
  background: var(--panel); border: 2.5px solid var(--line); border-radius: 22px;
  padding: 22px; display: grid; gap: 10px; min-width: 0;
  box-shadow: 4px 5px 0 var(--soft-line);
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* phone pictures */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; align-items: start; }
.shots figure { margin: 0; display: grid; gap: 10px; }
.shots img { border-radius: 26px; border: 2.5px solid var(--line); box-shadow: 4px 5px 0 var(--soft-line); }
.shots figcaption { font-size: 15px; color: var(--sub); text-align: center; line-height: 1.35; }

/* long reading (privacy, support) */
.prose { display: grid; gap: 14px; max-width: 40em; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1.5px solid var(--soft-line); }
.prose th { font-size: 15px; color: var(--sub); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.prose details { background: var(--panel); border: 2px solid var(--soft-line); border-radius: 16px; padding: 12px 16px; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details[open] summary { margin-bottom: 8px; }
.toc { background: var(--raised); border-radius: 16px; padding: 14px 18px; }
.toc ol { margin: 6px 0 0; }
.short { background: var(--grass); color: var(--ink); border-radius: 18px; padding: 16px 20px; display: grid; gap: 8px; }
.short ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

footer { border-top: 2px dashed var(--soft-line); padding: 24px 0 40px; font-size: 15px; color: var(--sub); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .card { padding: 18px 16px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shots img { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the join page (/dally/join/KOALA-23, #584): the code big, to read out or select, and Copy */
[hidden] { display: none !important; }
.join-code-card { justify-items: start; }
.join-code {
  font-size: clamp(40px, 12vw, 64px); font-weight: 800; letter-spacing: 0.02em; line-height: 1.1;
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.join-copy {
  font: 600 17px/1.2 var(--font); color: var(--on-accent); background: var(--butter);
  border: 2.5px solid var(--line); border-radius: 999px; padding: 12px 22px; min-height: 48px;
  box-shadow: 3px 4px 0 var(--soft-line); cursor: pointer;
}
.join-copy:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--soft-line); }
.join-copied:empty { display: none; }
.join-steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
