/* Hermit Hour public site (founder 2026-10-12): the app's Midnight Glow
   theme, Bricolage Grotesque, the two-tone "hermit" + gradient "hour"
   wordmark (logo A). Dark by default; the button at the top right switches
   to light and remembers the choice on this browser. Generated pages link
   this file; see tools/build_legal_pages.py. */

/* Bricolage Grotesque, SIL Open Font License, self-hosted (latin subset,
   made from @expo-google-fonts/bricolage-grotesque). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/bricolage-400.woff") format("woff"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/bricolage-600.woff") format("woff"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/fonts/bricolage-800.woff") format("woff"); }

:root {
  --bg: #0F0B24;
  --card: #1A1438;
  --card-2: #241C4A;
  --border: #2E2558;
  --text: #F4F1FF;
  --text-2: #C9C2EC;
  --muted: #9C94C8;
  --accent: #A78BFA;
  --pink: #F472B6;
  --glow-a: rgba(124, 58, 237, .55);
  --glow-b: rgba(219, 39, 119, .35);
  --grad: linear-gradient(90deg, #7C3AED, #DB2777);
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F5FF;
  --card: #FFFFFF;
  --card-2: #F0ECFF;
  --border: #E2DCF7;
  --text: #1A1438;
  --text-2: #3D3566;
  --muted: #6B6491;
  --accent: #6D28D9;
  --pink: #BE185D;
  --glow-a: rgba(124, 58, 237, .22);
  --glow-b: rgba(219, 39, 119, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: var(--pink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Soft glows behind the top of every page */
.glowwrap { position: relative; }
.glowwrap::before, .glowwrap::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glowwrap::before { width: 520px; height: 520px; right: -160px; top: -220px; background: var(--glow-a); }
.glowwrap::after { width: 420px; height: 420px; left: -200px; top: 160px; background: var(--glow-b); }
.glowwrap > * { position: relative; z-index: 1; }

/* Header (shared) */
.site-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 22px 48px; max-width: 1200px; margin: 0 auto; }
.wordmark { font-weight: 800; font-size: 28px; letter-spacing: -1px; color: var(--text); text-decoration: none; line-height: 1; margin-right: auto; }
.wordmark .grad { padding-right: 2px; }
/* Door logo (founder 2026-10-14) */
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark .mark { width: 34px; height: 34px; flex: none; }
.site-footer .wordmark .mark { width: 24px; height: 24px; }
.cta-band .mark { width: 64px; height: 64px; display: block; margin: 0 auto 18px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--pink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--card-2); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
svg.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Home */
.hero { padding: 64px 48px 80px; max-width: 1200px; margin: 0 auto; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); background: var(--card); padding: 6px 14px; border-radius: 999px; margin: 0 0 24px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-weight: 800; font-size: clamp(54px, 9vw, 104px); line-height: .95; letter-spacing: -.04em; margin: 0 0 22px; }
.hero .sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); margin: 0 0 34px; max-width: 580px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; flex-direction: column; padding: 11px 22px; border-radius: 14px; font-weight: 800; font-size: 16px; line-height: 1.3; }
.store small { font-size: 11px; font-weight: 400; opacity: .8; }
.store.main { background: var(--text); color: var(--bg); }
.store.alt { color: var(--text); border: 1px solid var(--border); background: var(--card); }

.section { padding: 48px 48px; max-width: 1200px; margin: 0 auto; }
.section h2 { font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 26px; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.card h3 { font-weight: 600; font-size: 19px; line-height: 1.25; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.card .n { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--pink); }
.card .tile { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
.card .tile svg { width: 22px; height: 22px; }

.cta-band { max-width: 1104px; margin: 24px auto 64px; border-radius: 28px; padding: 52px 32px; text-align: center; background: var(--grad); color: #fff; }
.cta-band h2 { font-weight: 800; font-size: clamp(36px, 5.5vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 0 0 12px; }
.cta-band p { margin: 0; font-size: 18px; opacity: .92; }

/* Inner pages */
.page-hero { max-width: 856px; margin: 0 auto; padding: 36px 48px 44px; }
.page-hero h1 { font-weight: 800; font-size: clamp(40px, 6.5vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 0; }
.page-hero .tag { margin: 0 0 18px; }
.page-hero .back { margin: 0 0 16px; }
.page-hero .back a { color: var(--pink); text-decoration: none; font-weight: 600; }
.divider { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto; }
main.content { max-width: 856px; margin: 0 auto; padding: 40px 48px 80px; font-size: 17px; color: var(--text-2); }
main.content > p:first-child { font-size: 19px; color: var(--text); }
main.content h2 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; color: var(--text); margin: 44px 0 10px; }
main.content h3 { font-size: 18px; color: var(--text); margin: 24px 0 6px; }
main.content strong { color: var(--text); }
main.content ul, main.content ol { padding-left: 1.3em; }
main.content li { margin: 6px 0; }
main.content li::marker { color: var(--pink); }
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 12px 14px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--card-2); color: var(--text); font-weight: 600; }

/* Footer (shared) */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); padding: 26px 48px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 14px; max-width: 1200px; margin: 0 auto; }
.site-footer .wordmark { font-size: 20px; margin-right: 10px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }

@media (max-width: 900px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header, .hero, .section, .page-hero, main.content, .site-footer { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 36px; padding-bottom: 56px; }
  .cards.three, .cards.four { grid-template-columns: 1fr; }
  .cta-band { margin-left: 22px; margin-right: 22px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
