/* quietbarber.com: the brand's theme 5, "modern green with the chair" (docs/design.md § Colour,
   the same tokens as ios/BarbershopASMR/ContentView.swift's Palette), and its type (§ Type). */
:root {
  --eucalyptus: #1f4a40;  /* the ground */
  --lit: #2a5a4c;         /* where the lamp reaches */
  --deep: #122e28;        /* shadows, the page floor */
  --apricot: #f6a96b;     /* rationed: the face of the mark, the one eyebrow */
  --apricot-light: #ffd2a8;
  --foam: #f3f7f4;        /* text */
  --bubble: #a9c4b8;      /* secondary text, dividers */
  --line: rgb(169 196 184 / 0.3);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--eucalyptus); }

/* One lamp (§ Three rules): a soft warm glow top left and the green lit under it, both gone
   by 12rem; eucalyptus below. No wash over the rest of the page. Bubble text, 4.2:1 on lit
   green, sits below the lit band. */
body {
  margin: 0;
  color: var(--foam);
  font: 17px/1.65 var(--sans);
  background:
    radial-gradient(48rem 12rem at 28% 0, rgb(255 210 168 / 0.16), rgb(255 210 168 / 0) 100%) no-repeat,
    linear-gradient(180deg, var(--lit) 0, var(--eucalyptus) 12rem) no-repeat,
    var(--eucalyptus);
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

a { color: var(--foam); text-decoration-color: var(--bubble); text-underline-offset: 0.15em; }
a:hover { text-decoration-color: var(--foam); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 2.2rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

code { font-family: var(--mono); font-size: 0.88em; color: var(--bubble); }

.muted { color: var(--bubble); }

/* A page's header: the mark and the wordmark, home. The mark keeps a quarter of its width clear. */
.site-header { margin-bottom: 3rem; }
.site-header a { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-header img { width: 36px; height: 36px; border-radius: 22.37%; display: block; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--foam); }

.box {
  background: rgb(18 46 40 / 0.55);
  border: 1px solid rgb(243 247 244 / 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* The home page's top: one of the four signature places (§ Signature places), the mark
   with its tingles under the lamp. Nowhere further down. */
.hero { text-align: center; padding-top: 2.5rem; }
.hero img {
  width: 144px; height: 144px; border-radius: 22.37%; display: block; margin: 0 auto 2.25rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.4);
}
.hero h1 { font-size: 3rem; line-height: 1.02; letter-spacing: -0.025em; }
.hero .lede { font-size: 1.25rem; line-height: 1.5; color: var(--bubble); margin: 0.75rem auto 2rem; max-width: 26rem; }

/* The eyebrow (§ Type): a tiny tingle, then small monospaced capitals in apricot. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--apricot);
}
.eyebrow::before {
  content: ""; width: 0.75rem; height: 0.75rem; flex: none; background: var(--apricot);
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--bubble);
  text-align: center;
}
footer a { margin: 0 0.5rem; color: var(--bubble); }
/* The game's three accounts (2026-11-23), a second line under the site's own links. Plain links, no icons or embeds, so nothing loads from the platforms. */
footer .social { margin: 0.6rem 0 0; }

/* ---- The home page (2026-11-17). Used by index.html only; the support, privacy and 404 pages stop at the rules above. ---- */

.home main { padding-top: 1.25rem; }
.home .site-header { margin-bottom: 1.5rem; }

/* The mark, inline so its tingles can breathe (§ Motion: a six-second cycle, still under Reduce Motion).
   The same drawing as /icon.png; the rounded mask is the one iOS applies. */
.hero { padding-top: 1.5rem; }
.hero .mark {
  width: 144px; height: 144px; border-radius: 22.37%; display: block; margin: 0 auto 2.25rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.4);
}
.tingle { transform-box: fill-box; transform-origin: center; animation: breathe 6s ease-in-out infinite; }
.tingle:nth-child(2) { animation-delay: -1.2s; }
.tingle:nth-child(3) { animation-delay: -2.4s; }
.tingle:nth-child(4) { animation-delay: -3.6s; }
.tingle:nth-child(5) { animation-delay: -4.8s; }
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .tingle { animation: none; } }

.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin: 0 auto 0.75rem; max-width: 22rem; }
.hero .lede { margin-bottom: 1.75rem; }
.cta { margin: 0 0 0.75rem; }
/* Plain text in the button's place: no fill, not pressable. */
p.cta { padding: 0.75rem 0; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.01em; color: var(--foam); }

/* The one primary action (§ Three rules: apricot is rationed). Deep green on apricot, 7.5:1. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 12px;
  background: var(--apricot); color: var(--deep);
  font: 600 1rem/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  transition: background-color 200ms ease-out, transform 200ms ease-out;
}
.button:hover { background: var(--apricot-light); color: var(--deep); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }

.note { font-size: 0.95rem; color: var(--bubble); margin: 0; }

.home footer { margin-top: 5rem; }

/* What is in the game: four lines under the hero, a title and a sentence each. One column, two from
   40rem; no apricot, no tingles. Bubble on eucalyptus, below the lit band. */
.features { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 2rem; color: var(--bubble); }
.features li { margin: 0; line-height: 1.5; text-wrap: pretty; }
.features strong { display: block; margin-bottom: 0.15rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--foam); }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
