/* Kemps River Barber Shop: the bench paper. Newsprint and ink, saddle leather for the bands and the Call. */
:root {
  --paper: #F7F2E8; --ink: #1C1A17; --saddle: #8C4A2B; --saddle-d: #6E3920; --cream: #F3ECDF;
  --mute: #57504A; --rule: #CFC3B0; --chrome: #A9AEB2; --on-dark: #EDE6D8; --on-dark-mute: #B9B0A3;
  --plate: 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --gut: 20px;
  --m-dur: .55s; --m-ease: cubic-bezier(.2, .7, .1, 1); --m-rise: 12px;
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--serif); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.m-frame > img { width: 100%; height: 100%; object-fit: cover; }
.m-frame > picture { display: block; height: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 8px; z-index: 50; padding: 12px 16px; background: var(--ink); color: #fff; font: 600 1rem var(--sans); clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.lbl { font: 600 .75rem/1.35 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.sep { padding: 0 .1em; }

/* preview bar and header */
.preview { padding: 7px 16px; background: var(--ink); color: var(--on-dark); text-align: center; font: 400 .8125rem/1.35 var(--sans); }
.site { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; border-bottom: 1px solid var(--chrome); }
.top a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.top .tel { color: var(--saddle); }
.nav { display: none; }

/* masthead */
.mast { text-align: center; }
.np { padding: 12px 0 8px; font: 400 clamp(2.9rem, 14.2vw, 8.5rem)/.92 var(--plate); letter-spacing: -.005em; }
.np span { display: block; }
.rule2 { border-top: 3px double var(--ink); transform-origin: 50% 50%; }
.rule1 { border-top: 1px solid var(--ink); transform-origin: 50% 50%; }
.dateline { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; padding: 7px 0 6px; font: 600 .75rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.dateline .dl { display: block; width: 100%; }
.dateline .sep { padding: 0 .55em; }
.dateline .sep-mid { display: none; }
.dateline b { color: var(--saddle); font-weight: 600; }

/* front page */
.lead { padding-bottom: 48px; }
.lead-fig { margin: 8px calc(var(--gut) * -1) 0; }
.lead-fig .photo { aspect-ratio: 16 / 10; }
.lead-fig .photo img { object-position: 55% 60%; }
/* every photo is printed in the paper's ink: warm monochrome baked into the file (src-media/mono/, see notes.md) */
.fig-rule, .col-rule, .bench { display: none; }
.story { position: relative; display: flex; flex-direction: column; margin-top: 18px; }
.headline { order: 1; font: 800 clamp(1.85rem, 7.4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
.deck { order: 2; margin-top: 12px; font: italic 400 1.1875rem/1.45 var(--serif); color: var(--mute); }
.actions { order: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 18px; }
.lead .actions .solid { align-self: stretch; min-height: 56px; }
.lead .actions .line { min-height: 44px; padding: 0; border: 0; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; --m-fill: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 0; text-decoration: none; font: 600 1rem/1 var(--sans); letter-spacing: .02em; }
.btn.solid { background: var(--saddle); border-color: var(--saddle); color: #fff; --m-fill: var(--saddle-d); }
.btn.line { border-color: var(--ink); color: var(--ink); --m-fill: rgba(28, 26, 23, .08); }

/* shared section head */
.sec { padding: 64px 0 56px; }
.folio { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--chrome); font: 600 .75rem/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.folio .f-mid { display: none; }
h2 { margin-top: 32px; font: 800 clamp(2.5rem, 10vw, 3.5rem)/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }

/* services: the classifieds */
.svc { padding-top: 0; }
/* phone order: heading, described rows, Cash only, short grid; desktop puts the notice under the heading */
.svc-grid { display: flex; flex-direction: column; margin-top: 0; }
.svc-list { display: contents; }
.ads-long { order: 1; margin-top: 28px; border-top: 1px solid var(--ink); }
.svc-grid .notice { order: 2; }
.ads-short { order: 3; }
.ad { padding: 18px 0 17px; border-bottom: 1px solid var(--rule); }
.ad h3 { font: 700 1.5rem/1.15 var(--serif); letter-spacing: -.01em; }
.ad p { margin-top: 4px; font: italic 400 1.125rem/1.4 var(--serif); color: var(--mute); }
.notice { margin: 28px 0; padding: 24px 16px 22px; border: 2px solid var(--saddle); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--saddle); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.notice .bl { font: 400 2.75rem/1 var(--plate); color: var(--saddle); }
.notice .lbl { margin-top: 10px; }
.ads-short { display: grid; grid-template-columns: 1fr 1fr; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ads-short li { padding: 16px 0 15px; border-bottom: 1px solid var(--rule); font: 600 .9375rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ads-short li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.ads-short li:nth-child(even) { padding-left: 16px; }

/* reviews: the letters page */
.letters { background: var(--saddle); color: var(--cream); }
.letters .rule2 { border-top-color: var(--cream); }
.letters .folio { color: #EBD7C4; border-bottom-color: rgba(243, 236, 223, .45); }
.letters h2 { color: #fff; }
.rating { margin-top: 12px; font: italic 400 1.25rem/1.4 var(--serif); color: #F6E8DA; }
.more { margin-top: 6px; }
.more a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 600 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.let-body { margin-top: 40px; }
.letter .q { font: 400 clamp(1.45rem, 5.8vw, 2.375rem)/1.3 var(--serif); color: #fff; }
.letter.one .q::first-letter { float: left; margin: .06em .1em 0 0; font: 800 3.35em/.8 var(--serif); font-variation-settings: "opsz" 72; color: var(--cream); }
.letter .by { margin-top: 20px; font: 600 .8125rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #EBD7C4; }
.letter cite { font-style: normal; color: #F7F2E8; }
.letter cite, .letter .src { white-space: nowrap; }
.letter.two { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(243, 236, 223, .45); }
.letter.two .q { font-size: 1.25rem; line-height: 1.5; }

/* the shop: feature spread */
.feature { padding: 64px 0 56px; }
.spread { margin: 32px calc(var(--gut) * -1) 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.spread .m-frame { aspect-ratio: 4 / 3; }
.spread img { object-position: 50% 50%; }
.feat-text { margin-top: 32px; }
.feat-lead, .feat-p { font-size: 1.125rem; line-height: 1.6; max-width: 62ch; }
.feat-p { margin-top: 18px; }
.feat-pic { margin: 36px calc(var(--gut) * -1) 0; padding-top: 10px; border-top: 1px solid var(--ink); aspect-ratio: 16 / 9; }
.sidebar { margin-top: 40px; padding: 20px 20px 6px; border: 1px solid var(--ink); }
.side-h { padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.side-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 13px; }
.side-list > div + div { border-top: 1px solid var(--rule); }
.side-list dt { color: var(--mute); }
.side-list dd { font: 400 1.125rem/1.35 var(--serif); text-align: right; }
.feat-lead::first-letter { float: left; margin: .07em .09em 0 0; font: 800 3.4em/.8 var(--serif); font-variation-settings: "opsz" 72; color: var(--saddle); }

/* visit: the almanac on letter-board black */
.visit { padding: 64px 0 56px; background: var(--ink); color: var(--on-dark); }
.visit .rule2 { border-top-color: var(--chrome); }
.visit .folio { color: var(--on-dark-mute); border-bottom-color: rgba(169, 174, 178, .5); }
.visit h2 { color: #FBF8F2; }
.facts { margin-top: 28px; }
.facts > div { padding: 16px 0; border-bottom: 1px solid rgba(237, 230, 216, .18); }
.facts dt { color: var(--on-dark-mute); }
.facts dd { margin-top: 6px; font: 400 1.25rem/1.4 var(--serif); }
.facts dd a { text-decoration: none; }
.big-tel { display: inline-block; font: 700 clamp(2.1rem, 9vw, 2.75rem)/1.1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.actions-2 { display: flex; margin-top: 32px; }
.actions-2 .btn { flex: 1; justify-content: space-between; }
.almanac { margin-top: 48px; padding: 20px; border: 1px solid rgba(169, 174, 178, .6); }
.alm-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--chrome); color: var(--on-dark-mute); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid rgba(237, 230, 216, .16); }
.hours th { text-align: left; font: 600 1.125rem/1.3 var(--serif); }
.hours td { text-align: right; font: 400 1.125rem/1.3 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.hours tr.is-today { background: var(--saddle); color: #fff; }
.hours tr.is-today th { padding-left: 10px; }
.hours tr.is-today td { padding-right: 10px; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font: 600 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #F6E8DA; vertical-align: .15em; }

/* footer: the colophon */
.foot { padding: 8px 0 calc(32px + 57px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--on-dark); text-align: center; }
.foot .wrap > :first-child { padding-top: 48px; border-top: 1px solid rgba(169, 174, 178, .35); }
.foot-np { display: block; font: 400 2.25rem/1.1 var(--plate); text-decoration: none; color: #FBF8F2; }
.foot .rule2 { margin: 16px auto 18px; max-width: 520px; border-top-color: var(--chrome); }
.foot-line, .foot-links, .foot-small { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 4px; font: 600 .75rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.nw { white-space: nowrap; }
.foot-line a, .foot-links a, .foot-small a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links { gap: 0 22px; margin-top: 24px; }
.foot-small { margin-top: 2px; color: var(--on-dark-mute); letter-spacing: .08em; }
.foot-credit { margin-top: 32px; }
.addr2 { gap: 0 .45em; }
.foot .sep { padding: 0 .5em; }

/* phone action bar */
.actionbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--paper); border-top: 3px double var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.actionbar a { display: flex; align-items: center; justify-content: center; min-height: 54px; text-decoration: none; font: 600 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); --m-fill: rgba(28, 26, 23, .08); }
.actionbar a + a { border-left: 1px solid var(--rule); }
.actionbar .ab-call { background: var(--ink); color: var(--paper); --m-fill: #3A352F; }

/* motion: rules draw out from the centre, the nameplate inks in */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  [data-reveal="draw"] { opacity: 1; transform: scaleX(0); transition-duration: .6s; }
  .col-rule[data-reveal="draw"]:not(.is-in) { transform: scaleY(0); }
  [data-reveal="ink"] { transform: none; scale: 1.03; }
}

@media (min-width: 640px) {
  .dateline .dl { display: inline; width: auto; }
  .dateline .sep-mid { display: inline; }
  .folio .f-mid { display: inline; }
  .addr2 span:first-child::after { content: ","; }
  .spread .m-frame { aspect-ratio: 5 / 3; }
  .actions-2 .btn { flex: 0 1 auto; min-width: 280px; }
}

@media (min-width: 900px) {
  :root { --gut: 40px; }
  body { font-size: 1.125rem; }
  .nav { display: flex; gap: 32px; }
  .top a { min-height: 56px; }
  .np { padding: 28px 0 18px; font-size: min(7.4vw, 6.75rem); }
  .np span { display: inline; }
  .dateline { padding: 11px 0 10px; font-size: .8125rem; }

  .lead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 28px; padding-bottom: 64px; }
  .lead-fig { grid-column: 1 / 8; margin: 0; }
  .fig-rule { display: block; margin-bottom: 9px; }
  .lead-fig { display: flex; flex-direction: column; }
  .lead-fig .photo { flex: 1; aspect-ratio: auto; min-height: 520px; }
  .lead-fig .photo img { object-position: 58% 55%; }
  .story { grid-column: 8 / 13; margin: 0; padding-left: 24px; }
  .col-rule { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); transform-origin: 50% 0; }
  .headline { font-size: clamp(2.3rem, 3.1vw, 2.9rem); --m-word: 30ms; }
  .deck { margin-top: 16px; max-width: 30ch; font-size: 1.5rem; line-height: 1.35; }
  .bench { order: 3; display: block; margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--ink); }
  .bench img { aspect-ratio: 16 / 7; object-position: 40% 30%; }
  .actions { order: 4; flex-direction: row; align-items: stretch; margin-top: auto; padding-top: 48px; gap: 12px; }
  .actions .btn { flex: 1 1 0; justify-content: space-between; padding: 0 20px; }
  .lead .actions .solid { min-height: 52px; }
  .lead .actions .line { min-height: 52px; padding: 0 20px; border: 1px solid var(--ink); font-size: 1rem; letter-spacing: .02em; text-transform: none; --m-fill: rgba(28, 26, 23, .08); }

  .sec { padding: 128px 0; }
  .svc { padding-top: 0; padding-bottom: 72px; }
  h2 { margin-top: 40px; font-size: clamp(3rem, 4.4vw, 4rem); }
  .svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; margin-top: 40px; }
  .svc h2 { grid-column: 1 / 5; grid-row: 1; align-self: start; margin-top: 0; }
  .svc-grid .notice { grid-column: 1 / 5; grid-row: 2; align-self: start; position: sticky; top: 96px; margin: 48px 24px 0 0; padding: 28px 16px 26px; }
  .svc-grid .notice .bl { font-size: 2.75rem; }
  .svc-grid .notice .lbl { font-size: .6875rem; }
  .svc-list { grid-column: 5 / 13; grid-row: 1 / 3; display: flex; flex-direction: column; margin-top: 0; }
  .ads-long { margin-top: 0; }
  .ad { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: baseline; padding: 28px 0; }
  .ad h3 { font-size: 2.25rem; }
  .ad p { margin-top: 0; font-size: 1.375rem; }
  .ads-short { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
  .ads-short li:nth-child(odd), .ads-short li:nth-child(even) { display: flex; align-items: center; min-height: 64px; padding: 0 20px; border-right: 1px solid var(--rule); }
  .ads-short li:nth-child(4n + 1) { padding-left: 0; }
  .ads-short li:nth-child(4n) { padding-right: 0; border-right: 0; }

  .let-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 56px; }
  .letter { display: flex; flex-direction: column; }
  .letter.one { grid-column: 1 / 9; padding-right: 24px; }
  .letter.one .q { font-size: 2.75rem; line-height: 1.25; }
  .letter.two { grid-column: 9 / 13; margin: 0; padding: 4px 0 0 24px; border-top: 0; border-left: 1px solid rgba(243, 236, 223, .45); }
  .letter.two .q { font-size: 1.875rem; line-height: 1.34; }
  .letter.two .by { margin-top: auto; padding-top: 20px; }

  .feature { padding: 128px 0 96px; }
  .spread { margin: 48px 0 0; }
  .spread .m-frame { aspect-ratio: auto; height: min(56svh, 540px); min-height: 420px; }
  .spread img { object-position: 50% 50%; }
  .feat-text { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 48px; }
  .feat-body { grid-column: 1 / 8; }
  .feat-lead, .feat-p { font-size: 1.375rem; line-height: 1.55; }
  .feat-p { margin-top: 20px; }
  .feat-pic { display: none; }
  .sidebar { grid-column: 9 / 13; align-self: start; margin-top: 6px; padding: 24px 24px 8px; }

  .visit { padding: 128px 0 96px; }
  .visit-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .where { grid-column: 1 / 6; }
  .almanac { grid-column: 7 / 13; margin-top: 40px; align-self: start; padding: 28px 32px; }
  .hours th, .hours td { padding: 15px 0; }
  .hours td { font-size: 1.0625rem; }

  .foot { padding-bottom: 48px; }
  .actionbar { display: none; }
}

/* footer lines stack on phones */
@media (max-width: 639px) {
  .foot-np span { display: block; }
  .foot-line { flex-direction: column; gap: 0; }
  .foot-line .sep { display: none; }
  .foot-line > span { padding: 6px 0; }
  .foot-line .addr2 { flex-direction: column; padding: 6px 0; }
  .addr2 span { display: block; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #3A352F; }
  .foot-links a { justify-content: center; min-height: 48px; border-bottom: 1px solid #3A352F; }
  .foot-links a:nth-child(odd) { border-right: 1px solid #3A352F; }
  .foot-small { flex-direction: column; gap: 6px; font-size: .75rem; }
  /* keep the 44px tap target without opening a gap above it */
  .foot-small a { min-height: 44px; margin: -13px 0; }
  .foot-small .sep { display: none; }
}

/* 404 */
.lost { padding: 64px 0 112px; }
.lost h1 { margin-top: 40px; font: 800 clamp(3rem, 12vw, 6rem)/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.lost-deck { margin-top: 16px; max-width: 34ch; font: italic 400 1.25rem/1.45 var(--serif); color: var(--mute); }
.lost .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* policy pages (legal.mjs) in the paper's type */
.legal.wrap { padding-left: var(--gut); padding-right: var(--gut); max-width: 840px; }
.legal h1 { font: 800 clamp(2.5rem, 9vw, 3.5rem)/1.02 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; padding-bottom: 18px; border-bottom: 3px double var(--ink); }
.legal h2 { font-family: var(--serif); }
.legal a { color: var(--saddle); }

/* desktop entrance: the front page is at rest by about 1s */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .lead { --m-dur: .42s; }
  .lead .photo, .lead .fig-rule, .lead .col-rule { --d: 380ms !important; }
  .lead .fig-rule, .lead .col-rule { transition-duration: .5s; }
  .lead .headline { --d: 360ms !important; }
  .lead .bench { --d: 460ms !important; }
  .lead .deck { --d: 540ms !important; }
  .lead .actions { --d: 580ms !important; }
}
