/* Mama's Makin' Moves — shared styles: tokens, base, header, nav, drawer, footer, buttons. */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --accent: #A5553D;          /* terracotta, AA on white for small text */
  --accent-large: #B8654B;    /* original terracotta, large display type only */
  --accent-on-blush: #8F4631; /* darker terracotta: AA for small text on --blush */
  --olive: #3F4A3B;
  --plum: #7A6A62;
  --blush: #EFE6E1;
  --blush-deep: #E4D6CD;
  --clay: #E8DCD4;
  --stone: #ECECE9;
  --mist: #F4F4F2;
  --fog: #FAFAF8;
  --line: #E3E3E0;
  --line-strong: #D4D4D0;
  --text-2: #3a3a3a;
  --text-3: #555555;
  --muted: #6b6b6b;
  --error: #B3261E;
  --serif: 'Newsreader Variable', Newsreader, Georgia, 'Times New Roman', serif;
  --sans: 'Figtree Variable', Figtree, system-ui, -apple-system, sans-serif;
  --max: 1360px;
  --gutter: 32px;
  --nav-h: 61px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, background-size .3s, background-color .25s, border-color .25s; }
a:hover { color: var(--accent); }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 500; }
.italic { font-style: italic; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; }
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* Small uppercase label used above headlines */
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.kicker--accent { color: var(--accent); }
.kicker--olive { color: var(--olive); }
.kicker--muted { color: var(--muted); }
.kicker--wide { letter-spacing: .24em; }

