/* Saltmarsh Bakehouse — mobile-first stylesheet.
   Palette and type scale per the approved UX/UI specification (##2556). */

:root {
  --surface: #FAF6EF;
  --ink: #2E2620;
  --accent: #8A5A2B;
  --placeholder-fill: #E8E1D5;
  --placeholder-label: #6B6152;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); margin: 0.5em 0; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }

a { color: var(--accent); }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--placeholder-fill);
  position: relative;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--placeholder-fill);
}

.site-nav.nav-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: block;
  min-height: 44px;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
}

.site-nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
}

/* ---------- Main ---------- */

main {
  padding: 1rem;
  max-width: 1080px;
  margin: 0 auto;
}

.hero { margin-bottom: 2rem; }
.hero p { margin: 0.5em 0; }

section { margin-bottom: 2rem; }

/* Placeholder image blocks: fixed aspect ratio, labelled. */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder-fill);
  color: var(--placeholder-label);
  font-size: 14px;
  text-align: center;
  padding: 0.5rem;
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--placeholder-fill);
  padding: 0.75rem;
}
.card h3 { font-size: 18px; }
.card p { margin: 0.25em 0 0; }

.pointer-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pointer-strip a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.pointer-strip a:hover { text-decoration: underline; }

.placeholder-note {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}
.placeholder-mark { color: var(--placeholder-label); font-size: 0.85em; }
.placeholder-copy { color: var(--ink); }

/* Daily Breads list */
.bread-list { list-style: none; margin: 1rem 0; padding: 0; }
.bread-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--placeholder-fill);
}
.bread-name { flex: 1 1 auto; }
.bread-price { flex: 0 0 auto; color: var(--accent); font-weight: 600; }

/* Visit page */
table { border-collapse: collapse; width: 100%; max-width: 420px; }
th, td { text-align: left; padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--placeholder-fill); }
address { font-style: normal; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--placeholder-fill);
  padding: 1.25rem 1rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  font-size: 15px;
}
.footer-phone a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  font-size: 18px;
  font-weight: 600;
}
.footer-copy { color: var(--placeholder-label); }

/* ---------- Tablet: 768-1023px ---------- */

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border-bottom: 0;
    background: transparent;
  }
  .site-nav ul { flex-direction: row; padding: 0; gap: 0.25rem; }
  .site-nav .nav-phone { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .bread-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .pointer-strip { flex-direction: row; gap: 2rem; }
}

/* ---------- Desktop: >=1024px ---------- */

@media (min-width: 1024px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .ratio-16-9.desktop-16-9.mobile-4-3 { aspect-ratio: 16 / 9; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile hero crop */
@media (max-width: 1023px) {
  .mobile-4-3 { aspect-ratio: 4 / 3; }
}
