/* HomeSquatch: field journal */

:root {
  --moss: #2F3A2A;
  --bark: #6B4F3A;
  --fog: #ECE8E0;
  --ember: #C4692E;
  --night: #161A15;

  --fog-deep: #E3DED3;
  --paper-white: #FFFFFF;
  --rule: rgba(22, 26, 21, 0.16);
  --rule-strong: rgba(22, 26, 21, 0.55);
  --rule-light: rgba(236, 232, 224, 0.2);
  --fog-soft: rgba(236, 232, 224, 0.74);

  --display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --col-gap: clamp(16px, 2.2vw, 36px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

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

html {
  background: var(--fog);
  color: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--fog);
  background-image: var(--grain);
  color: var(--night);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.28vw + 1rem, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  hanging-punctuation: first allow-end last;
  overflow-x: hidden;
}

html.menu-open, html.menu-open body { overflow: hidden; }

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

a { color: var(--bark); text-decoration-line: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color .2s ease, text-decoration-color .2s ease; }
a:hover { color: var(--night); text-decoration-color: var(--night); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

h1 { font-weight: 700; font-size: clamp(3rem, 8vw, 7.6rem); line-height: 0.93; letter-spacing: -0.024em; }
h2 { font-weight: 700; font-size: clamp(2.1rem, 4.1vw, 3.8rem); line-height: 1; letter-spacing: -0.026em; }
h3 { font-weight: 600; font-size: clamp(1.22rem, 0.5vw + 1.08rem, 1.45rem); line-height: 1.18; letter-spacing: -0.012em; }

.sc { font-variant-caps: all-small-caps; letter-spacing: 0.07em; font-variant-numeric: lining-nums; }
.tab { font-variant-numeric: tabular-nums lining-nums; }
.it { font-style: italic; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fog); color: var(--night); padding: 10px 14px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

.s-xl { padding-block: clamp(88px, 12vw, 184px); }
.s-l  { padding-block: clamp(72px, 8.5vw, 128px); }
.s-m  { padding-block: clamp(52px, 6vw, 92px); }
.s-s  { padding-block: clamp(32px, 4vw, 56px); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.measure { max-width: 35em; }

.lead {
  font-size: clamp(1.45rem, 1.9vw + 0.8rem, 2.3rem);
  line-height: 1.26;
  letter-spacing: -0.012em;
  font-weight: 400;
  max-width: 24em;
}

.kicker { font-style: italic; color: var(--bark); margin-bottom: 1.1rem; font-size: 1.02rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  background: var(--ember); color: var(--night);
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  padding: 1.02rem 1.55rem 1.05rem;
  border: 0; border-radius: 0; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #D5793C; color: var(--night); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }

.textlink {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: inherit; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: .35em;
}
.textlink:hover { color: inherit; text-decoration-color: var(--ember); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 2rem; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 30; color: var(--fog); }
.bar { display: flex; align-items: center; gap: 28px; padding-block: 26px; position: relative; z-index: 3; }

.wordmark { display: inline-flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1; margin-right: auto; }
.wordmark:hover { color: inherit; }
.wm-name { font-family: var(--display); font-weight: 700; font-size: 1.62rem; letter-spacing: -0.04em; }
.wm-tag { font-family: var(--serif); font-size: 0.8rem; font-variant-caps: all-small-caps; letter-spacing: 0.16em; font-variant-numeric: tabular-nums lining-nums; opacity: .94; margin-top: 7px; padding-left: 1px; }
.wm-coord { margin-right: .5em; }
.wm-coord::after { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--ember); margin-left: .6em; vertical-align: .2em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.1vw, 34px); }
.nav a { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--fog); text-decoration: none; padding-block: 6px; border-bottom: 1.5px solid transparent; transition: border-color .2s ease, opacity .2s ease; }
.nav a:hover { border-bottom-color: var(--fog-soft); }
.nav a[aria-current="page"] { border-bottom-color: var(--ember); }

.nav-phone { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--fog); text-decoration: none; padding: 9px 14px; border: 1px solid var(--rule-light); }
.nav-phone:hover { color: var(--fog); border-color: var(--fog); }

.menu-toggle { display: none; align-items: center; gap: 12px; background: none; border: 0; color: var(--fog); font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 8px 0; cursor: pointer; }
.menu-bars { position: relative; width: 24px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: height .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-bars { height: 1.5px; border-bottom: 0; }

.menu-panel { position: fixed; inset: 0; z-index: 2; background: var(--night); color: var(--fog); padding: 112px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { border-top: 1px solid var(--rule-light); }
.menu-panel li:last-child { border-bottom: 1px solid var(--rule-light); }
.menu-panel a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.03em; color: var(--fog); text-decoration: none; }
.menu-panel a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; background: var(--ember); align-self: center; }
.menu-panel .panel-contact { margin-top: auto; padding-top: 36px; font-size: 1rem; color: var(--fog-soft); }
.menu-panel .panel-contact a { display: inline; font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--fog); text-decoration: underline; text-decoration-color: var(--ember); padding: 0; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--fog); display: grid; align-items: end; min-height: min(94svh, 1000px); }
.hero--mid { min-height: min(76svh, 820px); }
.hero--short { min-height: min(64svh, 680px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--home .hero-img { object-position: 30% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(22,26,21,.66) 0%, rgba(22,26,21,.18) 20%, rgba(22,26,21,0) 34%, rgba(22,26,21,0) 44%, rgba(22,26,21,.5) 66%, rgba(22,26,21,.9) 100%),
    linear-gradient(to right, rgba(22,26,21,.42) 0%, rgba(22,26,21,0) 58%);
}
.hero-body { padding-top: 170px; padding-bottom: clamp(52px, 8vh, 104px); }
.hero h1 { max-width: 11.5ch; }
.hero-lede { max-width: 33em; font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem); line-height: 1.5; margin-top: 1.6rem; color: var(--fog); }
.hero--mid h1, .hero--short h1 { font-size: clamp(2.8rem, 6.6vw, 6.2rem); max-width: 13ch; }
.hero .btn:focus-visible, .hero a:focus-visible { outline-color: var(--fog); }

