/* Rosie & Bean — site styles
   Palette: warm cream, toasted wheat, deep brown.
   Type: Fraunces (headings), Inter (body).
*/

:root {
  --bg:           #f4ead9;
  --bg-warm:      #ecdfc4;
  --bg-deep:      #e3d3b3;
  --wheat:        #c8956d;
  --wheat-deep:   #a6704a;
  --brown:        #2d1a0e;
  --brown-soft:   #5c3d24;
  --brown-faint:  rgba(45, 26, 14, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Account for the sticky-feeling header offset when jumping to anchors */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain — barely there, keeps it from feeling flat without going twee */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--wheat);
  transition: text-decoration-color 0.2s ease;
}
a:hover { text-decoration-color: var(--brown); }

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  color: var(--brown-soft);
  font-style: italic;
}

/* ---------- Layout ---------- */

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(40px, 7vw, 88px) 0; }

.warm { background: var(--bg-warm); }

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

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--brown-faint);
}
.site-header .shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--brown);
}
.brand .amp {
  font-style: italic;
  color: var(--wheat-deep);
  font-weight: 400;
  margin: 0 1px;
}
.nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--brown-soft);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--brown); border-bottom-color: var(--wheat); }
.nav a[aria-current="page"] { color: var(--brown); border-bottom-color: var(--brown); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.hero-text {
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero h1 {
  margin: 0 0 18px;
  max-width: 18ch;
}
.hero .lead { max-width: 38ch; margin-bottom: 28px; }

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--brown);
  background: var(--brown);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.06s ease;
}
.btn:hover { background: var(--wheat-deep); border-color: var(--wheat-deep); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: transparent;
  color: var(--brown);
}
.btn-secondary:hover { background: var(--bg-warm); color: var(--brown); border-color: var(--brown); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Specials block (the easy-to-edit part) ---------- */

.specials {
  background: var(--bg-warm);
  border-top: 1px solid var(--brown-faint);
  border-bottom: 1px solid var(--brown-faint);
}
.specials-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 720px) {
  .specials-inner {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
}
.specials-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--wheat-deep);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 6px 0 4px;
}
.specials h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 30px);
}
.specials-week {
  font-size: 14px;
  color: var(--brown-soft);
  margin: 0 0 16px;
  font-style: italic;
}
.specials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.specials-list li {
  padding: 18px 0 20px;
  border-top: 1px dashed var(--brown-faint);
}
.specials-list li:last-child { border-bottom: 1px dashed var(--brown-faint); }
.specials-list .day {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  margin: 0 0 6px;
  font-weight: 500;
}
.specials-list .name {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--brown);
  margin: 0 0 4px;
  line-height: 1.2;
}
.specials-list .note {
  color: var(--brown-soft);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}
.specials-foot {
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--brown-faint);
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown-soft);
  font-size: 15px;
  text-align: center;
  line-height: 1.45;
}

/* ---------- "What's in the case" — regular lineup ---------- */

.lineup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 36px;
}
@media (min-width: 640px) {
  .lineup { grid-template-columns: 1fr 1fr; }
}
.lineup-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: baseline;
}
.lineup-item .dot {
  width: 6px;
  height: 6px;
  background: var(--wheat);
  border-radius: 50%;
  margin-top: 10px;
  margin-left: 8px;
}
.lineup-item h4 { margin: 0 0 2px; font-family: var(--serif); font-weight: 500; }
.lineup-item p { margin: 0; color: var(--brown-soft); font-size: 15px; }

/* ---------- About page layout ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; }
}
/* On desktop, swap the visual order so the image sits on the left.
   The HTML keeps text-first for source order; .flip only reorders the columns. */
