:root {
  --background: #f5f1ea;
  --foreground: #211f1c;
  --secondary: #e8e2d8;
  --muted: #ded8cd;
  --muted-foreground: #6d6862;
  --border: #bfb8ad;
  --font-serif: "Italiana", Georgia, serif;
  --font-sans: "DM Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--foreground); color: var(--background); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  width: min(100% - 2.5rem, 96rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: opacity 200ms ease;
}
.wordmark:hover { opacity: 0.55; }

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--foreground);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: opacity 200ms ease;
}
.editorial-link:hover { opacity: 0.55; }
.editorial-link svg { width: 0.85rem; height: 0.85rem; }

/* Hero */
.hero-section { padding: 2rem 0 3.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(700px, calc(100svh - 11rem));
}

.hero-title {
  grid-row: 2;
  margin-top: -2.35rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.25rem;
}

.hero-title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(4.25rem, 12vw, 10.5rem);
  line-height: 0.76;
}
.hero-title h1 span { display: block; }
.hero-title h1 .italic { font-style: italic; }

.hero-image {
  grid-row: 1;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--muted);
  height: clamp(23rem, 58svh, 36rem);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(33, 31, 28, 0.8);
  color: var(--background);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-index { display: none; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
  transition: color 200ms ease;
}
.scroll-cue:hover { color: var(--foreground); }
.scroll-cue svg { width: 0.85rem; height: 0.85rem; transform: rotate(180deg); }

/* Profile */
.profile {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}

.intro-grid {
  display: grid;
  gap: 2.25rem;
  padding: 4rem 0;
}

.intro-text {
  margin: 0;
  max-width: 56rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.75rem);
  line-height: 1.08;
}

/* Footer */
.site-footer { padding: 2.5rem 0; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.email-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 8px;
  transition: text-decoration-color 200ms ease;
}
.email-link:hover { text-decoration-color: var(--foreground); }

.footer-meta { display: flex; align-items: center; gap: 2rem; }

.editorial-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: border-color 200ms ease;
}
.editorial-social:hover { border-color: var(--foreground); }
.editorial-social svg { width: 0.85rem; height: 0.85rem; }

.copyright {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .shell { width: min(100% - 6rem, 96rem); }
  .site-header { height: 6rem; }
  .hero-section { padding: 3rem 0 5rem; }

  .hero-grid {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr) 2.5rem;
    min-height: min(780px, calc(100svh - 13rem));
  }

  .hero-title {
    grid-column: 1 / 3;
    grid-row: 1;
    margin-top: 0;
    padding-bottom: 2rem;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 34rem;
  }
  .hero-image figcaption { padding-inline: 1.25rem; }

  .hero-index {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.25rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-foreground);
  }
  .hero-index span { writing-mode: vertical-rl; }

  .scroll-cue { margin-top: 2.5rem; }

  .intro-grid {
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
    gap: 4rem;
    padding: 6rem 0;
  }

  .site-footer { padding: 3.5rem 0; }
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .email-link { font-size: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