.hero-note {
  position: absolute; right: var(--gutter); bottom: clamp(52px, 8vh, 104px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  margin: 0; font-size: 0.84rem; font-style: italic; color: var(--fog-soft); letter-spacing: 0.01em;
}
.hero-note .sc { font-style: normal; color: var(--fog); margin-left: .5em; }

/* ---------- field note figures ---------- */
.plate { margin: 0; }
.plate img { width: 100%; object-fit: cover; background: var(--fog-deep); }
.fn { font-size: 0.86rem; line-height: 1.45; color: var(--bark); font-style: italic; border-top: 1px solid var(--rule); padding-top: 10px; margin: 0; }
.fn .sc { font-style: normal; color: var(--night); display: block; font-size: 0.92rem; margin-bottom: 2px; }

.plate-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }

.full { width: 100%; }
.full img { width: 100%; height: clamp(340px, 46vw, 720px); object-fit: cover; }
.full-cap { display: flex; justify-content: flex-end; }
.full-cap .fn { width: min(300px, 100%); margin-top: 14px; }

/* ---------- home: intro ---------- */
.intro .lead { grid-column: 2 / 11; margin-bottom: clamp(40px, 5vw, 72px); }
.intro-body { grid-column: 4 / 10; }
.intro-aside { grid-column: 10 / 13; align-self: start; font-style: italic; font-size: 0.98rem; color: var(--bark); border-top: 1px solid var(--rule-strong); padding-top: 14px; margin-top: 6px; }

/* ---------- home: kinds ---------- */
.kinds-photo { grid-column: 1 / 10; }
.kinds-photo img { aspect-ratio: 3 / 2; height: auto; }
.kinds-photo-cap { grid-column: 10 / 13; align-self: end; }
.kinds-head { grid-column: 1 / 5; margin-top: clamp(56px, 7vw, 104px); align-self: start; position: sticky; top: 40px; }
.kinds-head p { margin-top: 1.2rem; font-size: 1rem; color: var(--bark); max-width: 20em; }
.kinds-list { grid-column: 6 / 13; margin-top: clamp(56px, 7vw, 104px); list-style: none; padding: 0; margin-bottom: 0; }
.kinds-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); column-gap: 32px; padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.kinds-list li:last-child { border-bottom: 1px solid var(--rule); }
.kinds-list h3 { font-size: 1.28rem; padding-top: 3px; }
.kinds-list p { margin: 0; }
.kinds-list .where { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--bark); }
.kinds-more { grid-column: 6 / 13; margin-top: 28px; }

/* ---------- home: towns table ---------- */
.towns-head { grid-column: 1 / 8; }
.towns-intro { grid-column: 8 / 12; align-self: end; font-size: 1rem; }
.towns-wrap { grid-column: 1 / 13; margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; }
table.towns { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.towns caption { text-align: left; }
.towns th { text-align: left; font-weight: 400; font-size: 0.9rem; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); padding: 0 16px 12px 0; border-bottom: 1px solid var(--rule-strong); }
.towns td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; font-size: 1rem; }
.towns td:first-child { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.towns td:first-child a { color: var(--night); text-decoration: none; }
.towns td:first-child a:hover { color: var(--bark); }
.towns .road { white-space: nowrap; }
.towns-foot { grid-column: 1 / 8; margin-top: 28px; font-size: 1rem; }

/* ---------- home: start ---------- */
.start-photo { grid-column: 1 / 6; }
.start-photo img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 60%; }
.start-photo .fn { margin-top: 12px; }
.start-text { grid-column: 7 / 12; align-self: center; }
.start-text h2 { margin-bottom: 1.8rem; }

/* ---------- CTA band ---------- */
.band { background-color: var(--moss); background-image: var(--grain); color: var(--fog); }
.band a:not(.btn) { color: var(--fog); text-decoration-color: var(--ember); }
.band-head { grid-column: 1 / 8; }
.band-body { grid-column: 8 / 13; align-self: end; color: var(--fog-soft); }
.band-body p { color: var(--fog); }
.band .actions { margin-top: 1.4rem; }
.band--night { background-color: var(--night); }

