[hidden] { display: none !important; }

:root {
  --cream: #fbf3e2;
  --paper: #fffaf0;
  --crust: #a8401f;
  --crust-deep: #842f14;
  --cocoa: #3f2110;
  --cocoa-soft: #6c4a33;
  --butter: #f4c56b;
  --jam: #c5352a;
  --line: #e4d2ae;
  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--cocoa); background: var(--cream); font: 400 17px/1.6 var(--body); }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--crust); }
svg use { pointer-events: none; }
h1, h2, h3, .logo, .foot-logo, .thanks-h { font-family: var(--display); font-weight: 400; }

/* The awning: stripes plus a scalloped edge, CSS only */
.awning { height: 44px; position: relative; background: repeating-linear-gradient(90deg, var(--crust) 0 48px, var(--paper) 48px 96px); border-bottom: 3px solid var(--cocoa); }
.awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; margin-top: 3px; background:
    radial-gradient(circle at 24px -8px, var(--crust) 23px, transparent 24px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 72px -8px, var(--paper) 23px, transparent 24px) 0 0 / 96px 16px repeat-x; }

.site-head { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; width: min(1160px, 100% - 44px); margin: 32px auto 0; }
.logo { font-size: 30px; line-height: 1; color: var(--crust); text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--butter); -webkit-text-stroke: 1px var(--crust-deep); }
.site-head nav { display: flex; gap: 6px; align-items: center; }
.site-head nav a { color: var(--cocoa); font-weight: 500; font-size: 16px; text-decoration: none; padding: 7px 13px; border-radius: 99px; }
.site-head nav a:hover { background: #f4e4c4; }
.site-head nav a[aria-current="page"] { background: var(--cocoa); color: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--jam); outline-offset: 2px; }

.eyebrow { font-style: italic; font-size: 17px; color: var(--crust); }
.lede { font-size: 19px; line-height: 1.55; }

