/* 333.pink guide pages. Tokens and rationale: docs/guide-design.md
   Layout follows the homepage app: full-width header (2rem side padding),
   centred hero, content in a 72rem container (Tailwind max-w-6xl). */
:root {
  --night: #0e0811;
  --wash: #271420;
  --ink: #fdeef0;
  --mist: #e3d2d8;
  --rose: #ff8a9e;
  --dusk: #ffc078;
  --line: #2e1d26;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 72rem;
  --text: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font: 400 1.125rem/1.7 var(--sans);
}

a { color: var(--rose); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--night); padding: 0.5rem 0.75rem; z-index: 10; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Header: full width like the app's navbar */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; font: 700 1.15rem/1 'Syne', var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark .badge { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--rose); border-radius: 50%; font-size: 0.7rem; }
.wordmark .tld { color: var(--rose); font-weight: 400; }
.site-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; font-size: 0.95rem; }
.site-nav a { display: inline-block; padding: 0.6rem 0.2rem; color: var(--mist); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (min-width: 48rem) { .site-header .bar { padding: 0.9rem 2rem; } }

/* Hero: centred, like the homepage hero */
.hero { text-align: center; padding: 1.5rem 1rem 0.5rem; }
.crumbs { font-size: 0.875rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem; }
.crumbs li + li::before { content: '/'; color: #8f7c8c; margin-right: 0.4rem; }
.crumbs a { display: inline-block; padding: 0.35rem 0; color: var(--mist); }
.crumbs [aria-current] { display: inline-block; padding: 0.35rem 0; color: #b8a6b4; }

/* The mirror hour: the one bold element */
.mirror { margin: 1.5rem 0 0.25rem; line-height: 0.82; font-family: var(--serif); font-weight: 500; font-size: clamp(5.5rem, 22vw, 11rem); letter-spacing: -0.02em; user-select: none; }
.mirror span { display: block; background: linear-gradient(100deg, var(--rose), var(--dusk)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mirror span + span {
  transform: scaleY(-1);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  margin-top: -0.06em;
}

h1, h2 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; font-weight: 500; max-width: 52rem; margin: 0.5rem auto 1.5rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 2.5rem 0 0.75rem; }
p { margin: 0 0 1.1rem; }
strong { color: var(--ink); font-weight: 600; }

.brief { max-width: var(--text); margin: 0 auto 1rem; text-align: left; background: var(--wash); border-left: 2px solid var(--rose); padding: 1.1rem 1.25rem; }
.brief h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--rose); margin: 0 0 0.35rem; letter-spacing: 0; }
.brief p { margin: 0; color: var(--ink); font-size: 1.2rem; }

/* Body: article plus sidebar on wide screens */
.layout { display: grid; gap: 0 3rem; padding-top: 1rem; }
.article { max-width: var(--text); }
.aside { align-self: start; }
@media (min-width: 64rem) {
  .layout { grid-template-columns: minmax(0, var(--text)) minmax(16rem, 1fr); justify-content: center; }
  .aside { position: sticky; top: 1.5rem; margin-top: 2.5rem; }
  .aside .prompts h2 { margin-top: 0; }
}

.prompts ul, .related ul, .guide-list { list-style: none; margin: 0; padding: 0; }
.prompts li { position: relative; padding-left: 1.4rem; margin: 0 0 0.75rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.prompts li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; border: 1.5px solid var(--dusk); border-radius: 50%; }

.cta { margin: 2rem 0 1rem; padding: 1.5rem 1.25rem; background: var(--wash); }
.cta h2 { margin-top: 0; }
.cta p { margin-bottom: 1.1rem; }
.button { display: inline-block; background: var(--rose); color: #2b0d16; font-weight: 600; text-decoration: none; padding: 0.75rem 1.4rem; border-radius: 999px; }
.button:hover { background: #ffb0bf; }

/* Related guides and the hub list: full container width */
.related { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 0.5rem; }
.related > h2 { margin-top: 1.5rem; }
.related li, .guide-list li { margin: 0 0 1.25rem; }
.related a, .guide-list a { display: inline-block; padding: 0.45rem 0 0.2rem; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; font-weight: 600; }
.related p, .guide-list p { margin: 0.15rem 0 0; font-size: 0.95rem; }
@media (min-width: 48rem) {
  .related ul, .guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
}
@media (min-width: 64rem) {
  .related ul, .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.95rem; }
.site-footer .container { display: grid; gap: 0.6rem 3rem; }
.site-footer p { margin: 0; }
.site-footer .disclaimer { color: #b8a6b4; font-size: 0.875rem; max-width: 40rem; }
@media (min-width: 64rem) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .disclaimer { grid-column: 1 / -1; } }

/* Install link: shown only when the browser offers installation (see register-sw.js) */
.install { font: inherit; color: var(--rose); background: none; border: 1px solid var(--rose); border-radius: 999px; padding: 0.6rem 1.1rem; cursor: pointer; }
.install:hover { background: var(--wash); }
.install-hint { color: var(--mist); }