/* ---------- document layout (search, field guide) ---------- */
.doc { align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: 36px; padding-top: 6px; }
.toc p { font-size: 0.9rem; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 10px 0; font-family: var(--display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--night); text-decoration: none; }
.toc a:hover { color: var(--bark); }
.toc .toc-call { margin-top: 26px; font-size: 0.95rem; font-variant-caps: normal; letter-spacing: 0; color: var(--night); font-style: italic; }

.doc-body { grid-column: 5 / 13; }
.doc-body > section { scroll-margin-top: 24px; }
.doc-body > section + section { margin-top: clamp(64px, 8vw, 120px); }
.doc-body h2 { margin-bottom: 1.6rem; max-width: 17ch; }
.doc-body h3 { margin: 2.2rem 0 .6rem; }
.doc-body p, .doc-body ul, .doc-body dl { max-width: 35em; }
.doc-body .lead { margin-bottom: 1.6rem; }

.doc-fig { margin: clamp(36px, 4vw, 56px) 0; }
.doc-fig.bleed { margin-right: calc(-1 * var(--gutter)); }
.doc-fig img { width: 100%; }
.doc-fig .fn { margin-top: 12px; max-width: 320px; }
.doc-fig--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); column-gap: var(--col-gap); align-items: end; }
.doc-fig--split .fn { margin-top: 0; }
.doc-fig--inset { grid-template-columns: minmax(0, 0.78fr) minmax(0, 15rem); }
.doc-fig--inset img { aspect-ratio: 4 / 3; object-fit: cover; }
.doc-fig--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); }
.doc-fig--portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

.plate-b-row { align-items: end; margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(8px, 2vw, 24px); }
.places-photo-b { grid-column: 1 / 9; margin-left: calc(-1 * var(--gutter)); }
.places-photo-b img { aspect-ratio: 16 / 10; height: auto; }
.places-photo-b-cap { grid-column: 9 / 12; }

ul.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; }
ul.ticks li { position: relative; padding: 12px 0 12px 1.6em; border-top: 1px solid var(--rule); }
ul.ticks li:last-child { border-bottom: 1px solid var(--rule); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 1.28em; width: .7em; height: 1.5px; background: var(--ember); }

.check { margin-top: 2rem; padding-top: 14px; border-top: 1px solid var(--rule-strong); max-width: 38em; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 24px; }
.check h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: .95rem; line-height: 1.5; font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--bark); padding-top: .2em; }
.check h3::before { content: ""; display: block; width: 8px; height: 8px; background: var(--ember); margin-bottom: 10px; }
.check p { font-size: 1.02rem; }

/* FAQ */
.faq { margin: 0; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--rule); }
.faq > div:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.25; margin-bottom: .5rem; }
.faq dd { margin: 0; }

/* inspection notes (moss) */
.notes-sec { background-color: var(--moss); background-image: var(--grain); color: var(--fog); }
.notes-sec a { color: var(--fog); }
.notes-head { grid-column: 1 / 7; }
.notes-intro { grid-column: 7 / 12; align-self: end; color: var(--fog); }
.notes { grid-column: 1 / 13; margin-top: clamp(44px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 88px); }
.note { padding: 24px 0 30px; border-top: 1px solid var(--rule-light); }
.note h3 { margin-bottom: .6rem; display: flex; align-items: baseline; gap: 14px; }
.note h3::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ember); transform: translateY(-2px); }
.note p { color: var(--fog); max-width: 34em; }
.note--wide { grid-column: 1 / -1; }
.note--wide p { max-width: 44em; }
.note-fig { margin: 0; padding-top: 30px; border-top: 1px solid var(--rule-light); }
.note-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.notes-sec .fn { color: rgba(236, 232, 224, 0.74); border-top-color: var(--rule-light); margin-top: 12px; }
.notes-sec .fn .sc { color: var(--fog); }

/* ---------- places ---------- */
.places-intro .lead { grid-column: 1 / 9; }
.places-intro .aside { grid-column: 9 / 13; align-self: end; font-size: 1rem; color: var(--bark); }
.cards { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.card a { display: block; height: 100%; border-top: 2px solid var(--night); padding-top: 14px; color: var(--night); text-decoration: none; }
.card .nm { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.55rem, 1.6vw + 0.8rem, 2rem); letter-spacing: -0.026em; line-height: 1; }
.card .meta { display: block; margin-top: 8px; font-size: 0.9rem; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); font-variant-numeric: tabular-nums lining-nums; }
.card .ln { display: block; margin-top: 12px; font-size: 1rem; line-height: 1.5; }
.card .go { display: inline-block; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--ember); transition: border-color .2s ease; }
.card a:hover .nm { color: var(--bark); }
.card a:hover .go { border-bottom-color: var(--night); }

.region-head { grid-column: 1 / 9; }
.region-head .kicker { margin-bottom: .6rem; }

.town { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.town:first-of-type { border-top: 0; }
.town-name { grid-column: 1 / 5; }
.town-name h3 { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.028em; line-height: .95; }
.town-text { grid-column: 5 / 12; }
.town--r .town-name { grid-column: 1 / 4; }
.town--r .town-text { grid-column: 6 / 13; }
.town-text h4 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1rem; color: var(--bark); margin: 1.2rem 0 .2rem; }
.town-text h4:first-child { margin-top: 0; }
.spec { margin: 18px 0 0; font-size: 0.95rem; }
.spec div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.spec div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; }

