/* Wizard Hat Labs: brand tokens + site styles. Documented in /brand/ (public/brand/index.html). */

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

:root {
  /* Palette (from the brand board) */
  --deep-purple: #2E1A47;   /* primary: headlines, logo, dark surfaces */
  --royal-purple: #5B3CC4;  /* secondary: links, focus, interactive accents */
  --soft-lavender: #EADFF8; /* accent: tints, highlights, tags */
  --gold: #D4AF68;          /* accent: on purple, logo, small flourishes — never text on light */
  --warm-sand: #F6F3EA;     /* background */
  --charcoal: #1F1F24;      /* body text */
  --stone: #9A9186;         /* neutral: dividers, logo base, large/decorative only */
  /* Accessible companions (added in the HTML guide) */
  --stone-ink: #736A5F;     /* secondary text on sand (4.8:1) */
  --gold-ink: #7F5F27;      /* gold-toned text on light (5.3:1) */
  --paper: #FFFDF8;         /* raised surfaces */
  --line: #E4DDCF;          /* borders on sand */

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --max: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--warm-sand); color: var(--charcoal); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal-purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep-purple); }
:focus-visible { outline: 2px solid var(--royal-purple); outline-offset: 3px; border-radius: 4px; }

/* Display: Fraunces at large optical size, no soft/wonk — refined and high-contrast, like the board. */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; color: var(--deep-purple); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; font-variation-settings: "opsz" 36, "SOFT" 0, "WONK" 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--stone-ink); margin: 0 0 18px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--stone-ink); max-width: 34em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Lockup */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep-purple); }
.lockup img { width: 40px; height: auto; }
.lockup span { font: 450 1.45rem/1 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.01em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .2s ease-out, color .2s ease-out; }
.btn-primary { background: var(--deep-purple); color: var(--warm-sand); }
.btn-primary:hover { background: var(--royal-purple); color: #fff; }
.btn-ghost { color: var(--deep-purple); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--deep-purple); color: var(--deep-purple); }
.btn svg { width: 18px; height: 18px; }

/* Icons: Lucide, 1.5 stroke */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Site ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--charcoal); text-decoration: none; }
.site-nav a:hover { color: var(--royal-purple); }
@media (max-width: 600px) { .site-nav a:not(:last-child) { display: none; } }

.hero { display: grid; gap: 48px; align-items: center; padding: 40px 0 96px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 72px; padding: 72px 0 128px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero art: sunlit arch with the mark on a stone plinth. Swap for /img/hero.webp when generated. */
.hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; margin: 0;
  background: linear-gradient(160deg, #FBF7EE 0%, #EFE6D3 55%, #E3D5BB 100%); }
.hero-art::before { content: ""; position: absolute; left: 18%; right: 18%; top: 10%; bottom: 30%; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #FFFDF7 0%, #F3EBDB 100%); box-shadow: inset 0 0 0 1px rgba(154, 145, 134, .18); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, .28) 46%, transparent 54%); pointer-events: none; }
.hero-art .plinth { position: absolute; left: 22%; right: 22%; bottom: 14%; height: 18%; border-radius: 6px;
  background: linear-gradient(180deg, #DDD3C3 0%, #CABDA8 100%); box-shadow: 0 30px 40px -24px rgba(46, 26, 71, .35); }
.hero-art .plinth::before { content: ""; position: absolute; left: -4%; right: -4%; top: -10px; height: 12px; border-radius: 4px; background: #E6DDCE; }
.hero-art .mark { position: absolute; z-index: 1; left: 50%; bottom: calc(32% + 6px); width: 38%; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(46, 26, 71, .22)); }
.hero-art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

.section { padding: 32px 0 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

.apps { display: grid; gap: 20px; }
@media (min-width: 820px) { .apps { grid-template-columns: 1.5fr 1fr; } }
.app-card { display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s ease-out, transform .2s ease-out; }
a.app-card:hover { border-color: var(--deep-purple); transform: translateY(-2px); }
.app-card .app-icon { width: 72px; height: 72px; border-radius: 18px; }
.app-card h3 { margin-bottom: .25em; }
.app-card p { color: var(--stone-ink); margin: 0; }
.app-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--deep-purple); }
.app-card .more svg { width: 18px; height: 18px; }
.app-card.soon { background: transparent; border-style: dashed; }
.app-card.soon .app-icon { display: grid; place-items: center; background: var(--soft-lavender); color: var(--royal-purple); }
.tag { display: inline-block; margin-bottom: 14px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: #F3E8D2; padding: 7px 10px; border-radius: 999px; }

.principles { display: grid; gap: 36px; border-top: 1px solid var(--line); padding-top: 48px; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.principles .icon { color: var(--royal-purple); margin-bottom: 18px; width: 28px; height: 28px; }
.principles h3 { font-size: 1.35rem; }
.principles p { color: var(--stone-ink); margin: 0; }

.contact-band { background: var(--deep-purple); color: var(--warm-sand); border-radius: var(--r-lg); padding: clamp(40px, 7vw, 72px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .contact-band { grid-template-columns: auto 1fr auto; gap: 40px; } }
.contact-band img { width: 64px; }
.contact-band h2 { color: var(--warm-sand); margin: 0 0 .2em; }
.contact-band p { margin: 0; color: #CFC6DD; }
.contact-band .btn { background: var(--gold); color: var(--deep-purple); }
.contact-band .btn:hover { background: #E2C27F; color: var(--deep-purple); }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 40px 0 48px; font-size: 14px; color: var(--stone-ink); }
.site-foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .app-card, .btn { transition: none; } }
