/* Interior — shared theme + components */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f3f0e9;
  --surface: #ffffff;
  --surface-2: #ece6d8;
  --surface-3: #e2dccd;
  --ink: #1a1815;
  --ink-2: #3a3630;
  --muted: #807a72;
  --muted-2: #a8a195;
  --border: #e2ddd1;
  --border-strong: #c9c2b2;
  --accent: #8a6f4e;
  --accent-soft: #c4a884;
  --accent-ink: #ffffff;
  --ok: #5e6b54;
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --font-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --density-1: 1;
  --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.04), 0 1px 0 rgba(40, 30, 15, 0.02);
  --shadow-md: 0 4px 18px rgba(40, 30, 15, 0.06), 0 1px 0 rgba(40, 30, 15, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(40, 30, 15, 0.18), 0 12px 24px -12px rgba(40, 30, 15, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ───────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(243, 240, 233, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.nav__brand .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0 5px 6px;
  vertical-align: middle;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: #2a2620; }
.btn--ghost {
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); }
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: #75593b; }
.btn--lg {
  padding: 15px 28px;
  font-size: 15px;
}
.btn--xl {
  padding: 18px 32px;
  font-size: 16px;
}
.btn--icon::after {
  content: '→';
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 0.6;
}

/* ── TEXT ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.h1 em {
  font-style: italic;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0;
}
.h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
  margin: 0;
}
.tiny {
  font-size: 12px;
  color: var(--muted);
}
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ── CARDS / SURFACES ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── PHOTO TILE ───────────────────────────────────────── */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo--ratio-4x5 { aspect-ratio: 4 / 5; }
.photo--ratio-1x1 { aspect-ratio: 1 / 1; }
.photo--ratio-3x4 { aspect-ratio: 3 / 4; }
.photo--ratio-16x9 { aspect-ratio: 16 / 9; }

/* ── CHIP ─────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(255,255,255,0.6);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 56px 56px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ── MOBILE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav__brand { font-size: 22px; }
  .nav__links { display: none; }
  .nav__cta .btn { padding: 8px 14px; font-size: 13px; }
  .footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .footer__brand { font-size: 40px; }
}

/* ── DENSITY ──────────────────────────────────────────── */
[data-density="compact"] {
  --radius-lg: 8px;
  --radius-xl: 12px;
}
[data-density="compact"] .nav { padding: 14px 40px; }
[data-density="compact"] .btn { padding: 9px 16px; }
[data-density="compact"] .btn--lg { padding: 12px 22px; font-size: 14px; }
[data-density="compact"] .btn--xl { padding: 14px 26px; font-size: 15px; }

[data-density="spacious"] {
  --radius-lg: 18px;
  --radius-xl: 28px;
}
[data-density="spacious"] .nav { padding: 28px 64px; }
[data-density="spacious"] .btn--xl { padding: 22px 36px; font-size: 17px; }

/* ── TYPE FAMILIES (tweak) ────────────────────────────── */
[data-type="serif"] { --font-sans: 'Instrument Serif', Georgia, serif; }
[data-type="mono-accent"] { --font-display: 'JetBrains Mono', monospace; }
[data-type="grotesk"] {
  --font-sans: 'Geist', -apple-system, sans-serif;
  --font-display: 'Geist', -apple-system, sans-serif;
}
[data-type="grotesk"] .h1, [data-type="grotesk"] .h2, [data-type="grotesk"] .nav__brand, [data-type="grotesk"] .footer__brand {
  font-weight: 500;
  letter-spacing: -0.035em;
}
[data-type="grotesk"] .h1 em { font-style: normal; }

/* ── PALETTES (tweak) ─────────────────────────────────── */
[data-palette="sage"] {
  --bg: #eef0e8;
  --surface: #ffffff;
  --surface-2: #dce0d0;
  --surface-3: #cdd2bf;
  --border: #dadfca;
  --border-strong: #b8bfa6;
  --accent: #5e6b54;
  --accent-soft: #94a085;
}
[data-palette="dusk"] {
  --bg: #1c1a17;
  --surface: #28251f;
  --surface-2: #322e26;
  --surface-3: #3d382e;
  --ink: #f3f0e9;
  --ink-2: #c4beaf;
  --muted: #8a8478;
  --muted-2: #6a655a;
  --border: #3a352c;
  --border-strong: #4e4838;
  --accent: #d4b890;
  --accent-soft: #a08866;
  --accent-ink: #1c1a17;
}
[data-palette="dusk"] .btn--primary { background: var(--ink); color: var(--bg); }
[data-palette="dusk"] .btn--primary:hover { background: #ffffff; }
[data-palette="dusk"] .nav { background: rgba(28,26,23,0.82); }
[data-palette="dusk"] .chip { background: rgba(255,255,255,0.03); }

[data-palette="ink"] {
  --bg: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #e5e3df;
  --surface-3: #d5d3cd;
  --border: #e0ddd6;
  --border-strong: #c2bfb6;
  --accent: #1a1815;
  --accent-soft: #4a463f;
}