.places-photo-a { grid-column: 3 / 13; margin-right: calc(-1 * var(--gutter)); }
.places-photo-a img { aspect-ratio: 3 / 2; height: auto; max-height: 760px; }
.places-photo-a-cap { grid-column: 1 / 3; align-self: end; grid-row: 1; }

.i90 { align-items: start; }
.i90-photo { grid-column: 1 / 5; position: sticky; top: 36px; }
.i90-photo img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 55%; }
.i90-photo .fn { margin-top: 12px; }
.i90-towns { grid-column: 6 / 13; }
.i90-towns .town { grid-template-columns: minmax(0, 1fr); }
.i90-towns .town-name, .i90-towns .town-text { grid-column: 1 / -1; }
.i90-towns .town-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--col-gap); align-items: start; margin-bottom: 22px; }
.i90-towns .spec { margin-top: 0; }

/* ---------- about ---------- */
.top-band { background-color: var(--moss); background-image: var(--grain); color: var(--fog); padding-top: 150px; padding-bottom: clamp(64px, 8vw, 112px); }
.about-top { align-items: end; }
.about-title { grid-column: 1 / 8; }
.about-title h1 { font-size: clamp(3rem, 7.2vw, 6.8rem); }
.about-title p { margin-top: 1.4rem; max-width: 30em; color: var(--fog); font-size: 1.15rem; }
.portrait { grid-column: 9 / 13; background: var(--paper-white); padding: 14px 14px 12px; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { color: var(--night); font-size: 0.86rem; padding-top: 10px; line-height: 1.4; }
.portrait figcaption .sc { display: block; font-size: 0.95rem; }

.letter { grid-column: 3 / 10; }
.letter h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 3rem 0 1rem; letter-spacing: -0.03em; }
.letter > .lead:first-child { margin-bottom: 2rem; }
.letter-aside { grid-column: 10 / 13; align-self: start; position: sticky; top: 36px; font-size: 0.95rem; }
.letter-aside dl { margin: 0; }
.letter-aside div { padding: 10px 0; border-top: 1px solid var(--rule); }
.letter-aside div:last-child { border-bottom: 1px solid var(--rule); }
.letter-aside dt { font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); }
.letter-aside dd { margin: 0; }
.sign { margin-top: 2.4rem; padding-top: 16px; border-top: 1px solid var(--rule-strong); display: inline-block; }
.sign .name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.035em; display: block; }
.sign .role { font-style: italic; color: var(--bark); font-size: .98rem; }

.about-photo { grid-column: 1 / 11; margin-left: calc(-1 * var(--gutter)); }
.about-photo img { aspect-ratio: 16 / 9; height: auto; object-position: 50% 60%; }
.about-photo-cap { grid-column: 11 / 13; align-self: end; }

/* ---------- contact ---------- */
.contact-grid { align-items: start; }
.contact-form-col { grid-column: 1 / 8; }
.contact-side { grid-column: 9 / 13; }
.contact-side img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 40%; }
.contact-side .fn { margin-top: 12px; }
.direct { margin-top: 40px; }
.direct h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.direct dl { margin: 0; }
.direct div { padding: 12px 0; border-top: 1px solid var(--rule); }
.direct div:last-child { border-bottom: 1px solid var(--rule); }
.direct dt { font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--bark); font-size: .92rem; }
.direct dd { margin: 0; }
.direct .big { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }

.lead-form { margin-top: 8px; }
.field { margin-bottom: 30px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.lead-form label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; margin-bottom: 6px; }
.lead-form label .opt { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--bark); font-size: .92rem; margin-left: .35em; }
.lead-form .hint { font-size: .9rem; color: var(--bark); margin: 0 0 8px; font-style: italic; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--night);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule-strong); border-radius: 0;
  padding: 10px 0 11px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease;
}
.lead-form textarea { min-height: 150px; resize: vertical; border: 1.5px solid var(--rule-strong); padding: 12px 14px; background: rgba(255,255,255,.28); }
.lead-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B4F3A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; cursor: pointer; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--ember); }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.lead-form [aria-invalid="true"] { border-color: #A3361B; }
.form-error { color: #8E2F17; font-size: 1rem; margin: 0 0 20px; padding-left: 14px; border-left: 2px solid #A3361B; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-foot p { margin: 0; font-size: .95rem; color: var(--bark); font-style: italic; }

.thanks { padding: 32px 0 8px; border-top: 2px solid var(--night); outline: none; }
.thanks h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 1rem; }
.thanks p { max-width: 32em; font-size: 1.12rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--fog); padding-top: clamp(64px, 7vw, 104px); padding-bottom: 36px; font-size: 0.95rem; }
.site-footer a { color: var(--fog); text-decoration-color: rgba(196,105,46,.8); }
.site-footer a:hover { color: var(--fog); text-decoration-color: var(--fog); }
.foot-grid { row-gap: 44px; }
.foot-brand { grid-column: 1 / 5; }
.foot-brand .wm-name { font-size: clamp(2.2rem, 3.4vw, 3rem); display: block; line-height: 1; }
.foot-brand .wm-tag { display: block; margin-top: 10px; font-size: .86rem; }
.foot-brand p { margin-top: 22px; color: var(--fog-soft); max-width: 22em; font-style: italic; }
.foot-col { grid-column: span 2; }
.foot-col.contact { grid-column: 6 / 9; }
.foot-col.pages { grid-column: 9 / 11; }
.foot-col.more { grid-column: 11 / 13; }
.foot-col h2 { font-family: var(--serif); font-weight: 400; font-size: .92rem; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--fog-soft); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col ul a { text-decoration: none; }
.foot-col ul a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
.foot-col ul a[aria-current="page"] { color: var(--ember); }
.foot-col address { font-style: normal; line-height: 1.6; }
.foot-legal { grid-column: 1 / 13; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule-light); font-size: 0.84rem; line-height: 1.6; color: var(--fog-soft); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--col-gap); row-gap: 10px; }
.foot-legal p { margin: 0 0 6px; }
.foot-legal .main-line { color: var(--fog); }
.foot-legal .eho { font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: .95rem; }

