/* Arkansas Grand Canyon: field-bulletin / natural-history monograph style */

:root {
  --paper: #f4eee2;
  --paper-2: #ebe3d3;
  --paper-3: #e2d8c4;
  --ink: #1f2a24;
  --ink-2: #3b463f;
  --ink-3: #5d665f;
  --ochre: #a8642a;
  --ochre-deep: #8a4f1e;
  --ochre-soft: #e9cfae;
  --slate: #4a5a5e;
  --moss: #5e6b3a;
  --fog: #d9d6cc;
  --chert: #c9b48a;
  --river: #3e6e8a;
  --rule: #cfc5b1;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --label: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;

  --measure: 44rem;
  --wide: 62rem;
  --rail: 15rem;
  --gutter: clamp(1.1rem, 3.2vw, 2.75rem);
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  /* faint paper grain */
  background-image: radial-gradient(rgba(31, 42, 36, 0.035) 1px, transparent 1px);
  background-size: 5px 5px;
}

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

a {
  color: var(--ochre-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ochre);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem var(--gutter) 0.35rem;
  max-width: 90rem;
  margin: 0 auto;
}

.ridge {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: -1px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark .mark {
  width: 2.35rem;
  height: 2.35rem;
}

.wm-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wm-top {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 0.2rem;
}

.wm-main {
  font-family: var(--display);
  font-weight: 640;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}

.primary {
  margin-left: auto;
}

.primary ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.primary a:hover,
.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

.contents-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.contents-toggle:hover,
.contents-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

.ct-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.ct-bars i {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.ct-bars i:nth-child(2) {
  width: 10px;
}

.drawer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

.drawer-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.drawer-group,
.foot-group {
  padding: 0.85rem 1rem 0.9rem;
  border-left: 6px solid var(--layer-color, var(--chert));
  background: var(--paper);
}

.drawer-label,
.foot-label {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.4rem;
}

.drawer ul,
.foot-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer li a,
.foot-group li a {
  display: block;
  padding: 0.2rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}

.drawer li a:hover,
.foot-group li a:hover,
.drawer li a[aria-current="page"] {
  color: var(--ochre-deep);
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .primary {
    display: none;
  }
  .contents-toggle {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .drawer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .drawer-inner {
    grid-template-columns: 1fr;
  }
  .contents-toggle {
    padding: 0.42rem 0.6rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- layer patterns (geologic symbology) ---------- */

.layer-sandstone {
  --layer-color: var(--ochre);
  --layer-bg: radial-gradient(rgba(138, 79, 30, 0.38) 1.1px, transparent 1.3px) 0 0 / 9px 9px,
    radial-gradient(rgba(138, 79, 30, 0.28) 1px, transparent 1.2px) 4px 5px / 9px 9px, #e8cba3;
}

.layer-limestone {
  --layer-color: var(--chert);
  --layer-bg: linear-gradient(rgba(74, 90, 94, 0.32) 1px, transparent 1px) 0 0 / 28px 14px,
    linear-gradient(90deg, rgba(74, 90, 94, 0.32) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(74, 90, 94, 0.32) 1px, transparent 1px) 14px 14px / 28px 28px, #e4dccb;
}

.layer-shale {
  --layer-color: var(--slate);
  --layer-bg: repeating-linear-gradient(
      180deg,
      transparent 0 6px,
      rgba(31, 42, 36, 0.3) 6px 7px
    ),
    #c8cbc4;
}

.layer-chert {
  --layer-color: var(--moss);
  --layer-bg: linear-gradient(135deg, transparent 46%, rgba(94, 107, 58, 0.36) 47% 53%, transparent 54%) 0 0 / 14px 14px,
    #dcdcc6;
}

/* ---------- home hero ---------- */

.home-hero {
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  grid-template-areas: "text data" "photo photo";
  column-gap: var(--gutter);
  max-width: 90rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero-text {
  grid-area: text;
}

.hero-photo {
  grid-area: photo;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

@media (min-width: 90rem) {
  .hero-photo {
    margin-left: calc((90rem - 100vw) / 2 - var(--gutter));
    margin-right: calc((90rem - 100vw) / 2 - var(--gutter));
  }
}

.hero-data {
  grid-area: data;
  align-self: end;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 0.95rem 1.1rem 1rem;
  position: relative;
}

.hero-data::before {
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: -9px;
  height: 8px;
  background: var(--layer-bg);
  border: 1.5px solid var(--ink);
  border-bottom: 0;
}

.hd-label {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.5rem;
}

.hero-data dl {
  margin: 0;
}

.hero-data dl > div {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.hero-data dt {
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.45rem;
  line-height: 1.05;
  font-variation-settings: "opsz" 72;
  color: var(--ochre-deep);
}

.hero-data dd {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.hd-more {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "photo" "data";
  }
  .hero-data {
    margin-top: 1.75rem;
    max-width: 30rem;
  }
}

.home-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 5.2vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  margin: 0.35rem 0 1rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  max-width: 42rem;
  color: var(--ink-2);
  margin: 0 0 0.75rem;
}

.hero-photo {
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.hero-photo .fig {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: clamp(200px, 30vw, 560px);
  object-fit: cover;
  object-position: center 55%;
}

.hero-photo figcaption {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.55rem var(--gutter) 0;
}

.hero-photo::after {
  /* drifting valley fog */
  content: "";
  position: absolute;
  inset: 0 0 2.5rem 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(244, 238, 226, 0.22) 38%,
    rgba(244, 238, 226, 0.08) 50%,
    transparent 64%
  );
  background-size: 220% 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo::after {
    animation: fog 26s ease-in-out infinite alternate;
  }
}

@keyframes fog {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 100% 0;
  }
}

.kicker {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0;
}

.meta-line {
  font-family: var(--label);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 0;
}

.meta-line a {
  color: inherit;
}

/* ---------- page head ---------- */

.page-head {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 3rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gutter);
}

.page-head-text {
  grid-column: 2;
  max-width: var(--wide);
  position: relative;
  padding-left: 1.4rem;
}

.page-head-text::before {
  /* a stratigraphic bar marks the chapter's section */
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 8px;
  background: var(--layer-bg);
  border: 1px solid rgba(31, 42, 36, 0.35);
}

.crumbs {
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--ink-3);
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(2.05rem, 1.4rem + 2.9vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 120;
  margin: 0.4rem 0 0.8rem;
  max-width: 22ch;
  text-wrap: balance;
}

.page-lead {
  grid-column: 2;
  max-width: 54rem;
  margin-top: 1.5rem;
}

.page-lead .fig {
  margin: 0;
}

.page-lead img {
  max-height: min(68vh, 34rem);
  object-fit: cover;
  object-position: center 35%;
}

.page-lead .fig-portrait img {
  max-height: none;
  max-width: 24rem;
}

/* ---------- page grid ---------- */

.page-grid {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) 4rem;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: start;
}

.rail {
  position: sticky;
  top: 6.25rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.toc summary {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc ol {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc li a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  padding: 0.28rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.18s ease;
}

.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--label);
  font-size: 0.74rem;
  color: var(--ink-3);
  padding-top: 0.12rem;
}

.toc li.toc-sources a::before {
  content: "§";
}

.toc li a:hover,
.toc li a.is-active {
  color: var(--ochre-deep);
}

.toc li a.is-active::before {
  color: var(--ochre);
}

/* ---------- prose ---------- */

.prose {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
  max-width: var(--wide);
  min-width: 0;
}

.prose > * {
  grid-column: 1;
}

.prose > .fig,
.prose > .table-wrap,
.prose > .column-index,
.prose > .page-sources,
.prose > .prev-next {
  grid-column: 1 / -1;
}

.prose p,
.prose li {
  hyphens: manual;
}

@media (max-width: 640px) {
  .prose p,
  .prose li {
    hyphens: auto;
  }
  .prose .lede {
    font-size: 1.1em;
  }
}

.toc summary::after {
  content: "+";
  float: right;
  font-size: 1rem;
  line-height: 1;
}

.toc[open] summary::after {
  content: "−";
}

.prose .lede {
  font-size: 1.22em;
  line-height: 1.55;
  color: var(--ink);
  margin-top: 0;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
  margin: 2.6rem 0 0.8rem;
  text-wrap: balance;
}

.prose h2::before {
  /* strata rule: sandstone over shale over chert */
  content: "";
  display: block;
  width: 4.5rem;
  height: 11px;
  margin-bottom: 0.9rem;
  background: linear-gradient(
    180deg,
    var(--ochre) 0 3px,
    transparent 3px 4px,
    var(--chert) 4px 7px,
    transparent 7px 8px,
    var(--slate) 8px 11px
  );
}

.prose h3 {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.28rem;
  line-height: 1.25;
  font-variation-settings: "opsz" 36;
  margin: 1.9rem 0 0.5rem;
}

.prose h4 {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.4rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.3rem 0;
}

.prose li::marker {
  color: var(--ochre);
}

.prose strong {
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* citations */
.cite {
  font-family: var(--label);
  font-size: 0.66em;
  font-weight: 600;
  line-height: 0;
  margin-left: 0.08em;
  white-space: nowrap;
}

.cite a {
  color: var(--ochre-deep);
  text-decoration: none;
  padding: 0 0.05em;
}

.cite a:hover {
  text-decoration: underline;
}

.cite .sep {
  color: var(--ink-3);
}

/* badges */
.badge {
  display: inline-block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem 0.08rem;
  border-radius: 2px;
  vertical-align: 0.12em;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge-attributed {
  color: var(--river);
}

.badge-unconfirmed {
  color: #9a3b23;
}

.badge-verified {
  color: var(--moss);
}

/* figures */
.fig {
  margin: 2rem 0;
}

.fig img {
  width: 100%;
  border: 1px solid rgba(31, 42, 36, 0.18);
  background: var(--paper-3);
}

.fig figcaption {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 0.55rem;
  max-width: var(--measure);
}

.fig .credit {
  display: block;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.fig .credit a {
  color: inherit;
}

.prose > .fig-portrait {
  grid-column: 1;
  max-width: 24rem;
}

/* notes */
.note {
  margin: 1.8rem 0;
  padding: 1rem 1.15rem 0.95rem 1.25rem;
  background: var(--paper-2);
  border-left: 4px solid var(--ochre);
  font-size: 0.97rem;
}

.note p {
  margin: 0.35rem 0;
}

.note-label {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 0.2rem;
}

.note-disclosure {
  border-left-color: var(--slate);
}

.note-disclosure .note-label {
  color: var(--slate);
}

.note-correction .note-label,
.note-myth .note-label {
  color: #9a3b23;
}

.note-correction {
  border-left-color: #9a3b23;
}

/* tables */
.table-wrap {
  margin: 1.6rem 0 2rem;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: var(--wide);
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  line-height: 1.45;
}

.prose th {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
  padding: 0.65rem 0.75rem 0.5rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.prose td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:hover td {
  background: rgba(233, 207, 174, 0.25);
}

.prose td:first-child {
  font-weight: 600;
}

/* ---------- home chapter column ---------- */

.column-index {
  margin: 3rem 0 1rem;
}

.ci-intro {
  max-width: var(--measure);
}

.column {
  margin-top: 1.5rem;
  border: 1.5px solid var(--ink);
}

.layer {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  border-top: 1.5px solid var(--ink);
}

.layer:first-child {
  border-top: 0;
}

.layer-head {
  padding: 1rem 1.1rem;
  background: var(--layer-bg);
  border-right: 1.5px solid var(--ink);
}

.layer-name {
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
  background: var(--paper);
  display: inline-block;
  padding: 0.1rem 0.45rem 0.15rem;
  border: 1px solid rgba(31, 42, 36, 0.4);
}

.layer-rock {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0;
  background: rgba(244, 238, 226, 0.9);
  display: inline-block;
  padding: 0.15rem 0.45rem;
  color: var(--ink-2);
}

.layer-rock span {
  font-weight: 600;
  color: var(--ink);
}

.layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  background: var(--paper);
}

.layer-list li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.layer-list a {
  display: block;
  height: 100%;
  padding: 0.85rem 1rem 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}

.layer-list a:hover {
  background: var(--paper-2);
}

.ci-title {
  display: block;
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.06rem;
  line-height: 1.22;
  margin-bottom: 0.3rem;
}

.layer-list a:hover .ci-title {
  color: var(--ochre-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.ci-sum {
  display: block;
  font-size: 0.88rem;
  line-height: 1.42;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .layer {
    grid-template-columns: 1fr;
  }
  .layer-head {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }
}

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.6s ease calc(var(--i, 0) * 90ms), transform 0.6s ease calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sources ---------- */

.page-sources {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--ink);
}

.page-sources h2 {
  margin-top: 1.2rem;
}

.page-sources h2::before {
  display: none;
}

.src-note {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.source-list {
  font-size: 0.88rem;
  line-height: 1.45;
  padding-left: 2.2rem;
  columns: 2 22rem;
  column-gap: 2.5rem;
}

.source-list li {
  break-inside: avoid;
  margin: 0 0 0.6rem;
}

.source-list li::marker {
  font-family: var(--label);
  font-weight: 600;
  color: var(--ochre-deep);
}

.source-list li:target {
  background: var(--ochre-soft);
  outline: 4px solid var(--ochre-soft);
}

.src-title {
  color: var(--ink);
}

.src-url {
  display: block;
  font-family: var(--label);
  font-size: 0.8rem;
  color: var(--ink-3);
  word-break: break-all;
}

.src-all {
  font-family: var(--label);
  font-size: 0.75rem;
  color: var(--ink-3);
  text-decoration: none;
}

.src-used {
  display: block;
  font-family: var(--label);
  font-size: 0.78rem;
  color: var(--moss);
  margin-top: 0.15rem;
}

.source-list.full {
  columns: 1;
  max-width: var(--measure);
}

/* ---------- trust box & prev/next ---------- */

.trust {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  background: linear-gradient(90deg, var(--paper-2), var(--paper));
  font-size: 0.92rem;
  max-width: var(--measure);
}

.trust p {
  margin: 0;
}

.prev-next {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pn {
  display: block;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pn:hover {
  background: var(--ink);
  color: var(--paper);
}

.pn-next {
  text-align: right;
}

.pn-dir {
  display: block;
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pn-title {
  display: block;
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.08rem;
  line-height: 1.25;
  margin-top: 0.25rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #e7e1d3;
  padding: 3rem var(--gutter) 1.5rem;
}

.foot-inner {
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 2.5rem;
}

.wordmark-foot {
  color: var(--paper);
}

.foot-brand p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #cfc8b8;
}

.foot-meta a,
.foot-legal a {
  color: var(--ochre-soft);
}

.foot-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer .foot-group {
  background: rgba(244, 238, 226, 0.05);
}

.site-footer .foot-label {
  color: #b9b2a2;
}

.site-footer .foot-group li a {
  color: #efe9dc;
  font-size: 0.92rem;
}

.site-footer .foot-group li a:hover {
  color: var(--ochre-soft);
}

.foot-legal {
  max-width: 90rem;
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 238, 226, 0.15);
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #a9a292;
}

@media (max-width: 1100px) {
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .foot-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .foot-index {
    grid-template-columns: 1fr;
  }
}

/* ---------- responsive layout ---------- */

@media (max-width: 1024px) {
  .page-head,
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-head-text,
  .page-lead {
    grid-column: 1;
  }
  .rail {
    position: static;
    max-height: none;
    margin-bottom: 1.25rem;
    border: 1px solid var(--rule);
    background: var(--paper-2);
    padding: 0.75rem 1rem;
  }
  .toc summary {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .toc[open] summary {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .prose {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail:empty {
    display: none;
  }
}

@media (max-width: 640px) {
  .prev-next {
    grid-template-columns: 1fr;
  }
  .pn-next {
    text-align: left;
  }
  .page-head-text {
    padding-left: 1rem;
  }
  .wm-main {
    font-size: 1.15rem;
  }
  .source-list {
    padding-left: 1.6rem;
  }
}

@media print {
  .site-header,
  .rail,
  .prev-next,
  .site-footer {
    display: none;
  }
  body {
    background: #fff;
  }
}

/* ---------- home: hero actions ---------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin: 1.35rem 0 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.78rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--ochre-deep);
  border-color: var(--ochre-deep);
  color: #fff8ee;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover {
  color: #fff8ee;
  background: var(--ochre);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--paper);
  background: var(--ink);
}

.btn-text {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- home: shared band layout ---------- */

.home-band {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.25rem) var(--gutter) 0;
}

.hb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.95rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.hb-head h2 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 120;
  margin: 0.3rem 0 0;
}

.hb-intro {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hb-link {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hb-credits {
  font-family: var(--label);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0.9rem 0 0;
}

.hb-credits a {
  color: inherit;
}

/* ---------- home: question cards ---------- */

.q-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.q-item {
  margin: 0;
  display: flex;
}

.q-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.q-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.q-card:hover {
  color: var(--ink);
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--ochre);
}

.q-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-3);
}

.q-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.q-card:hover .q-media img {
  transform: scale(1.045);
}

.q-feature .q-media {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 18rem;
}

.q-feature .q-media img {
  position: absolute;
  inset: 0;
  object-position: center 30%;
}

.q-art {
  background: var(--layer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.q-strata {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.q-fig {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.55rem 1rem 0.6rem;
  box-shadow: 3px 3px 0 rgba(31, 42, 36, 0.85);
  transition: transform 0.3s ease;
}

.q-card:hover .q-fig {
  transform: rotate(-1.5deg) scale(1.03);
}

.q-fig-n {
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1;
  font-variation-settings: "opsz" 144;
  color: var(--ochre-deep);
  letter-spacing: -0.02em;
}

.q-fig-sub {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 0.35rem;
  text-align: center;
}

.q-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.15;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.6rem 0.85rem;
  max-width: 15ch;
  box-shadow: 3px 3px 0 rgba(31, 42, 36, 0.85);
}

.q-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1.05rem 1.05rem;
  flex: 0 0 auto;
}

.q-item:not(.q-feature) .q-body {
  flex: 1 1 auto;
}

.q-kicker {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

.q-title {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.q-feature .q-title {
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem);
  line-height: 1.1;
}

.q-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.q-feature .q-text {
  font-size: 1.02rem;
  max-width: 36rem;
}

.q-more {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.q-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.q-card:hover .q-more {
  color: var(--ochre-deep);
}

.q-card:hover .q-more span {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .q-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .q-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .q-feature {
    grid-row: auto;
  }
  .q-feature .q-media {
    min-height: 14rem;
  }
}

@media (max-width: 540px) {
  .q-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .q-feature {
    grid-column: auto;
  }
  .q-item:not(.q-feature) .q-card {
    flex-direction: row;
  }
  .q-item:not(.q-feature) .q-media {
    flex: 0 0 34%;
    aspect-ratio: auto;
    min-height: 8.5rem;
    border-bottom: 0;
    border-right: 1.5px solid var(--ink);
    padding: 0.5rem;
  }
  .q-item:not(.q-feature) .q-media img {
    position: absolute;
    inset: 0;
  }
  .q-item:not(.q-feature) .q-text {
    display: none;
  }
  .q-strata-labels {
    display: none;
  }
  .q-item:not(.q-feature) .q-title {
    font-size: 1.05rem;
  }
  .q-item:not(.q-feature) .q-body {
    padding: 0.75rem 0.85rem;
  }
  .q-fig {
    padding: 0.35rem 0.5rem 0.4rem;
  }
  .q-fig-n {
    font-size: 1.35rem;
  }
  .q-fig-sub {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .q-quote {
    font-size: 0.92rem;
    padding: 0.4rem 0.45rem;
  }
}

/* ---------- home: timeline strip ---------- */

.ribbon {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: 1.6rem;
}

.ribbon li {
  margin: 0;
  position: relative;
  border-top: 4px solid var(--ink);
}

.ribbon li:nth-child(-n + 4) {
  border-top-color: var(--moss);
}

.ribbon li:nth-child(n + 5):nth-child(-n + 8) {
  border-top-color: var(--ochre);
}

.ribbon li:nth-child(n + 9) {
  border-top-color: var(--river);
}

.ribbon li::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.ribbon a {
  display: block;
  height: 100%;
  padding: 1rem 1rem 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
}

.rb-year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  transition: color 0.18s ease;
}

.rb-text {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.ribbon a:hover .rb-year {
  color: var(--ochre-deep);
}

.ribbon a:hover .rb-text {
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-underline-offset: 0.18em;
}

.ribbon-hint {
  display: none;
}

@media (max-width: 900px) {
  .ribbon {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 10px;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    scroll-padding-left: var(--gutter);
    scrollbar-width: thin;
  }
  .ribbon li {
    flex: 0 0 11.5rem;
    scroll-snap-align: start;
  }
  .ribbon li:last-child {
    margin-right: var(--gutter);
  }
  .ribbon-hint {
    display: block;
    font-family: var(--label);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0.4rem 0 0;
  }
}

/* ---------- home: plan tiles ---------- */

.home-plan {
  margin-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  isolation: isolate;
}

.home-plan::before {
  /* a band of shale symbology behind the planning tiles */
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: var(--layer-bg);
  opacity: 0.55;
  z-index: -1;
}

.home-plan .hb-head {
  border-bottom-color: var(--ink);
}

.plan-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.plan-grid li {
  margin: 0;
  display: flex;
}

.plan-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  padding: 1.05rem 1.05rem 2.3rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.plan-tile:hover {
  color: var(--ink);
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--ink);
}

.plan-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--ochre-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-title {
  font-family: var(--display);
  font-weight: 660;
  font-size: 1.2rem;
  line-height: 1.15;
}

.plan-text {
  font-size: 0.9rem;
  line-height: 1.42;
  color: var(--ink-2);
}

.plan-go {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.plan-tile:hover .plan-go {
  color: var(--ochre-deep);
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
  .plan-tile {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 0.8rem;
    padding: 0.85rem 2.4rem 0.9rem 0.9rem;
  }
  .plan-icon {
    grid-row: span 2;
  }
  .plan-go {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .plan-tile:hover .plan-go {
    transform: translate(4px, -50%);
  }
}

/* ---------- home: overview heading ---------- */

.home-overview {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.overview-title {
  margin-top: 0.3rem !important;
}

/* ---------- reveal (rise) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease calc(var(--i, 0) * 60ms), transform 0.55s ease calc(var(--i, 0) * 60ms);
  }
  .js .reveal-up.is-in {
    opacity: 1;
    transform: none;
  }
}

.plus {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.8em;
  vertical-align: 0.08em;
  margin-left: 0.04em;
}

/* ---------- Photo galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem 1rem;
  margin: 2.25rem 0;
  align-items: start;
}

.gallery-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.gallery .fig {
  margin: 0;
}

.gallery .fig img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: auto;
}

.gallery .fig figcaption {
  font-size: 0.84rem;
}

.gallery .fig .credit {
  font-size: 0.7rem;
}

.prose > .gallery {
  grid-column: 1 / -1;
}

.photos-more {
  margin-top: -0.4rem;
  font-family: var(--label);
  font-size: 0.9rem;
}

/* Zoomable photos */
.fig img[data-zoom] {
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.fig img[data-zoom]:hover {
  filter: brightness(1.05) saturate(1.05);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(96vw, 1600px);
  max-height: 96vh;
  background: transparent;
  color: var(--paper);
}

.lightbox::backdrop {
  background: rgba(16, 22, 19, 0.88);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 5rem);
  margin: 0 auto;
  object-fit: contain;
}

.lightbox p {
  margin: 0.6rem auto 0;
  max-width: 60rem;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  color: #ece6d8;
}

.lightbox p a {
  color: inherit;
}

.lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(16, 22, 19, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact band (all pages) ---------- */
.contact-band {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 42, 36, 0.06) 27px 28px),
    var(--paper-2);
  border-top: 6px solid var(--ochre);
}

.contact-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.contact-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--paper);
  border: 1px dashed rgba(31, 42, 36, 0.35);
  box-shadow: 6px 6px 0 rgba(168, 100, 42, 0.18);
}

.contact-build {
  background: var(--ink);
  color: #ece6d8;
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(168, 100, 42, 0.35);
}

.contact-build a:not(.ig-button) {
  color: #f1c58f;
}

.contact-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}

.contact-build .contact-kicker {
  color: #f1c58f;
}

.contact-card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.15;
}

.contact-card p {
  margin: 0 0 1.1rem;
  line-height: 1.55;
}

.ig-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: var(--ochre);
  border: 1px solid var(--ochre);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ig-button:hover,
.ig-button:focus-visible {
  background: #8d5121;
  transform: translateY(-1px);
}

.contact-build .ig-button {
  background: transparent;
  border-color: #f1c58f;
  color: #f1c58f;
}

.contact-build .ig-button:hover,
.contact-build .ig-button:focus-visible {
  background: #f1c58f;
  color: var(--ink);
}

.ig-glyph {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

@media (max-width: 760px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-button {
    transition: none;
  }
}
