/* Locally Published — site styles
   Tokens from Sonia's brand system, Draft 1 (approved Sept 2026).
   Display face changed from Bodoni Moda to Playfair Display (Sept 2026) for legibility.
   Single-theme by design: a print brand on paper. */

:root {
  --paper:      #f4ecdd;
  --paper-deep: #e8dcc4;
  --ink:        #1c1a17;
  --ink-muted:  #5e554a;
  --red:        #be2e27;
  --mustard:    #e2a72e;
  --sea:        #245e61;
  --sky:        #9cc3d5;
  --blush:      #eba9b4;
  --line:       var(--ink);

  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-16: 64px;

  --radius-0: 0;
  --radius-sm: 2px;
  --radius-full: 999px;

  --stroke-hair: 1px;
  --stroke-button: 2px;
  --stroke-rule: 3px;

  --display: "Playfair Display", Georgia, serif;
  --text: "Fraunces", "Iowan Old Style", Georgia, serif;

  --maxw: 1160px;
  --measure: 62ch;

  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

::selection { background: var(--mustard); color: var(--ink); }

:focus-visible {
  outline: var(--stroke-button) solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- shell ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 32px;
}

main section { padding-block: var(--space-16); }
main section + section { padding-top: 0; }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* ---------- type ---------- */

.cover-h,
h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: 72px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: italic;
  color: var(--red);
}

h2 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

h3 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--space-2);
}

.deck {
  font-family: var(--text);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  max-width: 34ch;
  margin-top: var(--space-6);
}

.kicker {
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.caption {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }

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

.masthead {
  border-bottom: var(--stroke-hair) solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  flex-wrap: wrap;
  padding-block: 18px;
}

.wordmark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark em { font-style: italic; }
.wordmark .dot { color: var(--red); }

.nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 4px;
  border-bottom: var(--stroke-button) solid transparent;
}

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

/* ---------- dateline (the signature move) ---------- */

/* the two rules are drawn as pseudo-elements so they can grow left to right */
.dateline {
  --rule-color: var(--line);
  position: relative;
  padding-top: calc(var(--stroke-rule) + var(--space-1));
  margin-bottom: var(--space-8);
}

.dateline-in {
  position: relative;
  padding-top: calc(var(--stroke-hair) + 10px);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.dateline::before,
.dateline-in::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  background: var(--rule-color);
  transform-origin: left center;
}

.dateline::before    { height: var(--stroke-rule); }
.dateline-in::before { height: var(--stroke-hair); }

.js .dateline::before,
.js .dateline-in::before {
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.js .dateline-in::before { transition-delay: .15s; }

.js .dateline.in-view::before,
.js .dateline.in-view .dateline-in::before { transform: scaleX(1); }

.dateline .kicker:last-child:not(:first-child) { color: var(--ink-muted); }

/* ---------- buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 22px;
  border: var(--stroke-button) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: background .15s ease;
}

.btn:hover { background: var(--paper-deep); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
}

.btn-primary:hover { background: #a8261f; }

/* ---------- cover (page opener) ---------- */

.cover { padding-block: var(--space-16); }

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-16);
  align-items: start;
}

/* home cover art: Sonia's block composition, built in CSS */
.cover-art {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  border-bottom: var(--stroke-rule) solid var(--line);
}

.cover-art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  border-bottom: var(--stroke-hair) solid var(--line);
}

.cover-art .blk-red     { position: absolute; left: 0;   top: 0;   width: 36%; height: 88%; background: var(--red); }
.cover-art .blk-mustard { position: absolute; left: 40%; top: 58%; width: 20%; height: 30%; background: var(--mustard); }
.cover-art .dot-blush   { position: absolute; left: 47%; top: 38%; width: 9%; aspect-ratio: 1; border-radius: var(--radius-full); background: var(--blush); }
.cover-art .blk-sea     { position: absolute; left: 64%; top: 18%; width: 36%; height: 70%; background: var(--sea); overflow: hidden; container-type: size; display: flex; align-items: center; justify-content: center; }
.cover-art .amp {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 78cqw;
  line-height: 1;
  padding-right: 8cqw;
  color: var(--paper);
}

/* bars grow up from the baseline, then the dot and ampersand arrive */
.js .cover-art .blk-red,
.js .cover-art .blk-mustard,
.js .cover-art .blk-sea {
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}

.js .cover-art .blk-mustard { transition-delay: .15s; }
.js .cover-art .blk-sea     { transition-delay: .3s; }

.js .cover-art .dot-blush {
  transform: scale(0);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1) .75s;
}

.js .cover-art .amp {
  opacity: 0;
  transition: opacity .6s ease .95s;
}

.js .cover-art.in-view .blk-red,
.js .cover-art.in-view .blk-mustard,
.js .cover-art.in-view .blk-sea,
.js .cover-art.in-view .dot-blush { transform: none; }
.js .cover-art.in-view .amp { opacity: 1; }

/* ---------- sea band (Local Businesses opener) ---------- */

.band-sea {
  background: var(--sea);
  color: var(--paper);
}

.band-sea .dateline { --rule-color: var(--paper); }
.band-sea .dateline .kicker:last-child:not(:first-child) { color: var(--paper); opacity: .8; }
.band-sea h1 em { color: var(--paper); }
.band-sea .btn { border-color: var(--paper); }