/* ---------- reveal (one-time, subtle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-body > *:nth-child(2) { animation-delay: .08s; }
  .hero-body > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 1100 and below ---------- */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .kinds-list li { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { grid-column: 1 / 4; }
  .doc-body { grid-column: 4 / 13; }
}

/* ---------- tablet / mobile nav ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .bar { padding-block: 20px; }

  .hero-note { position: static; writing-mode: horizontal-tb; transform: none; padding: 0 var(--gutter) 20px; font-size: .8rem; }
  .hero { grid-template-rows: 1fr auto; }

  .intro .lead { grid-column: 1 / -1; }
  .intro-body { grid-column: 1 / 9; }
  .intro-aside { grid-column: 9 / 13; }

  .kinds-photo { grid-column: 1 / -1; }
  .kinds-photo-cap { grid-column: 1 / 7; margin-top: 12px; }
  .kinds-head { grid-column: 1 / -1; position: static; }
  .kinds-list, .kinds-more { grid-column: 1 / -1; margin-top: 32px; }

  .towns-head, .towns-intro, .towns-foot { grid-column: 1 / -1; }
  .towns-intro { margin-top: 18px; }

  .start-photo { grid-column: 1 / 6; }
  .start-text { grid-column: 6 / 13; }

  .band-head, .band-body { grid-column: 1 / -1; }
  .band-body { margin-top: 24px; }

  .doc { display: block; }
  .toc { position: static; margin-bottom: 48px; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--rule-strong); }
  .toc a { padding: 9px 0; }
  .places-photo-b { grid-column: 1 / -1; margin-left: 0; }
  .places-photo-b-cap { grid-column: 1 / 8; margin-top: 12px; }
  .doc-fig.bleed { margin-right: 0; }

  .notes-head, .notes-intro { grid-column: 1 / -1; }
  .notes-intro { margin-top: 20px; }

  .places-intro .lead, .places-intro .aside { grid-column: 1 / -1; }
  .places-intro .aside { margin-top: 18px; }
  .region-head { grid-column: 1 / -1; }
  .town-name, .town--r .town-name { grid-column: 1 / 6; }
  .town-text, .town--r .town-text { grid-column: 6 / 13; }
  .places-photo-a { grid-column: 1 / -1; margin-right: 0; }
  .places-photo-a-cap { grid-column: 1 / 8; grid-row: 2; margin-top: 12px; }
  .i90-photo { grid-column: 1 / -1; position: static; }
  .i90-photo img { aspect-ratio: 16 / 10; }
  .i90-towns { grid-column: 1 / -1; margin-top: 24px; }

  .about-title { grid-column: 1 / 8; }
  .portrait { grid-column: 8 / 13; }
  .letter { grid-column: 1 / 9; }
  .letter-aside { grid-column: 9 / 13; }
  .about-photo { grid-column: 1 / -1; margin-left: 0; }
  .about-photo-cap { grid-column: 1 / 8; margin-top: 12px; }

  .contact-form-col { grid-column: 1 / -1; }
  .contact-side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); margin-top: 64px; }
  .direct { margin-top: 0; }

  .foot-brand { grid-column: 1 / -1; }
  .foot-col.contact { grid-column: 1 / 6; }
  .foot-col.pages { grid-column: 6 / 9; }
  .foot-col.more { grid-column: 9 / 13; }
  .foot-legal { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .wm-name { font-size: 1.42rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); letter-spacing: -0.03em; }
  .hero h1 { max-width: none; }
  .hero--mid h1, .hero--short h1 { font-size: clamp(2.5rem, 11.4vw, 3.3rem); }
  .hero { min-height: min(88svh, 780px); }
  .hero--mid { min-height: min(74svh, 640px); }
  .hero--short { min-height: min(64svh, 560px); }
  .hero-body { padding-top: 130px; padding-bottom: 36px; }
  .hero-lede { font-size: 1.06rem; }
  .hero--home .hero-img { object-position: 47% 60%; }
  .actions { gap: 16px 24px; }

  .intro-body, .intro-aside { grid-column: 1 / -1; }
  .intro-aside { margin-top: 32px; }

  .kinds-list li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .kinds-photo-cap { grid-column: 1 / -1; }

  table.towns, .towns tbody, .towns tr, .towns td { display: block; }
  .towns thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .towns tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .towns td { border: 0; padding: 2px 0; }
  .towns td:first-child { margin-bottom: 4px; }
  .towns td[data-k]::before { content: attr(data-k); font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--bark); margin-right: .6em; font-size: .9rem; }
  .towns .road { white-space: normal; }

  .start-photo, .start-text { grid-column: 1 / -1; }
  .start-photo img { aspect-ratio: 4 / 3; }
  .start-text { margin-top: 40px; }

  .full img { height: 300px; }
  .full-cap { padding-inline: var(--gutter); justify-content: flex-start; }

  .doc-fig.bleed img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
  .doc-fig--split { grid-template-columns: minmax(0, 1fr); }
  .doc-fig--split .fn { margin-top: 12px; }

  .notes { grid-template-columns: minmax(0, 1fr); }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .town-name, .town--r .town-name, .town-text, .town--r .town-text { grid-column: 1 / -1; }
  .town-name { margin-bottom: 20px; }
  .spec { margin-top: 14px; }
  .places-photo-a img { aspect-ratio: 4 / 3; }
  .places-photo-a-cap { grid-column: 1 / -1; }
  .i90-photo img { aspect-ratio: 4 / 5; max-height: 520px; }
  .i90-towns .town-name { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }

  .top-band { padding-top: 120px; }
  .about-title, .portrait { grid-column: 1 / -1; }
  .portrait { margin-top: 40px; max-width: 360px; }
  .letter, .letter-aside { grid-column: 1 / -1; }
  .letter-aside { position: static; margin-top: 48px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .about-photo-cap { grid-column: 1 / -1; }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-side { grid-template-columns: minmax(0, 1fr); }
  .contact-side .direct { margin-top: 40px; }

  .foot-col.contact { grid-column: 1 / -1; }
  .foot-col.pages { grid-column: 1 / 7; }
  .foot-col.more { grid-column: 7 / 13; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .check { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .check h3::before { display: inline-block; margin: 0 10px 0 0; vertical-align: .1em; }
  .doc-fig--inset, .doc-fig--portrait { grid-template-columns: minmax(0, 1fr); }
  .places-photo-b img { aspect-ratio: 4 / 3; }
  .places-photo-b-cap { grid-column: 1 / -1; }
}

/* utility classes (moved from inline styles) */
.foot-reach { margin-top: 12px; }
.closing { margin-top: 2rem; }
.lead-form .hint--pair { margin: -16px 0 30px; }
.next-steps { margin-top: clamp(56px, 6vw, 88px); }
.next-steps h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.region-head--i90 { margin-bottom: clamp(32px, 4vw, 56px); }

