/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5
 * Hallmark · macrostructure: Photographic · tone: tactile editorial · anchor hue: indigo
 * nav: N6 Newspaper masthead · footer: Ft3 Index (commerce sitemap)
 * contrast: pass (40–41) · honest: pass (46) · chrome: pass (47)
 * tokens: pass (48) · responsive: pass (49–57)
 * FabricsMaker standalone shell — no parent-theme selectors or dependencies.
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body.admin-bar .fm-masthead { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.fm-skip-link {
  position: fixed; left: 1rem; top: -8rem; z-index: var(--fm-layer-skip);
  background: var(--fm-primary); color: var(--fm-bg); padding: .75rem 1rem;
}
.fm-skip-link:focus { top: 1rem; }
.fm-site { min-height: 100vh; display: flex; flex-direction: column; }
.fm-site-main { flex: 1; min-width: 0; }
.fm-masthead {
  position: relative; z-index: var(--fm-layer-header); background: var(--fm-bg);
  color: var(--fm-primary); border-bottom: 1px solid var(--fm-rule-strong);
}
.fm-utility-bar, .fm-brand-row, .fm-primary-navigation {
  width: min(100%, 110rem); margin-inline: auto; padding-inline: var(--fm-gutter);
}
.fm-utility-bar {
  min-height: 2.25rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; font-size: .69rem; letter-spacing: .035em; color: var(--fm-ink-muted);
  border-bottom: 1px solid var(--fm-rule);
}
.fm-utility-bar p { margin: 0; }
.fm-utility-bar nav { display: flex; gap: 1.25rem; }
.fm-utility-bar a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.fm-brand-row {
  min-height: 5.25rem; display: flex; align-items: center; gap: var(--fm-masthead-gap);
}
/* R5_7 — the masthead brand box takes the shared lockup width. The
 * masthead row and the footer row have the same content width, so
 * this one width gives the header and the footer the same lockup at
 * every viewport. */
.fm-brand { display: inline-flex; width: var(--fm-logo-width); align-items: center; flex-shrink: 1; min-width: 0; }
/* R5-UX-05 — the masthead lockup, defined ONCE for the whole site.
 *
 * WHAT CHANGED (2026-10-27): the header wordmark is enlarged from
 * 15rem (240px) to 18rem (288px) on desktop and 17rem (272px) on the
 * compact header. The footer wordmark keeps the :root value of 15rem
 * (240px) exactly as before — the footer is not in scope for this
 * change.
 *
 * WHY THE OVERRIDE LIVES ON .fm-masthead AND NOT ON :root:
 * --fm-logo-width is read by TWO brand containers — the masthead
 * (.fm-brand) and the footer (.fm-footer-brand-link). A custom
 * property declared on .fm-masthead is inherited by the masthead
 * brand row and its lockup, and by nothing else, so the header can
 * carry a larger lockup while the footer keeps the root value. Both
 * surfaces therefore still read the SAME token, and neither surface
 * gets a per-page hard-coded width: every page of the site renders
 * the one shared header, so one rule governs the whole site.
 *
 * WHY THE EXPRESSION IS UNCHANGED IN SHAPE: the percentage still
 * resolves against the brand row the lockup sits in, so on a narrow
 * screen the lockup gives way to the menu button instead of pushing
 * it out of the row. The image is still sized at 100% of the brand
 * box with `height: auto`, so the artwork's own 1024 x 196 ratio is
 * preserved — the lockup is never stretched, cropped or scaled with
 * transform, and the clickable area is exactly the visible logo.
 */
.fm-masthead {
  --fm-logo-width: min(18rem, calc(100% - var(--fm-masthead-toggle-width) - var(--fm-masthead-gap)));
}
/* R5_1 / issue 1 — one lockup size everywhere.
 * The old rule was `width: auto; max-width: min(15rem, 48vw);
 * max-height: 3.25rem`, which produced three different rendered
 * sizes (240px desktop masthead, 187px at a 390px viewport, 192px
 * footer) and could fall under the 160px brand minimum on a small
 * phone. Now the width is a single token and the height follows the
 * artwork's own ratio, so nothing is stretched and nothing shifts
 * between breakpoints.
 * R5_7 — the image fills its brand box (100%), and the brand box
 * carries the shared lockup width, so the image is exactly as wide
 * as the header lockup and the footer lockup alike. */
.fm-brand-logo { display: block; width: 100%; max-width: 100%; height: auto; }
.fm-brand-note { font-family: var(--fm-font-serif); font-size: 1.25rem; line-height: 1.2; margin: 0; color: var(--fm-primary); margin-right: auto; }
.fm-menu-toggle { display: none; margin-left: auto; min-width: var(--fm-masthead-toggle-width); min-height: 2.75rem; border: 1px solid var(--fm-rule-strong); background: transparent; color: var(--fm-primary); }
.fm-primary-navigation { border-top: 1px solid var(--fm-rule); }
.fm-primary-menu { display: flex; justify-content: space-between; gap: clamp(1rem, 3vw, 3.5rem); list-style: none; padding: 0; margin: 0; }
.fm-primary-menu > li { position: relative; }
.fm-primary-menu a { display: flex; align-items: center; min-height: 3.55rem; text-decoration: none; font-size: .84rem; font-weight: 500; }
.fm-primary-menu > li > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: .75rem; height: 1px; background: var(--fm-attention-token); transition: right var(--fm-dur-short) var(--fm-ease-out); }
.fm-primary-menu > li:hover > a::after, .fm-primary-menu > .current-menu-item > a::after, .fm-primary-menu > .current-menu-ancestor > a::after { right: 0; }
.fm-primary-menu .sub-menu {
  display: grid; position: absolute; left: -.8rem; top: calc(100% - 1px); min-width: 15rem;
  visibility: hidden; opacity: 0; transform: translateY(.4rem); list-style: none; margin: 0;
  padding: .7rem 1rem; border: 1px solid var(--fm-rule); background: var(--fm-surface);
  transition: opacity var(--fm-dur-short) ease, transform var(--fm-dur-short) ease;
}
.fm-primary-menu li:hover > .sub-menu, .fm-primary-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.fm-primary-menu .sub-menu a { min-height: 2.65rem; border-bottom: 1px solid var(--fm-rule); }
.fm-content-shell, .fm-page, .fm-article, .fm-woocommerce-shell { width: min(100%, 110rem); margin-inline: auto; padding: clamp(3rem, 7vw, 7rem) var(--fm-gutter); }
.fm-page-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(15rem, .7fr); gap: 4rem; align-items: end; padding-bottom: 3rem; border-bottom: 1px solid var(--fm-rule-strong); }
.fm-page-heading h1 { margin: 0; color: var(--fm-primary); font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 400; }
.fm-eyebrow { color: var(--fm-attention-token); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.fm-page-content, .fm-article .fm-page-content { width: min(100%, 76rem); margin-inline: auto; padding-block: 3rem; }
.fm-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.fm-post-card { border-top: 1px solid var(--fm-rule); padding-top: 1rem; }
.fm-post-card h2 { color: var(--fm-primary); font-size: 1.8rem; }
.fm-post-card a { text-decoration: none; }
.fm-site-footer {
  border-top: 1px solid var(--fm-rule-strong);
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(3rem, 6vw, 5.5rem) var(--fm-gutter) 2rem;
}
.fm-footer-grid, .fm-footer-bottom { width: min(100%, 110rem); margin-inline: auto; }
.fm-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fm-footer-brand {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  padding: 0 0 1.75rem;
}
.fm-footer-brand-link {
  align-items: center;
  display: inline-flex;
  flex-shrink: 1;
  line-height: 0;
  min-width: 0;
  text-decoration: none;
  /* R5_7 — the footer brand box carries the same shared lockup width
   * as the masthead, so the footer lockup can never be a different
   * size from the header lockup. */
  width: var(--fm-logo-width);
}
/* R5_1 / issue 1 — the footer carries the SAME lockup as the
 * masthead. The old rule (`max-height: 3rem; max-width:
 * min(12rem, 100%); width: auto`) rendered 192px, so the same brand
 * mark appeared at a third size across the site.
 * R5_7 — the image fills its brand box (100%); the brand box holds
 * the shared lockup width. */
.fm-footer-logo {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}
.fm-footer-tagline {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0;
  margin-right: auto;
}
.fm-footer-top {
  color: var(--fm-primary);
  font-size: .78rem;
  text-decoration: underline;
  text-underline-offset: .3em;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.fm-footer-row {
  display: grid;
  gap: 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  border-top: 1px solid var(--fm-rule);
  padding-block: 1.25rem;
}
.fm-footer-row > .fm-footer-label {
  margin: 0;
  padding-top: .55rem;
}
.fm-footer-row-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  align-items: center;
}
.fm-footer-row-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  text-decoration: none;
  font-size: .82rem;
  color: var(--fm-ink-muted);
}
.fm-footer-label {
  color: var(--fm-primary);
  font-family: var(--fm-font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fm-footer-bottom {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm-rule);
  font-size: .68rem;
  color: var(--fm-ink-muted);
}
.fm-footer-bottom p { margin: 0; max-width: 75ch; }
.fm-payment-labels {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

@media (max-width: 53.124rem) {
  body.admin-bar .fm-masthead { top: 46px; }
  /* R5-UX-05 — the compact header (the menu-toggle layout, from 850px
   * down) carries a slightly more modest enlargement: 17rem (272px)
   * instead of 18rem, because the row now has to hold the logo, the
   * brand note is gone and the menu button shares the same row. */
  .fm-masthead {
    --fm-logo-width: min(17rem, calc(100% - var(--fm-masthead-toggle-width) - var(--fm-masthead-gap)));
  }
  .fm-utility-bar > p { display: none; }
  .fm-utility-bar { justify-content: flex-end; }
  .fm-brand-row { min-height: 4.5rem; }
  .fm-brand-note { display: none; }
  .fm-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .fm-primary-navigation { display: none; }
  .fm-primary-navigation[data-open="true"] { display: block; }
  .fm-primary-menu { display: grid; gap: 0; padding-block: .4rem 1rem; }
  .fm-primary-menu a { min-height: 3rem; border-bottom: 1px solid var(--fm-rule); }
  .fm-primary-menu > li > a::after { display: none; }
  .fm-primary-menu .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; display: grid; border: 0; padding: 0 0 .5rem 1rem; background: transparent; }
  .fm-primary-menu .sub-menu a { min-height: 2.5rem; font-size: .78rem; }
  .fm-page-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .fm-post-grid { grid-template-columns: 1fr 1fr; }
  .fm-footer-brand { flex-wrap: wrap; gap: 1rem; padding-bottom: 1.25rem; }
  .fm-footer-tagline { font-size: 1.35rem; }
}
@media (max-width: 40rem) {
  .fm-utility-bar nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .fm-post-grid { grid-template-columns: 1fr; }
  .fm-footer-row { grid-template-columns: 1fr; gap: .35rem; padding-block: 1rem; }
  .fm-footer-row > .fm-footer-label { padding-top: 0; }
  .fm-footer-row-nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .fm-footer-bottom { flex-direction: column; align-items: flex-start; }
  .fm-payment-labels { justify-content: flex-start; }
}
@media (max-width: 25rem) {
  /* R5-UX-05 — on the narrowest phones the brand row has no slack at
   * all: the logo, the row gap and the 3.5rem menu button exactly fill
   * the 320px row. The gap between the lockup and the menu button is
   * tightened from 1.25rem to 0.875rem so the enlarged lockup has
   * room, and the lockup expression follows the gap, so the row still
   * adds up exactly and nothing overflows. The footer lockup is
   * untouched: it reads the :root value, not this one. */
  .fm-masthead {
    --fm-masthead-gap: 0.875rem;
    --fm-logo-width: min(17rem, calc(100% - var(--fm-masthead-toggle-width) - var(--fm-masthead-gap)));
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; }
}
