/* ============================================================
   HALIRUNA — design system
   Bone, forest ink, oxidized green, rust, charcoal.
   Editorial restraint. Negative space. Documentary feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bone:        #F1ECDF;
  --bone-warm:   #E9E0CB;
  --bone-deep:   #DFD4BB;
  --ink:         #1F2D26;
  --ink-soft:    #2C3A33;
  --ink-quiet:   #4A574F;
  --verdigris:   #5C7363;
  --verdigris-l: #8FA395;
  --rust:        #8B5A3C;
  --rust-quiet:  #A47558;
  --charcoal:    #2C2C2C;
  --hairline:    #C8BFA8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', 'Garamond', Georgia, serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
}

/* Subtle paper grain — fixed background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: multiply;
  z-index: 1;
}

main, header, footer {
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */

header.primary {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 96px;
}

header.primary .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 48px;
}

.wordmark {
  font-family: 'EB Garamond', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--rust);
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-family: 'Inter', -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a.current {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1.display {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 96px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1;
  margin: 0 0 36px;
  color: var(--ink);
}

h1.page-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin: 88px 0 28px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  margin: 56px 0 18px;
  color: var(--ink);
}

h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  margin: 36px 0 14px;
  color: var(--ink);
}

p {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 36em;
  color: var(--ink-soft);
}

p.lede {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  max-width: 28em;
  margin: 0 0 48px;
}

p.lede-prose {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 36px;
}

a {
  color: var(--ink);
}

a.read-more {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rust);
  display: inline-block;
  margin-top: 8px;
  transition: color 0.25s ease;
}

a.read-more:hover {
  color: var(--rust);
}

a.inline {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rust-quiet);
  transition: border-color 0.25s ease;
}

a.inline:hover {
  border-bottom-color: var(--rust);
}

em, .italic {
  font-style: italic;
}

strong {
  font-weight: 500;
}

ul.editorial {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

ul.editorial li {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  max-width: 38em;
}

ul.editorial li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--verdigris);
}

/* ============================================================
   SECTIONS
   ============================================================ */

section {
  padding: 64px 0;
}

section.first {
  padding-top: 0;
}

section.hero {
  padding: 24px 0 80px;
}

/* ============================================================
   LAYERS GRID (homepage)
   ============================================================ */

.layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 96px 0 64px;
  border-top: 1px solid var(--hairline);
}

.layer {
  padding: 48px 48px 48px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.layer:nth-child(odd) {
  border-right: 1px solid var(--hairline);
}

.layer:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
}

.layer .label {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--verdigris);
  margin-bottom: 14px;
  display: block;
}

.layer h3 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  font-style: italic;
}

.layer p {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 18px;
  color: var(--ink-soft);
  max-width: none;
}

/* ============================================================
   DISPATCH / PULL QUOTE
   ============================================================ */

.dispatch {
  border-left: 2px solid var(--rust);
  padding-left: 28px;
  margin: 48px 0;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32em;
}

.dispatch cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--verdigris);
  display: block;
  margin-top: 16px;
}

/* ============================================================
   FIELD NOTE BLOCK
   ============================================================ */

.fieldnote {
  background: var(--bone-warm);
  padding: 40px 48px;
  margin: 56px 0;
  border-left: 3px solid var(--ink);
}

.fieldnote .stamp {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rust);
  margin-bottom: 14px;
  display: block;
}

.fieldnote p:last-child { margin-bottom: 0; }

/* ============================================================
   DISPATCH / ESSAY LIST
   ============================================================ */

.dispatches {
  margin: 48px 0 64px;
}

.dispatch-item {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: start;
}

.dispatch-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.dispatch-item .date {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--verdigris);
  padding-top: 10px;
}

.dispatch-item h4 {
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  margin: 0 0 10px;
}

.dispatch-item p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-quiet);
  margin: 0;
  max-width: 38em;
}

/* ============================================================
   ENGAGEMENT BLOCK (contact)
   ============================================================ */

.engagement-email {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 40px;
  font-style: italic;
  text-align: center;
  margin: 64px 0;
  letter-spacing: -0.005em;
}

.engagement-email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 6px;
}

.engagement-email a:hover {
  color: var(--rust);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer.primary {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 48px;
  margin-top: 128px;
}

footer.primary .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

footer.primary a {
  color: var(--ink-quiet);
  text-decoration: none;
  transition: color 0.25s ease;
}

footer.primary a:hover {
  color: var(--rust);
}

footer.primary .footer-locus {
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: var(--verdigris);
}

/* ============================================================
   IMAGES — editorial treatment
   ============================================================ */

img { max-width: 100%; height: auto; display: block; }

.about-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}

.about-hero .portrait-wrap {
  padding-right: 0;
}

.about-hero img {
  width: 100%;
  height: auto;
}

.about-hero .text {
  padding-bottom: 16px;
}

.about-hero .text h1.page-title { margin-bottom: 24px; }

.image-caption {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--verdigris);
  margin-top: 10px;
  line-height: 1.4;
}

.page-landscape {
  margin: 0 0 64px;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.page-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-image {
  margin: 64px 0;
}

.section-image img {
  width: 100%;
  height: auto;
}

.section-image.tall {
  max-height: 460px;
  overflow: hidden;
}

.section-image.tall img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.intimate-image {
  max-width: 320px;
  margin: 56px 0;
}

.intimate-image img {
  width: 100%;
}

@media (max-width: 880px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .page-landscape { height: 220px; }
  .section-image.tall { max-height: 280px; }
  .section-image.tall img { height: 280px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 64px 0;
  width: 80px;
}

.divider-center {
  border: none;
  border-top: 1px solid var(--rust);
  margin: 64px auto;
  width: 60px;
}

.stamp-label {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rust);
  margin-bottom: 12px;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  .wrap, .wrap-narrow { padding: 0 32px; }
  h1.display { font-size: 56px; letter-spacing: 0.24em; }
  h1.page-title { font-size: 38px; }
  h2 { font-size: 28px; margin-top: 64px; }
  h3 { font-size: 23px; }
  p { font-size: 17px; }
  p.lede { font-size: 21px; }
  p.lede-prose { font-size: 19px; }

  header.primary { margin-bottom: 64px; }
  header.primary .wrap { flex-direction: column; gap: 16px; align-items: flex-start; }
  nav.primary-nav ul { gap: 20px; flex-wrap: wrap; }

  .layers { grid-template-columns: 1fr; }
  .layer { padding: 36px 0 !important; border-right: none !important; }
  .layer:nth-child(even) { padding-left: 0; }

  .dispatch-item { grid-template-columns: 1fr; gap: 8px; }
  .dispatch-item .date { padding-top: 0; }

  footer.primary .wrap { flex-direction: column; gap: 16px; align-items: flex-start; }

  .engagement-email { font-size: 28px; }
  section { padding: 48px 0; }
}