/* Blog */

/* current section (article pages mark Field Notes as the current section) */
.nav a[aria-current="true"] { border-bottom-color: var(--ember); }
.menu-panel a[aria-current="true"]::after { content: ""; width: 10px; height: 10px; background: var(--ember); align-self: center; }
.foot-col ul a[aria-current="true"] { color: var(--ember); }

/* shared bits */
.meta-line { font-size: 0.9rem; color: var(--bark); font-variant-numeric: tabular-nums lining-nums; margin: 0; }
.meta-line .sc { color: var(--night); font-size: 0.95rem; }
.meta-line .dot { margin: 0 .45em; color: var(--ember); }

/* ---------- blog index: masthead ---------- */
.blog-top { padding-bottom: clamp(56px, 7vw, 96px); }
.blog-top .grid { align-items: end; }
.blog-mast { grid-column: 1 / 8; }
.blog-mast h1 { font-size: clamp(3.4rem, 9vw, 8.4rem); line-height: .9; letter-spacing: -0.04em; }
.blog-mast .wm-tag { display: block; margin-top: 16px; font-size: .9rem; color: var(--fog-soft); }
.blog-intro { grid-column: 8 / 13; color: var(--fog); font-size: 1.08rem; border-top: 1px solid var(--rule-light); padding-top: 16px; }

/* ---------- blog index: featured note ---------- */
.feature { min-height: min(86svh, 900px); }
.feature .hero-img { object-position: 50% 45%; }
.feature .hero-body { padding-top: 200px; }
.feature .hero-body > * { animation: none; }
.feature::before {
  background:
    linear-gradient(to bottom, rgba(22,26,21,.3) 0%, rgba(22,26,21,0) 26%, rgba(22,26,21,.28) 48%, rgba(22,26,21,.72) 72%, rgba(22,26,21,.93) 100%),
    linear-gradient(to right, rgba(22,26,21,.78) 0%, rgba(22,26,21,.5) 40%, rgba(22,26,21,0) 68%);
}
.feature-title { font-size: clamp(2.5rem, 5.6vw, 5.6rem); line-height: .96; letter-spacing: -0.03em; max-width: 15ch; }
.feature-title a { color: var(--fog); text-decoration: none; }
.feature-title a:hover { color: var(--fog); text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: .12em; }
.feature .hero-lede { max-width: 36em; }
.feature .meta-line { color: var(--fog-soft); margin-top: 1.4rem; }
.feature .meta-line .sc { color: var(--fog); }

