/* ==========================================================================
   layout.css — the page frame: navigation, section shells, footer.
   Reusable across every page of the site.
   ========================================================================== */

/* --- Navigation -----------------------------------------------------------
   Sits over the hero in paper-white, then inverts once the hero scrolls by.
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  color: var(--paper);
  mix-blend-mode: normal;
  transition: background 0.4s ease, color 0.4s ease, padding 0.4s ease;
}

.nav--solid {
  background: var(--paper);
  color: var(--ink);
  padding-block: 1.1rem;
  box-shadow: 0 1px 0 rgba(23, 24, 15, 0.1);
}

.nav__mark {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "hlig" 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: clamp(1.1rem, 2.6vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-sm);
  letter-spacing: 0.07em;
}
.nav__links a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; text-decoration: underline; }

/* --- Section shells ------------------------------------------------------- */

.section {
  padding: var(--band) var(--gutter);
}

.section__inner {
  max-width: var(--max);
  margin-inline: auto;
}

/* Two-column shell: a short left column, a wider right column. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* Tone variants */
.section--ink   { background: var(--ink);   color: var(--paper); }
.section--field { background: var(--field); color: var(--paper); }
.section--warm  { background: var(--paper-warm); }

.section--ink .quiet,
.section--field .quiet { color: rgba(234, 231, 220, 0.62); }

.section--ink .field > span,
.section--field .field > span { color: rgba(234, 231, 220, 0.62); }

/* Form controls inverted for the dark sections. */
.section--ink :is(.field input, .field textarea, .field select),
.section--field :is(.field input, .field textarea, .field select) {
  color: var(--paper);
  border-bottom-color: rgba(234, 231, 220, 0.35);
}
.section--ink :is(.field input, .field textarea, .field select):focus,
.section--field :is(.field input, .field textarea, .field select):focus {
  border-bottom-color: var(--paper);
}
.section--ink .field select option,
.section--field .field select option { color: var(--ink); background: var(--paper); }

.section--ink .button,
.section--field .button { background: var(--paper); color: var(--ink); }
.section--ink .button:hover,
.section--field .button:hover { background: var(--nasturtium); color: var(--paper); }

/* --- Full-bleed image band ------------------------------------------------ */

.band {
  position: relative;
  min-height: clamp(20rem, 55vh, 36rem);
  overflow: hidden;
}
.band img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2.5rem;
}
.footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.footer__mark {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "hlig" 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: 0.18em;
  line-height: 1;
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
}
.footer__cols h4 {
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: rgba(234, 231, 220, 0.55);
  margin: 0 0 0.9rem;
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin-bottom: 0.5rem; font-size: var(--t-sm); }
.footer__cols a { text-decoration: none; opacity: 0.85; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }

.footer__fine {
  max-width: var(--max);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(234, 231, 220, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: var(--t-xs);
  color: rgba(234, 231, 220, 0.55);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 820px) {
  .split,
  .footer__inner { grid-template-columns: 1fr; }
  .nav__links { gap: 1.1rem; font-size: var(--t-xs); }
}