/* ---------- doors (home) ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.door {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  text-decoration: none;
  border: var(--stroke-hair) solid var(--line);
  background: var(--paper);
  transition: background .15s ease;
}

.door:hover { background: var(--paper-deep); }

.door h2 { margin-bottom: var(--space-4); }
.door p { margin-bottom: var(--space-6); }

.door .go {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}

.door-sea {
  background: var(--sea);
  color: var(--paper);
  border-color: var(--sea);
}

.door-sea:hover { background: #1d4f52; }
.door-sea .dateline { --rule-color: var(--paper); }
.door-sea .dateline .kicker:last-child:not(:first-child) { color: var(--paper); opacity: .8; }

/* ---------- section layout ---------- */

.sec-head { max-width: 30ch; }

.lede {
  font-size: 20px;
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* numbered/unnumbered lists of short items */
.items {
  display: grid;
  gap: 0;
  max-width: 820px;
}

.item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: var(--stroke-hair) solid var(--line);
}

.item:last-child { border-bottom: var(--stroke-hair) solid var(--line); }

.item .n {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 900;
  line-height: 0.9;
  color: var(--ink);
}

.item h3 { margin-bottom: 6px; }
.item p { margin: 0; }

/* two-up grid for why-us / the case */
.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-16);
  max-width: 1000px;
}

.pair {
  border-top: var(--stroke-hair) solid var(--line);
  padding-top: var(--space-4);
}

.pair p { margin: 0; }

/* what's included */
.includes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.includes li {
  padding: 14px 0 14px 28px;
  border-top: var(--stroke-hair) solid var(--line);
  position: relative;
}

.includes li:last-child { border-bottom: var(--stroke-hair) solid var(--line); }

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 14px;
  border-top: var(--stroke-button) solid var(--ink);
}

.pull {
  margin-top: var(--space-8);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  max-width: 30ch;
}

/* ---------- Q&A (businesses) ---------- */

.qa {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0;
}

.qa > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  padding-block: var(--space-6);
  border-top: var(--stroke-hair) solid var(--line);
}

.qa > div:last-child { border-bottom: var(--stroke-hair) solid var(--line); }

.qa dt {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
}

.qa dd { margin: 0; }
.qa dd p { margin: 0 0 var(--space-2); }

/* ---------- mailing label (appointment card) ---------- */

.label {
  background: var(--paper);
  border: var(--stroke-hair) solid var(--line);
  padding: var(--space-6) var(--space-6) var(--space-4);
  transform: rotate(-1.5deg);
  max-width: 440px;
  margin-top: var(--space-4);
}

.label-head {
  border-top: var(--stroke-rule) solid var(--line);
  padding-top: var(--space-1);
}

.label-head > div {
  border-top: var(--stroke-hair) solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.label-biz {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  margin: var(--space-4) 0 var(--space-2);
}

.chip {
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.label dl { margin: var(--space-4) 0 0; display: grid; gap: 10px; }
.label dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.label dd { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }

.label .note {
  margin-top: var(--space-4);
  background: var(--mustard);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  max-width: none;
}

.label .note b { font-weight: 700; }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; max-width: 1000px; }

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px 16px 0;
  border-bottom: var(--stroke-hair) solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

thead th {
  border-top: var(--stroke-rule) solid var(--line);
  border-bottom-width: var(--stroke-hair);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 12px;
  padding-bottom: 10px;
}

td:first-child {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  width: 24%;
}

td:last-child { padding-right: 0; }

.aside {
  margin-top: var(--space-8);
  max-width: 62ch;
  padding: var(--space-6);
  background: var(--paper-deep);
}

.aside b { font-weight: 700; }

/* ---------- contact cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border: var(--stroke-hair) solid var(--line);
}

.card h2 { font-size: 32px; margin-bottom: var(--space-4); }
.card .btn-row { margin-top: auto; padding-top: var(--space-6); }

.addr {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  word-break: break-word;
}

/* ---------- next-page strip ---------- */

.next {
  background: var(--paper-deep);
}

.next .wrap {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-8);
  align-items: end;
}

.next h2 { margin: 0; }
.next .btn-row { margin: 0; }

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

.foot {
  position: relative;
  border-top: var(--stroke-rule) solid var(--line);
}

.foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: var(--space-1);
  border-top: var(--stroke-hair) solid var(--line);
}

.foot .wrap {
  padding-block: var(--space-8) var(--space-16);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
}

.foot .wordmark { font-size: 24px; }
.foot p { font-size: 15px; margin-top: var(--space-2); }

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.foot a { text-decoration: none; border-bottom: var(--stroke-hair) solid transparent; }
.foot a:hover { border-bottom-color: var(--ink); }

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

@media (max-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .doors, .cards, .pairs { grid-template-columns: minmax(0, 1fr); }
  .qa > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .next .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .cover-art { max-width: 460px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  main section, .cover { padding-block: 44px; }
  main section + section { padding-top: 0; }
  h1 { font-size: 40px; }
  .deck { font-size: 20px; }
  .door, .card { padding: var(--space-6); }
  .item { grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); }
  .item .n { font-size: 30px; }
  .label { transform: rotate(-1deg); }
  .nav { gap: var(--space-4); }
}
