/* Quarter Loaf (demo café) · Kiwi Site Lab
   White page, espresso text, mustard buttons, sage panels. The menu is a till receipt. */

:root {
  --white: #FFFFFF;
  --espresso: #33241B;
  --mustard: #E3A72F;
  --mustard-dark: #C98E1C;
  --sage: #DDE7D8;
  --sage-deep: #4E6A4A;
  --muted: #6A5B51;
  --paper: #FCFCF9;
  --rule: #E6E1DC;
  --serif: Fraunces, Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--espresso); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 600; font-variation-settings: "SOFT" 100; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin-bottom: 14px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 104px; } }
.small { font-size: .9375rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 16px; background: var(--espresso); color: #fff; }
.skip-link:focus { top: 16px; color: #fff; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--mustard); color: var(--espresso); border: 0; border-radius: 999px; font: 600 1.0625rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.button:hover { background: var(--mustard-dark); color: var(--espresso); }
.text-link { font-weight: 600; color: var(--espresso); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--espresso); text-decoration: none; font: 600 1.375rem/1 var(--serif); font-variation-settings: "SOFT" 100; }
.brand svg { width: 34px; height: 34px; }
.top-links { display: flex; align-items: center; gap: 18px; }
.top-links a { color: var(--espresso); text-decoration: none; font-weight: 500; }
.top-links a:not(.pill) { display: none; }
.top-links a:hover { text-decoration: underline; }
.pill { padding: 10px 16px; border-radius: 999px; background: var(--espresso); color: #fff !important; }
.pill:hover { text-decoration: none !important; background: #4A362A; }
@media (min-width: 720px) { .top-links a:not(.pill) { display: inline; } .top-links { gap: 26px; } }

/* Hero: text and photo side by side, no overlay */
.hero { display: grid; }
.hero-text { padding: 40px var(--gutter) 32px; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); max-width: 14ch; margin-bottom: 18px; }
.hero-text > p { max-width: 40ch; color: var(--muted); margin-bottom: 14px; }
.today { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--sage); color: var(--sage-deep) !important; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; }
.hero-photo img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }
.demo-line { padding: 10px var(--gutter); font-size: .875rem; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: min(86vh, 760px); }
  .hero-text { align-self: center; padding: 56px 48px 56px max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); }
  .hero-photo img { height: 100%; aspect-ratio: auto; }
  .demo-line { grid-column: 1 / -1; padding-left: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); border-top: 1px solid var(--rule); }
}

/* Menu: the receipt */
.menu { background: var(--sage); }
.menu-grid { display: grid; gap: 40px; }
.menu-intro p { max-width: 40ch; margin-bottom: 12px; }
.menu-photo { margin-top: 24px; }
.menu-photo img { border-radius: 12px; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.receipt-wrap { display: flex; justify-content: center; }
.receipt {
  --edge: var(--sage);
  position: relative; width: 100%; max-width: 400px; padding: 34px 26px 40px;
  background: var(--paper); color: #2B2622; font: 400 .9375rem/1.55 var(--mono);
  box-shadow: 0 18px 30px -22px rgba(51,36,27,.55);
}
/* Torn zigzag top and bottom edges */
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: linear-gradient(135deg, var(--edge) 6px, transparent 0), linear-gradient(-135deg, var(--edge) 6px, transparent 0);
  background-size: 12px 12px;
}
.receipt::before { top: 0; }
.receipt::after { bottom: 0; transform: rotate(180deg); }
.r-head { text-align: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed #A49B92; }
.r-name { font-weight: 600; font-size: 1.125rem; letter-spacing: .12em; }
.r-section { margin: 18px 0 6px; font: 600 .9375rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.r-list li { display: flex; gap: 8px; align-items: baseline; }
.r-list li span:first-child { flex: 1; display: flex; gap: 8px; }
.r-list li span:first-child::after { content: ""; flex: 1; border-bottom: 1px dotted #A49B92; transform: translateY(-4px); min-width: 12px; }
.r-list .r-note { color: #6E655D; font-size: .875rem; }
.r-foot { margin-top: 20px; padding-top: 14px; border-top: 1px dashed #A49B92; text-align: center; }
.r-barcode { display: block; height: 40px; margin: 14px auto 0; max-width: 220px; background: repeating-linear-gradient(90deg, #2B2622 0 2px, transparent 2px 4px, #2B2622 4px 5px, transparent 5px 8px, #2B2622 8px 11px, transparent 11px 12px); }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .receipt { padding: 40px 34px 46px; } }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-text p { max-width: 52ch; margin-bottom: 12px; }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 10px; }
@media (min-width: 900px) { .photo-strip { grid-template-columns: repeat(4, 1fr); } }

/* Reviews */
.reviews { background: var(--espresso); color: #F3EEE9; }
.reviews .small { color: #CBBDB3; margin-bottom: 28px; }
.quotes { display: grid; gap: 28px; }
.quotes blockquote p { font: 500 1.375rem/1.35 var(--serif); font-variation-settings: "SOFT" 100; margin-bottom: 8px; }
.quotes footer { color: #CBBDB3; font-size: .9375rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Visit */
.visit-grid { display: grid; gap: 32px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin: 8px 0 20px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; color: var(--muted); }
.map { border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); min-height: 320px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; } }

/* Order ahead */
.order { background: var(--sage); }
.order-grid { display: grid; gap: 32px; }
.order-grid > div p { max-width: 40ch; margin-bottom: 12px; }
.order-form { display: grid; gap: 18px; padding: 24px 20px; background: #fff; border-radius: 14px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font: 600 1.25rem/1.2 var(--serif); }
.qty-list { display: grid; gap: 8px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid #CFC6BE; border-radius: 10px; }
.qty input { width: 72px; min-height: 44px; padding: 0 8px; border: 1px solid #B4A99F; border-radius: 8px; font: 500 1.0625rem var(--sans); text-align: center; }
.field-row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #B4A99F; border-radius: 8px; background: #fff; color: var(--espresso); font: 400 1.0625rem var(--sans); }
.field input:focus, .field select:focus, .qty input:focus { outline: 3px solid var(--mustard); outline-offset: 1px; }
.order-form .button { justify-self: start; }
.form-error { min-height: 1.4em; margin-bottom: -8px; color: #A12A1A; font-weight: 600; }
.form-done { padding: 14px 16px; border-radius: 10px; background: var(--sage); color: var(--sage-deep); font-weight: 500; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .order-form { padding: 32px; } }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; } }

/* Footer */
.foot { padding: 40px 0; font-size: .9375rem; color: var(--muted); }
.foot-inner { display: grid; gap: 8px; }
.foot strong { color: var(--espresso); }
.credits { font-size: .875rem; }
