/* The Tartan Bureau – Contemporary Highland Archive */
:root {
  --ink: #1A1A1A;
  --ink-soft: #3a3a3a;
  --paper: #FBF9F6;
  --paper-warm: #F0ECE1;
  --rule: #D9D4C9;
  --primary: #1C2520;       /* Midnight Kelp */
  --primary-deep: #0f1612;
  --secondary: #6B2D31;     /* Madder Root */
  --accent: #D4A373;        /* Oatmeal Gold */
  --max: 72rem;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
a:hover { color: var(--secondary); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Anchor strip */
.anchor-strip {
  height: 4px;
  background: var(--secondary);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--primary);
}
.brand:hover { color: var(--primary); }
.brand .mark { width: 2.4rem; height: 2.4rem; flex-shrink: 0; }
.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .wordmark .pre {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.18rem;
  font-weight: 500;
}
.brand .wordmark .name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--primary);
  max-width: 24ch;
}
.hero .lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 0 2rem;
}

/* Hero Image */
.hero-image-wrap {
  margin-top: 1.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-warm);
}
.hero-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Main content */
main.page { padding: 3rem 0 3.5rem; }
main.page h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 2.25rem 0 0.8rem;
  color: var(--primary);
}
main.page h2:first-child { margin-top: 0; }
main.page h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
  color: var(--primary);
}
main.page p { margin: 0 0 1.1rem; max-width: 44rem; font-size: 1.0625rem; }
main.page ul, main.page ol { max-width: 44rem; padding-left: 1.2rem; }
main.page li { margin-bottom: 0.45rem; }
main.page a { color: var(--primary); }
main.page a:hover { color: var(--secondary); }

/* CTA block */
.cta {
  margin: 4rem 0 0;
  padding: 2rem 2.25rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  max-width: 44rem;
}
.cta p { margin: 0; font-size: 1.05rem; }
.cta strong { color: var(--primary); font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; display: block; margin-bottom: 0.4rem; }
.email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: 3rem 0 2.5rem;
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.site-footer h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.8rem;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.site-footer p { margin: 0 0 0.6rem; line-height: 1.55; }
.site-footer .nav { flex-direction: column; gap: 0.55rem; }
.site-footer .nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0;
}
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 720px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav { width: 100%; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-image-wrap img { aspect-ratio: 16/9; }
  main.page { padding: 2rem 0 3rem; }
  .site-footer .container { grid-template-columns: 1fr; gap: 1.75rem; }
}
