/* Paper, ink, navy for headings and actions, one deep rose accent.
   Atkinson Hyperlegible for body text because many of Gloria's visitors are older readers. */
:root {
  --paper: #f6f1e8;
  --paper-2: #ede5d8;
  --field: #fffdf9;
  --ink: #2a2520;
  --muted: #5a5249;
  --navy: #1f3a73;
  --rose: #9c3d55;
  --rule: #d9cfbf;
  --rule-2: #cbbfad;
  --border: #8c8174;
  --photo: #e4dccd;
  --error: #8a2a2a;
  --serif: Lora, Georgia, serif;
  --sans: 'Atkinson Hyperlegible', Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.65; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { color: var(--rose); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rose); outline-offset: 3px;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 5vw; padding-right: 5vw; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1em; top: 1em; background: var(--field); padding: 0.5em 1em; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 0.6em 2em; align-items: baseline; justify-content: space-between; padding-top: 1.1em; padding-bottom: 1.1em; }
.brand { text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.55em; }
.brand-sub { color: var(--muted); margin-left: 0.6em; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2em 1.4em; }
.nav a { display: inline-block; padding: 0.5em 0; font-weight: 700; text-decoration: none; }
.nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
.title { font-size: clamp(2em, 4.2vw, 3em); line-height: 1.12; color: var(--navy); text-wrap: balance; }
.heading { font-size: clamp(1.6em, 3vw, 2.1em); line-height: 1.2; color: var(--navy); }
.subheading { font-size: 1.35em; line-height: 1.3; }
.lead { font-size: 1.12em; }
.muted { color: var(--muted); }
p { margin: 0.8em 0 0; }

/* Sections */
.section { padding: clamp(2.5em, 6vw, 4.5em) 0; }
.section--tint { background: var(--paper-2); }
.section--tight-top { padding-top: 0; }
.rule-top { border-top: 1px solid var(--rule); padding-top: clamp(2.5em, 5vw, 4em); }
.split { display: flex; flex-wrap: wrap; gap: clamp(2em, 5vw, 4.5em); align-items: flex-start; }
.split--center { align-items: center; }
.split > .col-photo { flex: 1 1 320px; max-width: 460px; }
.split > .col-photo--wide { flex: 1 1 380px; max-width: 520px; }
.split > .col-text { flex: 1 1 420px; max-width: 34em; }
.push-down { padding-top: clamp(0em, 3vw, 2.5em); }

/* Photos */
.photo { margin: 0; background: var(--photo); border-radius: 2px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.photo-missing { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5em; color: #4a4239; }

/* Home: two ways in. The second column sits lower so the pair reads like photos on a table. */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2.5em 4em; margin-top: 1.4em; }
.door h3 { margin-top: 0.9em; font-size: 1.5em; }
.door p { margin: 0.2em 0 0.6em; }
.door--low { padding-top: clamp(0em, 4vw, 3.5em); }
.strong-link { font-weight: 700; }

/* Forms */
.form { display: grid; gap: 1em; max-width: 520px; }
.field { display: grid; gap: 0.3em; }
.field label, .legend { font-weight: 700; }
input[type='text'], input[type='tel'], input[type='email'], input[type='date'], input[type='number'], select, textarea {
  font: inherit; padding: 0.65em 0.8em; border: 1.5px solid var(--border); border-radius: 4px; background: var(--field); color: var(--ink); width: 100%;
}
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 0.6em; }
legend { font-weight: 700; margin-bottom: 0.5em; padding: 0; }
.choice { display: flex; gap: 0.7em; align-items: flex-start; cursor: pointer; }
.choice input { width: 1.3em; height: 1.3em; margin-top: 0.2em; accent-color: var(--navy); flex: none; }
.hint { display: block; color: var(--muted); font-weight: 400; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { justify-self: start; display: inline-block; font: inherit; font-weight: 700; padding: 0.75em 1.4em; min-height: 48px; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 4px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #172c58; color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--pressed { background: var(--navy); color: #fff; }
.linkbtn { font: inherit; min-height: 44px; padding: 0 0.4em; background: transparent; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; }

.notice { margin: 0; padding: 0.9em 1em; background: var(--paper); border-radius: 4px; }
.section--tint .notice { background: var(--paper); }
.section:not(.section--tint) .notice { background: var(--paper-2); }
.error { margin: 0; color: var(--error); font-weight: 700; }

/* Contact */
.contact-big { font-size: 1.5em; font-weight: 700; margin: 0; }

/* Shop */
.filters { display: flex; flex-wrap: wrap; gap: 0.4em 1.6em; border-bottom: 1px solid var(--rule); margin-top: 1.4em; }
.filters button { font: inherit; font-weight: 700; min-height: 48px; padding: 0 0.1em; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--navy); cursor: pointer; }
.filters button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--rose); }
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 2.6em 2.2em; margin-top: 1.6em; }
.piece { display: flex; flex-direction: column; }
.piece .note { margin: 0.2em 0 0.8em; color: var(--muted); flex: 1; }
.piece .btn { align-self: flex-start; }
.state-label { margin: 0; font-weight: 700; color: var(--rose); }

/* The menu-card leader: name, dotted line, price. Borrowed from tea-room menus. */
.leader { display: flex; align-items: baseline; gap: 0.5em; margin-top: 0.8em; }
.leader .name { font-family: var(--serif); font-weight: 600; font-size: 1.3em; line-height: 1.25; margin: 0; }
.leader .dots { flex: 1; min-width: 1.5em; border-bottom: 2px dotted #b3a899; transform: translateY(-0.3em); }
.leader .price { white-space: nowrap; font-weight: 700; }

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; gap: 2.5em 4em; }
.cart-main { flex: 1 1 440px; max-width: 600px; }
.cart-side { flex: 1 1 280px; max-width: 26em; }
.cart-side h3 { font-size: 1.25em; margin-top: 1.4em; }
.cart-side h3:first-child { margin-top: 0; }
.cart-list { margin: 1em 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.cart-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 1em; padding: 0.7em 0; border-bottom: 1px solid var(--rule-2); }
.cart-list .grow { flex: 1 1 12em; }
.total { display: flex; justify-content: space-between; font-size: 1.15em; font-weight: 700; margin: 0.8em 0 1.4em; }
.panel { margin-top: 1.2em; padding: 1em 1.1em; background: var(--paper); border-radius: 4px; }
.panel ol { margin: 0.4em 0 0; padding-left: 1.3em; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.8em; }

/* Tea page */
.help { margin: 0; border-top: 1px solid var(--rule); }
.help div { padding: 0.7em 0; border-bottom: 1px solid var(--rule); }
.help dt { font-weight: 700; }
.help dd { margin: 0.1em 0 0; }
.menu { max-width: 760px; margin: 0 auto; border-top: 3px double var(--border); border-bottom: 3px double var(--border); padding: 1.8em 0 1.4em; }
.menu .heading { text-align: center; }
.menu-item { padding: 1em 0 1.2em; border-bottom: 1px solid var(--rule-2); }
.menu-item .leader .name { font-size: 1.4em; }
.menu-item .visits { margin: 0.15em 0 0; font-family: var(--serif); font-style: italic; color: var(--muted); }
.menu-item p.desc { margin: 0.3em 0 0.5em; }
.center { text-align: center; }
.narrow { max-width: 620px; margin: 0 auto; }

/* Footer */
.site-footer { padding: 1.6em 0; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5em 2em; justify-content: space-between; }

@media (max-width: 520px) {
  body { font-size: 18px; }
  .brand-sub { display: block; margin-left: 0; }
}
.help-heading { margin: 1.8em 0 0.6em; }
