/* Hellestrup Herregaard — public site. No JS, no third parties. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/fraunces.woff2?v=4') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/fraunces-italic.woff2?v=4') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/inter.woff2?v=4') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-deep: #ebe4d3;
  --ink: #1f2a24;
  --ink-soft: #3d4a42;
  --muted: #6b7065;
  --line: #d6cfbd;
  --rust: #b8431c;
  --rust-deep: #973614;
  --gold: #a68b5b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 10; text-decoration: none; font-size: 14px;
}
.skip:focus { top: 16px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rust);
  margin: 0 0 20px;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
.wordmark-sub { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; margin-top: 6px; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rust); }

/* Hero */
.hero {
  padding: clamp(56px, 8vw, 120px) var(--gutter) 0;
  text-align: center;
}
.hero-text { max-width: 880px; margin: 0 auto; }
h1 {
  font-size: clamp(38px, 5.6vw, 82px);
  line-height: 1.02;
}
h1 em { font-style: italic; font-weight: 300; color: var(--ink-soft); }
.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 28px auto 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 999px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--rust); border-color: var(--rust); }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: transparent; color: var(--rust); border-color: var(--rust); }

.hero-house {
  margin: clamp(48px, 6vw, 96px) auto 0;
  max-width: 1200px;
  position: relative;
  padding-bottom: 44px;
}
.hero-house::before {
  /* soft ground shadow */
  content: '';
  position: absolute;
  left: 8%; right: 8%; bottom: 40px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(31, 42, 36, .22), transparent 70%);
}
.hero-house img { display: block; width: 100%; position: relative; }
.hero-house::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 44px;
  height: 1px;
  background: var(--line);
}
.hero-house figcaption {
  position: absolute; left: 0; right: 0; bottom: 8px;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(64px, 8vw, 128px) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.about-text { align-self: end; display: grid; gap: 20px; font-size: 18px; color: var(--ink-soft); max-width: var(--measure); }
.about-text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: .8;
  float: left;
  margin: 8px 10px 0 0;
  color: var(--rust);
}
.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(32px, 4vw, 64px) 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 400; }

/* History */
.history {
  background: var(--paper-deep);
  padding: clamp(64px, 8vw, 128px) var(--gutter);
}
.history-head { max-width: 1400px; margin: 0 auto clamp(40px, 5vw, 72px); }
.timeline {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px clamp(24px, 3vw, 48px);
}
.timeline li { position: relative; padding-top: 22px; border-top: 1px solid var(--gold); }
.timeline li::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rust);
}
.year { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; color: var(--rust); margin-bottom: 12px; font-variation-settings: 'opsz' 9; }
.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--ink-soft); font-size: 16px; }

/* Contact */
.contact {
  padding: clamp(64px, 8vw, 128px) var(--gutter);
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
}
.contact-head p:last-child { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.contact-list {
  font-style: normal;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-self: center;
}
.contact-list .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 8px; }
.contact-list a { font-family: var(--serif); font-size: 21px; line-height: 1.35; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-list a:hover { border-bottom-color: var(--rust); color: var(--rust-deep); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 40px;
  text-align: center;
}
.footer-logo { width: min(320px, 70vw); display: block; margin: 0 auto 28px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* 404 */
.notfound { max-width: 720px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); text-align: center; }
.notfound .lede { margin-bottom: 36px; }

/* Responsive */
@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 20px; }
  .nav { flex-wrap: wrap; gap: 14px 22px; }
  .hero { text-align: left; }
  .hero-text, .lede { margin-left: 0; }
  .actions { justify-content: flex-start; }
  .hero-house figcaption { text-align: left; }
  .about-text p:first-child::first-letter { font-size: 3em; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .contact-list { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 6px; }
}
