/*
 * Public site styles. Visual reference: docs/handoff/prototype/BOWSKI_Prototype_04_1.html.
 * Display font: the approved look on the owner's Mac was rendered with the Apple system font
 * (Space Grotesk and Inter are not installed there, so the prototype fell back to system-ui = SF Pro).
 * See docs/FONTS.md before changing --font-display.
 */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #11110f;
  --panel: #211e16;
  --malt: #2a2312;
  --gold: #ffbe0b;
  --cream: #f7f3e9;
  --muted: #a6a093;
  --line: #393324;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: #11110f; padding: 10px 14px; border-radius: 8px; z-index: 20; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 36px, 1080px); margin: auto; }
.top { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--font-display); font-size: 27px; letter-spacing: -1.8px; font-weight: 800; color: var(--gold); text-decoration: none; }
.top nav a { color: var(--muted); font-size: 12px; text-decoration: none; padding: 8px 0; }
.top nav a:hover { color: var(--gold); }
/* Studio entry, as in prototype 04.1. /studio is login-protected. */
.topright { display: flex; gap: 16px; align-items: center; }
.top nav a.studioBtn { border: 1px solid var(--gold); color: var(--gold); border-radius: 99px; padding: 10px 17px; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.top nav a.studioBtn:hover { background: var(--gold); color: #17150e; }

.intro { padding: 76px 0 66px; }
.eyebrow, .meta { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--gold); font-weight: 650; }
.intro h1 { font-family: var(--font-display); font-size: clamp(48px, 10vw, 96px); line-height: .99; letter-spacing: -.075em; margin: 16px 0 23px; font-weight: 750; }
.intro h1 span { color: var(--gold); }
.intro p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 430px; }
.down { display: inline-block; margin-top: 36px; color: var(--gold); font-size: 11px; letter-spacing: .1em; text-decoration: none; }

.journal-label { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 25px 0 12px; }
.journal-label h2 { font-size: 13px; margin: 0; font-weight: 700; }
.journal-label span { font-size: 11px; color: var(--muted); }

article { padding: 35px 0 49px; border-bottom: 1px solid var(--line); }
article .meta a { text-decoration: none; }
article .meta a:hover { text-decoration: underline; }
article figure { margin: 18px 0 23px; }
article picture { display: block; }
article img { display: block; width: auto; max-width: 100%; height: auto; }
article.photo-post img { max-height: 1100px; }
article.photo-post img.landscape { width: 100%; }
article.photo-post img.portrait { max-width: min(100%, 760px); }
article figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; }
article h2.title, article h1.title { font-family: var(--font-display); letter-spacing: -.045em; font-weight: 650; font-size: clamp(27px, 5vw, 43px); margin: 13px 0 12px; }
article h2.title a, article h1.title a { text-decoration: none; }
article h2.title a:hover { color: var(--gold); }
article .body { font-size: 15px; line-height: 1.85; color: #c8c0b3; white-space: pre-wrap; max-width: 610px; overflow-wrap: anywhere; }
article .body:empty { display: none; }
article.text-post { padding: 65px 0 75px; }
article.text-post .meta { margin-bottom: 25px; }
article.text-post .body { max-width: 800px; }
article.text-post .type-note { font-size: 10px; letter-spacing: .15em; color: var(--muted); margin: 0 0 15px; text-transform: uppercase; }
article.poem-post { padding-left: clamp(0px, 4vw, 52px); margin: 36px 0 28px; max-width: 900px; }
article.poem-post .body { font-size: clamp(20px, 2.4vw, 30px); font-weight: 450; line-height: 1.9; letter-spacing: -.025em; color: var(--cream); max-width: 850px; white-space: pre-line; padding: 18px 0 28px; }
article.prose-post .body { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.75; color: #e3ddd2; max-width: 760px; }
article.text-post .reaction { margin-top: 35px; }

.photo-license { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.license-link { border: 0; background: transparent; color: var(--muted); font-size: 11px; letter-spacing: .03em; padding: 5px 0; text-align: left; text-decoration: none; }
.license-link:hover { color: var(--gold); }

.reaction { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vibe { border: 1px solid #5a4820; border-radius: 99px; background: var(--malt); color: var(--cream); padding: 11px 16px; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.vibe .wave { color: var(--gold); font-size: 19px; }
.vibe[aria-pressed='true'] { background: var(--gold); color: #11110f; }
.vibe[aria-pressed='true'] .wave { color: #11110f; }
.thanks { color: var(--gold); font-size: 12px; min-height: 1em; }

.embed { border: 1px solid var(--line); background: var(--malt); padding: 16px; margin-top: 20px; border-radius: 12px; max-width: 760px; }
.embed p { color: var(--muted); font-size: 12px; }
.embed button { border: 1px solid var(--gold); background: transparent; color: var(--gold); border-radius: 99px; padding: 9px 15px; font-size: 12px; }
.embed a { color: var(--gold); font-size: 13px; margin-left: 12px; }
.embed iframe { width: 100%; border: 0; border-radius: 8px; margin-top: 12px; min-height: 160px; }

.empty { padding: 70px 0; color: var(--muted); }
.back { display: inline-block; margin: 30px 0 0; color: var(--gold); font-size: 11px; letter-spacing: .1em; text-decoration: none; }
.page { padding: 60px 0 40px; max-width: 760px; }
.page h1 { font-family: var(--font-display); letter-spacing: -.045em; font-size: clamp(32px, 6vw, 52px); margin: 0 0 24px; }
.page p, .page li { color: #e3ddd2; font-size: 16px; line-height: 1.8; }
.page .hint { color: var(--muted); font-size: 13px; }

footer { padding: 55px 0 70px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
footer b { color: var(--gold); }
footer a { color: var(--muted); }

@media (max-width: 550px) {
  article.photo-post img.portrait { max-width: 100%; }
  article.text-post { padding: 42px 0 50px; }
  article.poem-post { padding-left: 4px; }
  article.poem-post .body { font-size: clamp(14px, 3.6vw, 18px); line-height: 1.85; }
  .intro { padding: 55px 0; }
  .top { height: 70px; }
  .logo { font-size: 24px; }
  .intro h1 { font-size: 58px; }
  footer { flex-direction: column; }
}

[hidden] { display: none !important; }
.preview-bar { background: var(--gold); color: #11110f; padding: 10px 18px; font-size: 12px; font-weight: 650; text-align: center; }
.preview-bar a { color: #11110f; }
.page h2 { font-family: var(--font-display); letter-spacing: -.03em; font-size: 22px; margin: 36px 0 10px; }