.btn { display: inline-block; font: 700 17px/1.2 var(--body); text-decoration: none; text-align: center; color: var(--paper); background: var(--crust); border: 2.5px solid var(--cocoa); border-radius: 12px; padding: 13px 22px; box-shadow: 0 4px 0 var(--cocoa); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--cocoa); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn.ghost { color: var(--cocoa); background: var(--paper); }
.btn:disabled { opacity: .65; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Home: hero and the shop window */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; width: min(1160px, 100% - 44px); margin: 30px auto 0; }
.hero h1 { font-size: clamp(50px, 6.8vw, 92px); line-height: .98; color: var(--crust-deep); margin: 8px 0 18px; }
.open-now { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 5px 13px; font-weight: 500; font-size: 15.5px; background: var(--paper); border: 2px solid var(--cocoa); border-radius: 99px; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #6d8a37; }
.open-now.closed::before { background: var(--jam); }

.window { padding: 16px; background: var(--crust); border: 3px solid var(--cocoa); border-radius: 240px 240px 18px 18px; box-shadow: 0 10px 0 var(--cocoa); }
.glass { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; padding: 104px 22px 16px; background: radial-gradient(120% 70% at 50% 8%, #fff4d6, #f8dca3 58%, #efc27c); border: 3px solid var(--cocoa); border-radius: 224px 224px 8px 8px; overflow: hidden; }
.glass-sign { position: absolute; top: 40px; left: 50%; transform: translateX(-50%) rotate(-3deg); font: 400 21px/1.02 var(--display); text-align: center; color: var(--crust-deep); }
.shelf { display: flex; justify-content: space-evenly; align-items: flex-end; padding: 0 6px; border-bottom: 9px solid var(--cocoa); margin-bottom: 22px; border-radius: 2px; }
.shelf.three { margin-bottom: 4px; }
.b-loaf { width: 96px; height: 64px; }
.b-croi { width: 82px; height: 55px; }
.b-cookie { width: 50px; height: 50px; }
.b-cake { width: 136px; height: 125px; }
.b-bag { width: 170px; height: 53px; }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: min(1160px, 100% - 44px); margin: 84px auto 0; }
.hours-card, .address-card { background: var(--paper); border: 3px solid var(--cocoa); border-radius: 18px; padding: 28px 30px; }
.visit h2 { font-size: 32px; line-height: 1.1; color: var(--crust-deep); margin-bottom: 14px; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours th, .hours td { padding: 10px 8px; border-bottom: 1.5px dashed var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { background: #fbe6b7; font-weight: 700; }
.hours tr.today th { border-radius: 8px 0 0 8px; }
.hours tr.today td { border-radius: 0 8px 8px 0; }
address { font-style: normal; font-size: 21px; line-height: 1.32; font-weight: 500; }
.address-card p { margin-top: 6px; }
.directions { color: var(--cocoa-soft); font-style: italic; }
.map { display: block; width: 100%; height: auto; margin-top: 16px; }

.favorites { width: min(1160px, 100% - 44px); margin: 84px auto 0; }
.sec-head { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; color: var(--crust-deep); }
.more { font-weight: 700; text-underline-offset: 4px; }
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fav-grid article { background: var(--paper); border: 3px solid var(--cocoa); border-radius: 18px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.fav-art { width: 136px; height: 104px; margin-bottom: 14px; }
.fav-grid h3 { font-size: 25px; line-height: 1.12; }
.fav-grid p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.fav-grid .price { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 18px; color: var(--crust); }

.story { position: relative; margin-top: 92px; padding: 72px 22px; color: var(--paper); background: var(--crust-deep); }
.story blockquote { width: min(820px, 100%); margin: 0 auto; }
.story p { font: 400 clamp(26px, 3.1vw, 38px)/1.24 var(--display); }
.story footer { margin-top: 18px; font-style: italic; color: #f7d9a4; }
.story-wheat { position: absolute; width: 70px; height: 160px; left: 5%; top: 50%; transform: translateY(-50%) rotate(-12deg); color: #c1582d; }

.site-foot { background: var(--cocoa); color: #f2e2c4; padding: 42px 0 56px; position: relative; overflow: hidden; }
.foot-wheat { position: absolute; right: 8%; top: 18px; width: 56px; height: 128px; color: #5e3620; transform: rotate(10deg); }
.foot-cols { position: relative; width: min(1160px, 100% - 44px); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px 40px; font-size: 16px; line-height: 1.55; }
.foot-logo { font: 400 26px/1.1 var(--display); color: var(--butter); margin-bottom: 8px; }
.foot-h { font-weight: 700; color: var(--butter); margin-bottom: 4px; }
.site-foot a { color: inherit; }

/* Menu: one big board */
.menu-page { width: min(1160px, 100% - 44px); margin: 34px auto 72px; }
.menu-title { max-width: 680px; }
.menu-title h1 { font-size: clamp(56px, 8vw, 104px); line-height: .98; color: var(--crust-deep); margin: 4px 0 14px; }
.menu-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
.menu-sec { position: relative; background: var(--paper); border: 3px solid var(--cocoa); border-radius: 18px; padding: 26px 28px 24px; }
.menu-sec h2 { font-size: 33px; line-height: 1.05; color: var(--crust-deep); padding-right: 92px; margin-bottom: 12px; }
.menu-art { position: absolute; top: -12px; right: 18px; width: 92px; height: 62px; }
.art-cake { height: 84px; top: -26px; }
.items li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.item { min-width: 0; }
.item-name { font-weight: 500; }
.item small { display: block; font-size: 14.5px; line-height: 1.35; font-style: italic; color: var(--cocoa-soft); }
.leader { flex: 1; min-width: 18px; border-bottom: 2px dotted #b79a72; transform: translateY(-4px); }
.item-price { font-weight: 700; white-space: nowrap; }
.cakes { grid-column: 1 / -1; background: #fbe6b7; }
.cakes .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.cakes-note { font-size: 15.5px; line-height: 1.45; padding-right: 8px; margin-bottom: 8px; }
.cakes .item small a { white-space: nowrap; font-weight: 700; font-style: normal; }
.cakes .btn { margin-top: 16px; }
.allergens { max-width: 720px; margin-top: 28px; font-size: 15.5px; line-height: 1.5; font-style: italic; color: var(--cocoa-soft); }

/* Order: a slip of paper */
.order-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; width: min(1160px, 100% - 44px); margin: 34px auto 80px; }
.order-intro h1 { font-size: clamp(50px, 6.2vw, 84px); line-height: .98; color: var(--crust-deep); margin: 6px 0 16px; }
.steps { margin-top: 24px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 16px 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font: 400 17px/1 var(--display); color: var(--paper); background: var(--crust); border-radius: 50%; }
.order-cake { display: block; width: 170px; height: 156px; margin-top: 12px; }

.slip { background: var(--paper) repeating-linear-gradient(transparent 0 35px, #f1e4c9 35px 36px); border: 3px solid var(--cocoa); border-radius: 6px; padding: 22px 28px 28px; box-shadow: 8px 8px 0 var(--butter); transform: rotate(.35deg); }
.slip-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 500; font-style: italic; color: var(--cocoa-soft); border-bottom: 2px solid var(--cocoa); padding-bottom: 8px; }
.slip h2 { font-size: 34px; color: var(--crust-deep); margin: 14px 0 6px; }
label { display: block; font-weight: 700; font-size: 16px; margin: 14px 0 5px; }
input, textarea { display: block; width: 100%; font: 400 17px/1.4 var(--body); color: var(--cocoa); background: #fff; border: 2px solid var(--cocoa); border-radius: 9px; padding: 11px 12px; }
input[type="date"] { min-height: 49px; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; }
::placeholder { color: #a78e73; font-style: italic; }
input.invalid, textarea.invalid { border-color: var(--jam); background: #fff3ef; }
.hint { font-size: 14px; line-height: 1.4; color: var(--cocoa-soft); margin-top: 6px; }
.hint.bad { color: #a31f15; font-weight: 500; }
#order-form .btn { width: 100%; margin-top: 18px; }
.form-error { margin-top: 14px; padding: 9px 12px; font-size: 15px; line-height: 1.4; color: #8b1a11; background: #fde4dd; border-left: 4px solid var(--jam); }

.thanks:focus { outline: none; }
.thanks-art { width: 110px; height: 74px; margin-top: 6px; }
.thanks-h { font-size: 36px; line-height: 1.08; color: var(--crust-deep); margin: 6px 0 10px; overflow-wrap: anywhere; }
.thanks-list { margin: 16px 0 20px; }
.thanks-list > div { padding: 9px 0; border-top: 1.5px dashed #c8ad82; }
.thanks-list dt { font-size: 14px; font-style: italic; color: var(--cocoa-soft); }
.thanks-list dd { font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }

.nf { width: min(700px, 100% - 44px); margin: 56px auto 96px; text-align: center; }
.nf-art { width: 120px; height: 120px; }
.nf h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; color: var(--crust-deep); margin: 14px 0; }
.nf .cta-row { justify-content: center; }

@media (max-width: 900px) {
  .hero, .order-page { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .window { width: min(460px, 100%); margin-inline: auto; }
  .visit { grid-template-columns: minmax(0, 1fr); margin-top: 60px; }
  .fav-grid { grid-template-columns: minmax(0, 1fr); }
  .fav-grid article { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .fav-art { width: 104px; height: 80px; grid-row: span 3; margin: 0; }
  .fav-grid .price { padding-top: 6px; margin-top: 2px; }
  .favorites { margin-top: 60px; }
  .menu-board { grid-template-columns: minmax(0, 1fr); }
  .cakes .items { grid-template-columns: minmax(0, 1fr); }
  .slip { transform: none; box-shadow: 5px 5px 0 var(--butter); }
  .order-cake { display: none; }
  .story-wheat { display: none; }
  .story { margin-top: 60px; padding: 52px 22px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .site-head { margin-top: 26px; }
  .logo { font-size: 27px; }
  .site-head nav { width: 100%; gap: 2px; margin-left: -8px; }
  .site-head nav a { padding: 6px 10px; font-size: 15.5px; }
  .glass { min-height: 400px; padding: 84px 12px 12px; }
  .glass-sign { top: 30px; font-size: 18px; }
  .b-loaf { width: 76px; height: 51px; }
  .b-croi { width: 62px; height: 42px; }
  .b-cookie { width: 36px; height: 36px; }
  .b-cake { width: 104px; height: 95px; }
  .b-bag { width: 128px; height: 40px; }
  .hours-card, .address-card { padding: 22px 18px; }
  .menu-sec { padding: 24px 18px 20px; }
  .slip { padding: 18px 18px 24px; }
  .btn { width: 100%; }
}