/* ---------- blog index: the notebook ---------- */
.log-head { grid-column: 1 / 8; }
.log-aside { grid-column: 9 / 13; align-self: end; font-size: 1rem; font-style: italic; color: var(--bark); margin: 0; }

.pair { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: clamp(44px, 5vw, 72px); align-items: start; }
.entry-a { grid-column: 1 / 7; }
.entry-b { grid-column: 8 / 13; margin-top: clamp(64px, 9vw, 150px); }
.entry-img { display: block; overflow: hidden; background: var(--fog-deep); }
.entry-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.entry-b .entry-img img { aspect-ratio: 4 / 5; }
.entry-img:hover img { transform: scale(1.02); }
.entry .meta-line { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--rule); }
.entry h3 { font-size: clamp(1.55rem, 1.4vw + 1rem, 2.15rem); line-height: 1.06; letter-spacing: -0.024em; margin-top: 12px; }
.entry h3 a, .ledger h3 a { color: var(--night); text-decoration: none; }
.entry h3 a:hover, .ledger h3 a:hover { color: var(--bark); text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; }
.entry-dek { margin-top: .7rem; font-size: 1rem; max-width: 32em; }

.ledger { grid-column: 1 / 13; list-style: none; margin: clamp(64px, 8vw, 120px) 0 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: 26px 0 28px; border-top: 1px solid var(--rule-strong); align-items: start; }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger .meta-line { grid-column: 1 / 4; padding-top: 6px; }
.ledger .meta-line .sc { display: block; margin-bottom: 2px; }
.ledger .meta-line .dot { display: none; }
.ledger-text { grid-column: 4 / 9; }
.ledger h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); line-height: 1.1; letter-spacing: -0.022em; }
.ledger-text p { margin-top: .6rem; font-size: 1rem; }
.ledger .entry-img { grid-column: 9 / 13; }
.ledger .entry-img img { aspect-ratio: 3 / 2; }

/* ---------- article: head ---------- */
.art-top { padding-bottom: clamp(150px, 16vw, 250px); }
.art-head { grid-column: 1 / 11; }
.art-head h1 { font-size: clamp(2.5rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -0.03em; max-width: 19ch; }

.crumbs { margin-bottom: clamp(28px, 3.4vw, 44px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--fog-soft); }
.crumbs li { display: inline; }
.crumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--ember); }
.crumbs a { color: var(--fog); text-decoration-color: rgba(196,105,46,.8); }
.crumbs a:hover { color: var(--fog); text-decoration-color: var(--fog); }
.crumbs [aria-current] { font-style: italic; }

.art-answer { margin-top: clamp(28px, 3vw, 40px); max-width: 31em; font-size: clamp(1.2rem, 0.9vw + 0.95rem, 1.55rem); line-height: 1.42; color: var(--fog); padding-left: clamp(16px, 1.6vw, 24px); border-left: 3px solid var(--ember); }
.art-answer-label { display: block; font-size: .95rem; font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--fog-soft); margin-bottom: 4px; line-height: 1.3; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 3vw, 40px); font-size: .95rem; line-height: 1.4; }
.byline img { flex: none; width: 56px; height: 56px; object-fit: cover; object-position: 50% 20%; background: var(--paper-white); padding: 3px; }
.byline p { margin: 0; color: var(--fog-soft); }
.byline .by { display: block; color: var(--fog); }
.byline .when { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- article: photo ---------- */
.art-photo-row { margin-top: calc(-1 * clamp(110px, 12vw, 190px)); align-items: end; position: relative; }
.art-photo { grid-column: 1 / 11; margin-left: calc(-1 * var(--gutter)); }
.art-photo img { aspect-ratio: 3 / 2; height: auto; max-height: 840px; }
.art-photo-cap { grid-column: 11 / 13; }

/* ---------- article: body ---------- */
.art-main { padding-top: clamp(64px, 8vw, 120px); }
.art .toc { top: 36px; }
.art-body { grid-column: 5 / 13; }
.art-body > h2 { font-size: clamp(1.75rem, 2.4vw, 2.45rem); letter-spacing: -0.028em; line-height: 1.06; max-width: 25ch; text-wrap: balance; margin: clamp(52px, 5.4vw, 76px) 0 1.1rem; scroll-margin-top: 24px; }
.art-body > h2:first-child { margin-top: 0; }
.art-body > h3 { font-size: 1.22rem; margin: 2rem 0 .5rem; max-width: 30em; }
.art-body > p, .art-body > ul, .art-body > ol, .art-body > dl, .art-body > .table-wrap { max-width: 35em; }
.art-body > p:last-child { margin-bottom: 0; }
.art-body strong { font-weight: 600; }
.art-body > ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.art-body > ul > li { position: relative; padding: 11px 0 11px 1.6em; border-top: 1px solid var(--rule); }
.art-body > ul > li:last-child { border-bottom: 1px solid var(--rule); }
.art-body > ul > li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: .7em; height: 1.5px; background: var(--ember); }
.art-body > ol { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; counter-reset: step; }
.art-body > ol > li { counter-increment: step; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 11px 0; border-top: 1px solid var(--rule); }
.art-body > ol > li:last-child { border-bottom: 1px solid var(--rule); }
.art-body > ol > li::before { content: counter(step); font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ember); font-variant-numeric: tabular-nums lining-nums; padding-top: .18em; }

