/* Shared styles for the whole site. Dark, minimal, photo-first. */
:root {
  --bg: #0d0d0e;
  --surface: #161618;
  --surface-2: #1f1f22;
  --line: #2b2b30;
  --text: #ececec;
  --muted: #94949a;
  --faint: #5e5e64;
  --accent: #e4b363;
  --accent-ink: #1b1408;
  --danger: #ff7a6b;
  --ok: #7fd3a0;
  --radius: 10px;
  --max: 1180px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 13, 14, .86); backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font-family: var(--serif); font-size: 1.55rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 7px;
  font-size: .92rem; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); text-decoration: none; cursor: pointer;
  font-size: .95rem; font-weight: 500; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: #44444a; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Long-form text */
.prose { font-size: 1.04rem; line-height: 1.75; max-width: 68ch; }
.prose h1, .prose h2, .prose h3 { font-family: var(--sans); font-weight: 600; margin: 1.4em 0 .5em; }
.prose h1 { font-size: 1.4rem; } .prose h2 { font-size: 1.2rem; } .prose h3 { font-size: 1.05rem; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose ul, .prose ol { padding-left: 1.3em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--faint); font-size: .85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
