/* Sleeping Owl: shared styles for every page except /corkboard/, which keeps
   Corkboard's own look (corkboard/corkboard.css). Colors come from the logo:
   ink #101114 and accent gray #858585 on white. The apps bring the only
   other color. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101114;
  --ink-soft: #45474d;
  --muted: #6b6d73;
  --accent: #858585;
  --paper: #ffffff;
  --paper-alt: #f5f5f3;
  --line: #e4e4e1;

  /* Each app's own color, used only in its section. */
  --scribkin-bg: #7b52e0;
  --scribkin-ink: #ffffff;
  --corkboard-bg: #f6efe4;
  --corkboard-ink: #1f2a44;

  --wrap: 1120px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1ef;
    --ink-soft: #c3c4c7;
    --muted: #9a9ca1;
    --accent: #858585;
    --paper: #0e0f11;
    --paper-alt: #16171a;
    --line: #26282c;
  }
}

* { box-sizing: border-box; }

.skip-link {
  position: fixed;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 42rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The owl mark is drawn in currentColor, so it follows the text color in
   dark mode. Its gray accent stays gray. */
.owl { width: auto; color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand .owl { height: 30px; }
.site-nav { display: flex; gap: 1.6rem; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Home hero */
.hero { padding: 3.5rem 0; }
.hero-grid { display: flex; justify-content: center; }
.hero-owl { height: 160px; }

.label {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}

/* App sections on the home page: one wide band per app, in its own colors. */
.app-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.app-band .wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.app-band p { font-size: 1.08rem; max-width: 32rem; }
.app-band .status { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .4rem; }
.app-band .more { font-weight: 600; text-underline-offset: .2em; }
/* The bands keep their light colors in dark mode, so their labels follow the band's ink, not --muted. */
.app-band .label { color: inherit; }

.band-scribkin { background: var(--scribkin-bg); color: var(--scribkin-ink); }
.band-corkboard { background: var(--corkboard-bg); color: var(--corkboard-ink); }
.band-corkboard .art { justify-self: center; }
.band-corkboard .art img { width: min(220px, 50vw); }

/* About */
.about { padding: clamp(4rem, 9vw, 7rem) 0; }
.about p { font-size: 1.12rem; color: var(--ink-soft); }
.about p:first-of-type { color: var(--ink); }

/* Plain text pages: privacy, support. */
.page { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.6em; }
.page h3 { margin-top: 1.8em; }
.page p, .page li { color: var(--ink-soft); }
.page strong { color: var(--ink); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .45em; }
.page .updated { color: var(--muted); font-size: .95rem; }
.toc { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem; margin: 1.8rem 0;
  background: var(--paper-alt);
}
.contact-card a { font-size: 1.25rem; font-weight: 600; }
dl.faq dt { font-weight: 600; margin-top: 1.4em; }
dl.faq dd { margin: .3em 0 0; color: var(--ink-soft); }

/* Scribkin page */
.scribkin-hero { background: var(--scribkin-bg); color: var(--scribkin-ink); padding: clamp(3rem, 8vw, 5.5rem) 0; }
.scribkin-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.scribkin-hero p { font-size: 1.15rem; }
.scribkin-hero .status { font-weight: 600; font-size: 1rem; }
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section .intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 40rem; }
.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; column-gap: .65rem; }
.steps li::before {
  content: counter(step); font-size: 1.2rem; font-weight: 650; color: var(--accent);
}
.steps strong { color: var(--ink); font-size: 1.2em; }
.steps p { color: var(--ink-soft); margin: 0; max-width: 36rem; }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; margin-top: 2.2rem; }
.games img { border-radius: 12px; margin-bottom: 1rem; }
.games p { color: var(--ink-soft); font-size: .98rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer nav a { text-decoration: none; color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; margin: 0; font-size: .8rem; }

@media (max-width: 760px) {
  .app-band .wrap, .scribkin-hero .wrap { grid-template-columns: 1fr; }
  .band-corkboard .art { justify-self: start; order: -1; }
  .band-corkboard .art img { width: 120px; }
  .games, .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 1.1rem; font-size: .9rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
  .app-band { padding: 2.5rem 0; }
  .hero-owl { height: 96px; }
}
@media (max-width: 400px) {
  /* Visually hidden, still the link's name for screen readers. */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