.art-body .table-wrap { margin: 1.6rem 0 1.8rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.art-body table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .96rem; line-height: 1.45; font-variant-numeric: tabular-nums lining-nums; }
.art-body th { text-align: left; vertical-align: bottom; font-weight: 400; font-size: .92rem; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--bark); padding: 0 16px 10px 0; border-bottom: 1px solid var(--rule-strong); }
.art-body td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.art-body td:first-child { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }

.art-faq { margin-top: clamp(56px, 6vw, 88px); scroll-margin-top: 24px; max-width: 35em; }
.art-faq h2 { font-size: clamp(1.75rem, 2.4vw, 2.45rem); letter-spacing: -0.028em; line-height: 1.04; margin-bottom: 1.1rem; }

.art-close { margin-top: clamp(56px, 6vw, 88px); max-width: 38em; background-color: var(--moss); background-image: var(--grain); color: var(--fog); padding: clamp(28px, 3.4vw, 48px); }
.art-close p { font-size: clamp(1.12rem, 0.5vw + 1rem, 1.32rem); line-height: 1.5; color: var(--fog); }
.art-close .sign-line { margin-top: 1.4rem; padding-top: 12px; border-top: 1px solid var(--rule-light); font-size: .92rem; color: var(--fog-soft); font-style: italic; }
.art-close .sign-line .sc { font-style: normal; color: var(--fog); font-size: 1rem; }
.art-close .actions { margin-top: 1.4rem; }
.art-close a:not(.btn) { color: var(--fog); }
.art-close .btn:focus-visible, .art-close a:focus-visible { outline-color: var(--fog); }

/* ---------- article: related ---------- */
.related { background-color: var(--fog-deep); background-image: var(--grain); }
.related-head { grid-column: 1 / 8; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.related-all { grid-column: 9 / 13; align-self: end; justify-self: start; }
.related .pair { margin-top: clamp(36px, 4vw, 56px); }
.related .entry-b { margin-top: clamp(40px, 6vw, 96px); }

/* ---------- blog responsive ---------- */
@media (max-width: 1100px) {
  .art-body { grid-column: 4 / 13; }
}
@media (max-width: 900px) {
  .blog-mast, .blog-intro { grid-column: 1 / -1; }
  .blog-intro { margin-top: 32px; }
  .log-head, .log-aside { grid-column: 1 / -1; }
  .log-aside { margin-top: 16px; }
  .ledger .meta-line { grid-column: 1 / -1; padding-top: 0; margin-bottom: 10px; }
  .ledger .meta-line .sc { display: inline; margin: 0; }
  .ledger .meta-line .dot { display: inline; }
  .ledger-text { grid-column: 1 / 8; }
  .ledger .entry-img { grid-column: 8 / 13; }
  .art-head { grid-column: 1 / -1; }
  .art-photo { grid-column: 1 / -1; margin-left: 0; margin-right: calc(-1 * var(--gutter)); }
  .art-photo-cap { grid-column: 1 / 8; margin-top: 12px; }
  .art-body { grid-column: 1 / -1; }
  .related-head, .related-all { grid-column: 1 / -1; }
  .related-all { margin-top: 14px; }
}
@media (max-width: 640px) {
  .blog-mast h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .feature { min-height: min(92svh, 760px); }
  .feature .hero-body { padding-top: 250px; }
  .feature .hero-img { height: 68%; bottom: auto; object-position: 58% 40%; }
  .feature::before { background: linear-gradient(to bottom, rgba(22,26,21,0) 0%, rgba(22,26,21,.3) 14%, rgba(22,26,21,.68) 28%, rgba(22,26,21,.92) 44%, var(--night) 60%); }
  .crumbs li[aria-current] { display: none; }
  .feature-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .entry-a, .entry-b { grid-column: 1 / -1; }
  .entry-b { margin-top: 56px; }
  .entry-b .entry-img img { aspect-ratio: 4 / 3; }
  .ledger li { row-gap: 14px; }
  .ledger-text, .ledger .entry-img { grid-column: 1 / -1; }
  .ledger .entry-img { grid-row: 2; }
  .art-top { padding-bottom: clamp(96px, 26vw, 130px); }
  .art-head h1 { font-size: clamp(2.15rem, 9.6vw, 2.9rem); }
  .art-photo-row { margin-top: calc(-1 * clamp(64px, 18vw, 90px)); }
  .art-photo { margin-left: calc(-1 * var(--gutter)); }
  .art-photo img { aspect-ratio: 4 / 3; }
  .art-photo-cap { grid-column: 1 / -1; }
  .art-close { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .art-body table { min-width: 0; }
  .art-body table, .art-body tbody, .art-body tr, .art-body td { display: block; }
  .art-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .art-body tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .art-body tr:first-child { border-top: 1px solid var(--rule-strong); }
  .art-body td { border: 0; padding: 2px 0; }
  .art-body td:first-child { font-size: 1.12rem; margin-bottom: 4px; }
  .art-body td[data-k]:not(:first-child)::before { content: attr(data-k); display: block; font-family: var(--serif); font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--bark); font-size: .9rem; margin-top: 6px; }
}