/* Scroll-reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal="in"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Image frames: a neutral box that keeps aspect ratio while the photo loads */
.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--bw > img { filter: grayscale(1); }
.stamp { position: absolute; top: 16px; left: 16px; background: var(--paper); color: var(--ink); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; pointer-events: none; }
.stamp--olive { background: var(--olive); color: #fff; }
.credit { font-size: 11px; color: var(--muted); margin-top: 6px; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  white-space: nowrap; background: transparent; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 12px; letter-spacing: .16em; gap: 8px; }
.btn--lg { padding: 20px 28px; font-size: 14px; }
.btn--xl { padding: 20px 34px; font-size: 14px; gap: 12px; }
.btn--block { display: flex; width: 100%; }
.btn--current { border-color: var(--accent); color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.textlink { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.textlink--accent { color: var(--accent); }
.textlink--underline { border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0;
}
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.icon { flex: none; }

/* Pills / tags */
.pill { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.pill--accent { color: var(--accent); }
.pill--olive { color: var(--olive); }
.pill--clay { background: var(--clay); border-color: var(--clay); color: var(--ink); padding: 4px 9px; }

/* Section heading row: title left, link right, rule underneath */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 36px; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 44px); line-height: 1; }
.section-title--xl { font-size: clamp(38px, 4.4vw, 64px); line-height: .98; }

/* ------------------------------------------------------------------ Demo banner */
.demo-banner { background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 8px 16px; font-weight: 600; }
.demo-banner a { color: #fff; text-decoration: none; }
.demo-banner a:hover { color: #F1C7B6; }
.demo-banner__star { color: #E0A58F; }

.preview-bar { background: #FFF4CC; color: var(--ink); border-bottom: 1px solid #E0C766; font-size: 14px; text-align: center; padding: 10px 16px; }
.preview-bar a { text-decoration: underline; font-weight: 600; }

/* ------------------------------------------------------------------ Masthead (home only) */
.masthead { background: #fff; border-bottom: 1px solid var(--ink); }
.masthead__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.masthead__date { color: var(--muted); min-width: 1px; }
.masthead__open { color: var(--accent); font-weight: 600; }
.masthead__links { display: flex; align-items: center; gap: 14px; }
.masthead__sep { width: 1px; height: 14px; background: var(--line); }
.masthead__social { display: inline-flex; }
.masthead__title { text-align: center; padding: 36px 0 24px; }
.masthead__name { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.5vw, 94px); line-height: .9; letter-spacing: .02em; text-transform: uppercase; }
/* Desktop and tablet: the name stays on one line (6.5vw of the viewport fits the 19 characters). Phones wrap. */
@media (min-width: 640px) { .masthead__name { white-space: nowrap; } }
.masthead__tagline { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(17px, 1.6vw, 22px); color: var(--text-3); }

/* ------------------------------------------------------------------ Sticky nav */
.sitenav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.sitenav__inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); min-height: 60px; display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; column-gap: 28px; }
.sitenav__left { display: flex; align-items: center; justify-self: start; }
.sitenav__logo { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; letter-spacing: .04em; }
.sitenav--home .sitenav__left .sitenav__logo { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sitenav--home.is-scrolled .sitenav__left .sitenav__logo { opacity: 1; visibility: visible; }
.sitenav__links { min-width: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: center; align-items: center; gap: clamp(14px, 1.8vw, 28px); font-size: clamp(11px, 1vw, 12px); line-height: 1; letter-spacing: clamp(.08em, .9vw, .16em); text-transform: uppercase; font-weight: 600; }
.navlink { padding: 4px 0; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px; }
.navlink:hover, .navlink.is-active { background-size: 100% 1px; }
.navlink.is-active { color: var(--accent); }
/* Dropdowns in the main nav: open on hover, keyboard focus, or the caret button. */
.navdrop { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.navdrop__toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.navdrop__toggle .icon { transition: transform .2s; }
.navdrop__panel { position: absolute; top: calc(100% + 14px); left: -20px; z-index: 60; min-width: 230px; display: none; background: #fff; border: 1px solid var(--ink); padding: 10px 0; box-shadow: 0 18px 40px -22px rgba(10,10,10,.35); text-transform: none; letter-spacing: 0; font-weight: 500; white-space: nowrap; }
.navdrop__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.navdrop:hover .navdrop__panel, .navdrop:focus-within .navdrop__panel, .navdrop.is-open .navdrop__panel { display: block; }
.navdrop:hover .navdrop__toggle .icon, .navdrop.is-open .navdrop__toggle .icon { transform: rotate(180deg); }
.navdrop.is-closed .navdrop__panel { display: none; }
.navdrop__link { display: block; padding: 9px 20px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.navdrop__link:hover, .navdrop__link:focus-visible { background: var(--mist); color: var(--accent); }
.navdrop__group { margin: 8px 20px 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.drawer__sub { display: flex; flex-direction: column; padding: 4px 0 12px 2px; border-bottom: 1px solid var(--line); }
.drawer__links .drawer__sub a { font-family: var(--sans); font-size: 16px; padding: 7px 0; border: 0; color: var(--text-2, #3A3A3A); }
.sitenav__right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; justify-self: end; }
.sitenav__menu { display: none; }

@media (max-width: 960px) {
  .sitenav__inner { grid-template-columns: 1fr auto; }
  .sitenav__links { display: none; }
  .sitenav__menu { display: inline-flex; }
  .sitenav--home .sitenav__left .sitenav__logo { opacity: 1; visibility: visible; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; padding: 14px 24px 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer__panel { animation: none; } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 46px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer__links a[aria-current="page"] { color: var(--accent); font-style: italic; }
.drawer__socials { display: flex; gap: 18px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .masthead__bar { justify-content: center; }
  .masthead__date, .masthead__links { display: none; }
  .masthead__title { padding: 26px 0 20px; }
  .sitenav__right { gap: 8px; }
  .sitenav__right > .iconbtn[aria-label="Search stories"] { display: none; }
  /* Touch targets */
  .iconbtn { width: 44px; height: 44px; }
  .btn--sm { height: 44px; }
}

/* ------------------------------------------------------------------ Forms (shared) */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.inline-form input[type="email"] { flex: 1 1 240px; min-width: 0; border: 1px solid #fff; outline: 0; background: #fff; padding: 20px; font-size: 17px; color: var(--ink); border-radius: 0; }
.inline-form input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline-form .btn { flex: 0 0 auto; }
.form-status { flex-basis: 100%; min-height: 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #F2B8B5; }
.form-status.is-ok { color: #fff; }

/* ------------------------------------------------------------------ Footer */
.sitefooter { background: #fff; padding-bottom: 48px; }
.footer-news { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.footer-news__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 72px; }
.footer-news__copy { flex: 1.2 1 420px; min-width: 0; }
.footer-news .kicker { margin-bottom: 18px; font-size: 13px; letter-spacing: .24em; color: #D9967F; }
.footer-news__title { font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 9vw, 140px); line-height: .86; text-transform: uppercase; letter-spacing: .01em; }
.footer-news__lede { margin-top: 22px; max-width: 520px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; color: #d6d6d6; }
.footer-news__form { flex: 1 1 400px; min-width: 0; max-width: 580px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #d6d6d6; }
.checklist li { display: inline-flex; align-items: center; gap: 8px; }
.footer-main { padding-top: 56px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; }
.footer-brand { flex: 1 1 260px; }
.footer-brand__name { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.footer-brand__desc { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; min-width: 130px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; }
.footer-col__title { margin-bottom: 4px; font-weight: 600; color: var(--muted); }
.footer-legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }

@media (max-width: 560px) {
  .footer-news__copy, .footer-news__form { flex-basis: 100%; }
  .inline-form .btn { flex: 1 1 100%; }
  .footer-col { gap: 0; }
  .footer-col a { padding: 12px 0; }
  .footer-col__title { padding: 6px 0; margin-bottom: 0; }
}

/* One-sentence description of the publication under the masthead (home only) */
.masthead__about { margin: 14px auto 0; max-width: 620px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cities__dot { display: none; }
.cities__city + .cities__city::before { content: '·'; font-family: var(--sans); font-size: 14px; color: #bdbdbd; margin-right: .5em; }

/* Row of social profile icons (directory cards, business page, story sidebar) */
.sociallinks { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sociallinks__btn { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.sociallinks__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.story-aside .sociallinks { margin-top: 16px; }

/* Cookie consent banner (public/js/consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; box-shadow: 0 18px 40px -18px rgba(10,10,10,.5); }
.consent[hidden] { display: none; }
.consent__text { flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: #e9e6e3; }
.consent__text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent__btns { display: flex; gap: 8px; }
.consent__btn { background: #fff; color: var(--ink); border: 1px solid #fff; padding: 10px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.consent__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.consent__btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.consent__btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
