/* House of Stark — ported from the Framer original (Sept 2026).
   Palette and type scale measured from the live site. Display face on the
   original is "Gambarino" (Fontshare) and body is Inter; both are used here
   only if installed locally. To self-host them, drop woff2 files under
   /assets/fonts/ and add @font-face rules — CSP forbids external font hosts. */

:root {
  --bg: #d8d4c8;        /* rgb(216,212,200) */
  --ink: #2d302d;       /* headings, wordmark */
  --body: #4a4d48;      /* paragraph text */
  --muted: #5d605a;     /* small caps labels */
  --accent: #294d3b;    /* eyebrow green */
  --paper: #f3f1ec;     /* photo frame */
  --rule: rgba(45, 48, 45, 0.35);
  --serif: "Gambarino", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.caps, .wordmark, .est, .eyebrow, .meta, figcaption {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 1rem;
  margin: 0 1.75rem;
  padding-left: 0; padding-right: 0;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.est { font-size: 0.625rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Hero */
main { flex: 1; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem 4rem;
  align-items: start;
  padding: 4.5rem 0 3rem;
  margin: 0 1.75rem;
}
.eyebrow { font-size: 0.6875rem; color: var(--accent); margin: 0 0 1.5rem; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  max-width: 16ch;
}
.lead { font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.01em; max-width: 34rem; margin: 0; }

/* Framed photo */
.hero-figure { margin: 3rem 0 0; justify-self: end; width: min(100%, 22rem); }
.frame {
  background: var(--paper);
  padding: 0.5rem;
  border: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--ink);
  transform: rotate(-1.2deg);
}
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
figcaption { font-size: 0.5rem; color: var(--muted); text-align: right; margin-top: 1rem; letter-spacing: 0.18em; }

/* Footer */
.bottom {
  margin: 0 1.75rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.mail { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
.mail:hover { text-decoration: underline; }
.mail-icon { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.mail-icon::after { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 5px; border-bottom: 1.5px solid currentColor; transform: skewY(0deg); clip-path: polygon(0 0, 50% 100%, 100% 0); background: currentColor; }
.meta { font-size: 0.6875rem; color: var(--muted); margin: 1rem 0 0; }
.soon { font-size: 0.5625rem; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-figure { justify-self: start; width: min(100%, 18rem); margin-top: 1rem; }
  .top, .bottom { margin: 0 1.25rem; }
  .hero { margin: 0 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .frame { transition: transform 0.4s ease; }
  .frame:hover { transform: rotate(0deg); }
}
