/* Page layout on top of the design system's bundle.css. Keep this small: components live in bundle.css. */

html { background: var(--paper); }
[hidden] { display: none !important; }
body { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--forest); color: var(--on-forest); border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* Containers and sections */
.container { max-width: var(--content-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.text { max-width: var(--text-width); }
.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--story { padding: var(--space-9) 0; }
.band { padding: var(--space-8) 0; }
.band--cream { background: var(--cream); }
.band--forest { background: var(--forest); color: var(--on-forest); }
.on-dark { color: var(--on-forest) !important; }
.rule-top { border-top: 1px solid var(--rule); padding-top: var(--space-7); }
.rule-bottom { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-4); }
.stack { display: grid; gap: 12px; align-content: start; }
.stack--lg { gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; align-items: end; gap: 12px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 32px 64px; }
.grid-2--center { align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.lede { font: 400 21px/32px var(--font-serif); font-variation-settings: 'opsz' 20; max-width: var(--text-width); text-wrap: pretty; }
.h1 { font-size: 44px; line-height: 50px; font-variation-settings: 'opsz' 72; }
.h2 { font-size: 32px; line-height: 38px; font-variation-settings: 'opsz' 48; }
.h3 { font-size: 24px; line-height: 30px; font-weight: 600; font-variation-settings: 'opsz' 24; }
.small { font-size: 16px; line-height: 24px; }
.crumbs { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: flex; gap: 8px; }
.crumbs a { color: var(--ink-muted); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-plain li { display: flex; gap: 12px; font-size: 16px; line-height: 24px; }
.list-plain li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wheat); margin-top: 9px; flex-shrink: 0; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); text-decoration: none; color: var(--forest); }
.link-card:hover { border-color: var(--forest); }
.link-card strong { font: 600 20px/26px var(--font-serif); display: block; }
.link-card small { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.link-card.link-card--cream { background: var(--cream); }

/* Hero: the homepage photo with the paper panel. bundle.css covers the panel. */
.smf-hero { border-radius: var(--radius-md); }
/* No hero photo yet: a forest band around the panel instead of a tall empty block. */
.smf-hero.smf-hero--text { min-height: 0; padding-top: 56px; }
@media (max-width: 720px) {
  .smf-hero { min-height: 480px; }
  .smf-hero-copy { padding: 0 16px 24px; }
  .smf-hero-panel { padding: 22px 20px 24px; }
  .container { padding-left: 16px; padding-right: 16px; }
  /* Top and bottom only: shop pages put .section on a .container, which keeps its side gutter. */
  .section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .section--story { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .h1 { font-size: 34px; line-height: 40px; }
  .h2 { font-size: 26px; line-height: 32px; }
}

/* Header: compact on phones, with the Menu button opening the nav as a column. */
@media (max-width: 760px) {
  .smf-header-inner { min-height: 60px; padding: 8px 16px; gap: 12px; flex-wrap: wrap; }
  .smf-lockup img { width: 44px; height: 44px; }
  .smf-lockup-name { font-size: 18px; line-height: 20px; white-space: nowrap; }
  .smf-lockup .smf-circa { display: none; }
  .smf-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .smf-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 0 4px; border-top: 1px solid var(--rule); }
  .smf-nav.is-open { display: flex; }
  .smf-nav a { padding: 0 8px; }
}

/* Product page: photo column and order column */
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 64px; align-items: start; }
.product-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-thumbs .smf-photo { aspect-ratio: 1 / 1; }
.order-card { background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 24px; display: grid; gap: 24px; }
.order-card .smf-options--2, .order-card .smf-options--3 { grid-template-columns: 1fr; }
.order-card .smf-option { background: var(--paper); }
.order-card .smf-option:has(input:checked) { background: var(--paper); }
.order-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.order-total strong { font: 600 28px/32px var(--font-serif); color: var(--forest); }
.order-lines { display: grid; gap: 6px; font-size: 16px; line-height: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.order-lines div { display: flex; justify-content: space-between; gap: 16px; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.price-big { font: 600 28px/32px var(--font-serif); color: var(--forest); }
.price-big small { font: 400 16px/20px var(--font-sans); color: var(--ink-muted); }
.smf-select { appearance: auto; }

/* FAQ */
.faq { display: grid; }
.faq-item { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--rule); }
.faq-item h3 { font-size: 24px; line-height: 30px; font-weight: 600; }
.faq-item p { max-width: var(--text-width); }

/* Restoration */
.building { display: grid; gap: 24px; padding-top: 48px; border-top: 1px solid var(--rule); }
.building:first-of-type { border-top: 0; padding-top: 0; }
.smf-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (max-width: 720px) { .smf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vision stages: bundle.css draws the list; this gives the status its colors */
.smf-stage--planned .smf-stage-dot { border-color: var(--ink-muted); }

/* Timeline */
.timeline-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.entry-photos figure { margin: 0; }

/* Hot sauce label strip */
.sauces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.sauce { display: grid; gap: 10px; background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.sauce img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.sauce h3 { font-size: 20px; line-height: 26px; font-weight: 600; padding: 0 16px; }
.sauce p { font: italic 14px/20px var(--font-serif); color: var(--ink-muted); padding: 0 16px 16px; }

/* Archival photos: black and white */
.smf-photo--archival img { filter: grayscale(1); }

@media print { .smf-header, .smf-footer, .band--forest { display: none; } }

/* Diary months and vision stages are H2 for heading order (WCAG 1.3.1). These mirror the sizes
   bundle.css gives the old H3s, so nothing changes visually. */
.smf-entry-date h2 { font-size: 24px; line-height: 30px; }
.smf-stage h2 { font-size: 20px; line-height: 28px; }
