/* Smiths Fork Bank — design mockup
   TYPE LADDER, written before markup, six steps, chosen for this page:
     13  record numbers, place lines, meta, footer, mockup banner
     17  body
     21  hero lede, standfirst prose lead
     30  standfirst heading / record title at 390
     44  record titles / H1 at 390
     66  H1
   Weights 400 / 600 / 800. One family (Bricolage Grotesque, variable, self-hosted).
   Hierarchy also comes off the WIDTH axis (wdth 78 on titles), not more sizes.
   Ink: one, #232A2E, plus #F4F0E8 for type sitting on photographs.
   Palette: paper #E8E4DB, panel #DBD5C9, ink #232A2E, rust #8F3316. Radius 0.
   Value structure: one warm paper tone the whole way down; the only dark
   surfaces are the photographs, the hero scrim, and the footer, which is the
   single darkest point and sits at the very end.
*/

@font-face {
  font-family: 'Bricolage';
  src: url('font/bricolage.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #E8E4DB;
  --panel: #DBD5C9;
  --ink:   #232A2E;
  --rust:  #8F3316;
  --onphoto: #F4F0E8;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1.05em; }
h1, h2 { margin: 0; font-weight: 800; line-height: 1.06; letter-spacing: -0.018em; }

a { color: inherit; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

/* ---------- honesty banner ---------- */

.mockup {
  margin: 0;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--onphoto);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
}
.masthead-in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.wordmark > span:first-child {
  font-size: 21px;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark-sub { font-size: 13px; font-weight: 400; }

.call {
  display: inline-block;
  background: var(--rust);
  color: #FFF9F2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 13px 18px;
  min-height: 44px;
  border: 1px solid var(--rust);
}
.call:hover { background: #77270F; border-color: #77270F; }
.call:active { background: #5F1F0B; border-color: #5F1F0B; }
.call-lg { font-size: 17px; padding: 15px 24px; }

:where(a, button):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
/* the ink ring vanishes on the dark footer and over the hero scrim */
.foot :where(a, button):focus-visible,
.hero :where(a, button):focus-visible {
  outline-color: var(--onphoto);
}

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

.hero { position: relative; background: var(--ink); }
.hero > img { width: 100%; height: auto; }

.hero-copy { padding: 34px 0 30px; background: var(--ink); }
.hero .rec-no { color: var(--onphoto); }
.hero h1 {
  font-size: clamp(44px, 6vw, 66px);
  font-stretch: 88%;
  color: var(--onphoto);
  max-width: 15ch;
  margin: 0 0 18px;
}
.hero-lede {
  font-size: 21px;
  line-height: 1.42;
  color: var(--onphoto);
  max-width: 46ch;
  margin: 0;
}

.rec-no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

@media (min-width: 900px) {
  .hero { display: block; }
  .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-copy {
    position: relative;
    background: none;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 52px;
    aspect-ratio: 1376 / 768;
  }
  .hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to top,
      rgba(35,42,46,.94) 0%,
      rgba(35,42,46,.92) 50%,
      rgba(35,42,46,.55) 66%,
      rgba(35,42,46,0) 88%);
  }
  .hero-copy > .wrap { position: relative; z-index: 1; }
}

/* ---------- standfirst ---------- */

.standfirst { padding: 68px 0 62px; }
.cols { display: grid; gap: 26px 56px; }
.col-a h2 {
  font-size: clamp(21px, 2.6vw, 30px);
  font-stretch: 84%;
  line-height: 1.16;
}
.col-b p:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .cols { grid-template-columns: 1fr 1.32fr; }
  .col-b { max-width: 62ch; }
}

/* ---------- records ---------- */

.records { list-style: none; margin: 0; padding: 0; }
.record { display: block; }
.rec-fig { margin: 0; }
.rec-fig img { width: 100%; height: auto; }

/* the plates run as a wide band rather than a full frame, so five photographs
   and their copy fit inside one readable scroll */
@media (min-width: 700px) {
  .rec-fig img, .counter-fig img {
    aspect-ratio: 2.35 / 1;
    height: auto;
    object-fit: cover;
  }
  .rec-fig.f-shop img      { object-position: 50% 58%; }
  .rec-fig.f-cattle img    { object-position: 50% 66%; }
  .rec-fig.f-storefront img{ object-position: 50% 46%; }
  .rec-fig.f-combine img   { object-position: 50% 44%; }
  .counter-fig img         { object-position: 50% 42%; }
}

.rec-body { padding: 44px 0 66px; }
.rec-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-stretch: 80%;
  max-width: 20ch;
  margin: 0 0 10px;
}
.rec-place {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.rec-text > p { max-width: 60ch; }
.rec-meta {
  font-size: 13px;
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  max-width: 60ch;
}
.rec-meta span { font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }

/* the offset spine: the record number sits out in the left margin and the
   copy runs down the right two thirds, under the plate above it */
@media (min-width: 900px) {
  .rec-body { padding: 54px 0 84px; }
  .rec-grid { display: grid; grid-template-columns: 26% 1fr; gap: 0 52px; align-items: start; }
  .rec-grid > .rec-no { margin: 8px 0 0; }
}

/* ---------- the counter ---------- */

.counter { background: var(--panel); }
.counter-fig { margin: 0; }
.counter-body { padding: 56px 0 66px; }
.counter-body h2 {
  font-size: clamp(21px, 2.6vw, 30px);
  font-stretch: 84%;
  line-height: 1.16;
  max-width: 26ch;
  margin: 0 0 22px;
}
.counter-body p { max-width: 62ch; }
.counter-cols > p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .counter-body h2 { max-width: 30ch; }
  .counter-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .counter-cols > p { max-width: 46ch; }
}
.counter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin: 30px 0 24px;
}
.plainlink { font-size: 17px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.plainlink:hover { text-decoration-thickness: 2px; }
.counter-hours { font-size: 13px; margin: 0; max-width: 62ch; }

/* ---------- footer, the darkest point ---------- */

.foot {
  background: var(--ink);
  color: var(--onphoto);
  padding: 54px 0 62px;
  font-size: 13px;
  line-height: 1.66;
}
.foot p { max-width: 76ch; }
.foot p:last-child { margin-bottom: 0; }
.foot-lead { font-weight: 600; }
.foot a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- motion, as polish only ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-in { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
