/*
  Aroundabout — site styles.

  Follows the app's DESIGN.md: the Deep space navy and Morning sun cream
  grounds approved 2026-09-16, rounded system font, soft corners, no
  decoration. The token values below are the app's own.

  Neither light colour appears on this site — moon gold and amber mean
  "someone is around" in the app, sea blue means "a person did something", and
  DESIGN.md says the moment either appears in a second context it stops meaning
  that. A website is a second context. The warmth here comes from the ground,
  the type and the spacing instead.

  Dark-first, like the app. Light mode adapts from it, and the appearance
  follows the system exactly as the app does.

  APP NAME: the name is a working one and may change. It appears only in page
  text and in the --brand-name comment markers below; there is no logo file and
  no name baked into a class name or an asset. Search for "Aroundabout" to find
  every instance.
*/

:root {
  /* Dark is the design surface. These are the app's own token values. */
  --ground: #131a2e;
  --surface: #1c2540;
  --hairline: #2b3556;
  --text-primary: #e9e4da;
  --text-secondary: #aeb7cc;
  --focus: #e9e4da;

  /* Grain: about 7% on the navy. Static, never animated. */
  --grain-opacity: 0.07;

  --radius: 14px;
  --measure: 34rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #fbf4e6;
    --surface: #f2e7d2;
    --hairline: #e3d5bc;
    --text-primary: #1b2236;
    --text-secondary: #5e6278;
    --focus: #1b2236;
    /* Lighter on the cream, where the same value reads as dirt. */
    --grain-opacity: 0.035;
  }
}

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

html {
  /* Never below 15pt-equivalent, per DESIGN.md. */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--ground);
  color: var(--text-primary);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  /* No italics anywhere, per DESIGN.md. */
  font-style: normal;
  position: relative;
}

/* The ground is a surface, not a screen: a faint static tile, inline so it
   costs no request. It never animates, and it sits behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
header,
footer {
  max-width: var(--measure);
  margin-inline: auto;
  /* Above the grain layer, which is fixed and would otherwise paint over
     the text. */
  position: relative;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.25rem;
}

p,
li {
  color: var(--text-primary);
}

.lede {
  font-size: 1.1875rem;
  margin: 0 0 1.5rem;
}

.muted {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Visible focus for keyboard users, on both schemes. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

nav.links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

footer a {
  color: var(--text-secondary);
}

/* A raised panel — the invite code. Soft corners, no shadow: printed onto the
   ground rather than floating above it. */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  word-break: break-all;
  margin: 0.5rem 0 0;
}

dl.faq dt {
  font-weight: 600;
  margin-top: 1.5rem;
}

dl.faq dd {
  margin: 0.25rem 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: text-decoration-thickness 120ms ease;
  }
}