@media (min-width: 760px) {
  .about-grid.flip > div:first-child { order: 2; }
  .about-grid.flip > div:last-child  { order: 1; }
}
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.bakers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 540px) {
  .bakers { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.baker {
  border-top: 1px solid var(--brown-faint);
  padding-top: 18px;
}
.baker h3 { margin: 0 0 4px; }
.baker .role {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wheat-deep);
  margin: 0 0 10px;
  font-weight: 500;
}
.baker p { margin: 0; color: var(--brown-soft); font-size: 15px; }

/* ---------- Contact / Find us ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: 1.15fr 1fr; }
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.fact {
  border-top: 1px solid var(--brown-faint);
  padding-top: 16px;
}
.fact .k {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wheat-deep);
  margin: 0 0 6px;
  font-weight: 500;
}
.fact .v {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--brown);
  line-height: 1.4;
}
.fact .v a { color: var(--brown); }
.fact .small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brown-soft);
  margin-top: 4px;
  display: block;
}

/* ---------- Visit block + shared hours list ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 720px) {
  .visit-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px); }
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brown);
  line-height: 1.35;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--brown-faint);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .closed {
  color: var(--brown-soft);
  font-style: italic;
}
.hours-note {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown-soft);
  font-size: 15px;
  line-height: 1.5;
}

.fact .v-note {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brown-soft);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  border-left: 2px solid var(--wheat);
  padding-left: 14px;
}
@media (max-width: 380px) {
  .hours-list { font-size: 16px; }
  .hours-list li { gap: 10px; }
}

/* ---------- Form ---------- */

form.contact-form {
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wheat-deep);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 16px;
  color: var(--brown);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--brown);
  padding: 10px 2px;
  border-radius: 0;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
.field textarea {
  border: 1.5px solid var(--brown);
  padding: 12px;
  border-radius: 2px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.field .select-wrap { position: relative; }
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 28px;
  cursor: pointer;
}
.field .select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--brown);
  border-bottom: 1.5px solid var(--brown);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--wheat-deep);
}
.form-note {
  font-size: 14px;
  color: var(--brown-soft);
  margin: -4px 0 4px;
}
.form-status {
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 2px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: var(--bg-warm); color: var(--brown); border-left: 3px solid var(--wheat-deep); }
.form-status.error { background: #f1d9c8; color: #5b2410; border-left: 3px solid #a64423; }
.form-status.sending { background: var(--bg-warm); color: var(--brown-soft); border-left: 3px solid var(--brown-faint); }

/* ---------- Wholesale (contact page) ---------- */

.wholesale {
  border-top: 1px solid var(--brown-faint);
  padding: clamp(40px, 6vw, 72px) 0;
}
.wholesale-inner {
  max-width: 56ch;
}
.wholesale h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 14px;
}
.wholesale p {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.6;
}
.wholesale p:last-of-type { margin-bottom: 22px; }
.wholesale .btn { margin-top: 4px; }

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

.site-footer {
  border-top: 1px solid var(--brown-faint);
  padding: 36px 0 48px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--brown-soft);
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--brown-soft); }
.site-footer-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--brown-faint);
  font-size: 13px;
  color: var(--brown-soft);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.muted { color: var(--brown-soft); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat-deep);
  font-weight: 500;
  margin-bottom: 14px;
}

.divider {
  width: 48px;
  height: 1.5px;
  background: var(--wheat);
  border: 0;
  margin: 18px 0 24px;
}

/* Large display quote — used for the founder pull-quote on the about page. */
.pullquote {
  margin: 32px 0 8px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--wheat);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--brown);
}
.pullquote p { margin: 0 0 12px; }
.pullquote footer {
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--brown-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Today's hours strip (homepage) ---------- */
.today-strip {
  background: var(--brown);
  color: var(--bg);
  font-size: 14px;
  padding: 9px 0;
  text-align: center;
}
.today-strip .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.today-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}
.today-day {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bg);
}
.today-hours {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bg);
}
.today-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wheat);
  vertical-align: 2px;
}
.today-status.closed { background: #a64423; }

/* ---------- Find us nav link (one tap from the top) ---------- */
.nav-cta {
  color: var(--brown);
  font-weight: 500;
  border-bottom-color: var(--wheat);
}
.nav-cta:hover { border-bottom-color: var(--brown); }

/* ---------- Compact hero on mobile (so specials stay near the top) ---------- */
@media (max-width: 720px) {
  .hero-text { padding: 24px 0 32px; }
  .hero .cta-row { margin-top: 20px; }
}

/* ---------- Tighter header on very narrow phones ---------- */
@media (max-width: 420px) {
  .site-header .shell { gap: 10px; }
  .nav { gap: 14px; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
