/* Serendipity Coffee • colours and type */
:root {
  --paper: #f7f1e5;
  --ink: #302318;
  --soft-ink: #594838;
  --copper: #805d3e;
  --line: #c6b69b;
  --gold: #d2b28b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--serif);
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(72rem, 86%); margin-inline: auto; }
.skip {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 1;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus { top: .75rem; }
[id] { scroll-margin-block-start: 1rem; }
.star {
  display: inline-block;
  flex: none;
  width: .86rem;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0,62% 36%,100% 50%,62% 62%,50% 100%,37% 63%,0 50%,37% 37%);
}

/* The black masthead matches the unmodified JPEG's background. */
.masthead { background: #000; color: var(--paper); border-bottom: 4px double #ad9274; }
.topline, .footer, .imprint, nav, nav a, .actions, .button, .folio, .announcement, .divider {
  display: flex;
  align-items: center;
}
.topline, .footer { justify-content: space-between; gap: 1rem; }
.topline { min-height: 4.1rem; border-bottom: 1px solid #40382e; }
.imprint { gap: .6rem; font: 600 .72rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.imprint .star { color: var(--gold); width: .95rem; }
nav { gap: clamp(.8rem, 2.6vw, 2.25rem); }
nav a, .footer a { font: .84rem/1.2 var(--sans); text-decoration: none; min-height: 44px; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.welcome {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "intro logo";
  align-items: center;
  column-gap: 4%;
  padding: clamp(2.25rem, 4vw, 4rem) 0 clamp(2.75rem, 4.5vw, 4.5rem);
}
.brand-seal { grid-area: logo; justify-self: center; width: min(100%, 21.5rem); }
.brand-seal img { display: block; width: 100%; height: auto; }
.intro { grid-area: intro; min-width: 0; }
.announcement, .folio, .label {
  font: 650 .68rem/1.4 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.announcement { color: var(--gold); gap: .7rem; }
.announcement span { width: 1.9rem; height: 1px; background: currentColor; }
h1 {
  margin: .95rem 0;
  font-size: clamp(3.6rem, 6.55vw, 6rem);
  line-height: .97;
  letter-spacing: -.055em;
}
h1 em { display: block; font-weight: 400; }
.welcome-note { max-width: 33ch; color: #ddcfc0; font-size: 1.13rem; line-height: 1.47; }
.actions { gap: .75rem; flex-wrap: wrap; margin-top: 1.65rem; }
.button {
  justify-content: center;
  gap: 1.1rem;
  min-height: 2.95rem;
  padding: .72rem 1.15rem;
  border: 1px solid;
  border-radius: 2px;
  text-decoration: none;
  font: 600 .88rem/1.3 var(--sans);
}
.button span { font-size: 1.1em; font-weight: 400; }
.primary { color: #221d15; border-color: var(--paper); background: var(--paper); }
.primary:focus-visible { outline-color: var(--gold); }
.secondary { color: var(--paper); border-color: #8d785f; }
.primary:hover { background: #e2caa9; border-color: #e2caa9; }
.secondary:hover { background: #241f18; border-color: var(--gold); }

/* The menu folio */
.paper { padding-top: clamp(2.2rem, 4.4vw, 4.2rem); }
.menu-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
}
.folio { color: var(--copper); gap: .68rem; }
.folio span { display: inline-flex; align-items: center; gap: .68rem; font-variant-numeric: tabular-nums; }
.folio span::after { content: ""; width: 1.5rem; height: 1px; background: var(--line); }
h2 { font-size: clamp(2.5rem, 4.25vw, 4.1rem); line-height: 1.08; letter-spacing: -.052em; margin: .6rem 0 .65rem; }
.note { font-size: clamp(1.1rem, 1.7vw, 1.38rem); font-style: italic; color: var(--soft-ink); }
.menu-art { width: clamp(9.5rem, 20vw, 16.5rem); margin-inline-end: clamp(0rem, 6vw, 5rem); }
.menu-art svg { display: block; width: 100%; height: auto; }
.menu-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 4rem);
}
.menu-column { min-width: 0; }
.flavors { grid-column: 1 / -1; }
.flavors h3 { display: flex; align-items: baseline; gap: .45rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.flavor-price { color: var(--copper); font: 600 .88rem/1.6 var(--sans); white-space: nowrap; }
.flavor-list { list-style: none; padding: 0; margin-top: .8rem; columns: 4 12rem; column-gap: 2rem; }
.flavor-list li { position: relative; break-inside: avoid; padding: .15rem 0 .15rem .85rem; overflow-wrap: anywhere; }
.flavor-list li::before { content: ""; position: absolute; top: .85rem; left: 0; width: 3px; height: 3px; transform: rotate(45deg); background: var(--copper); }
.category-note { color: var(--soft-ink); font-size: 1rem; font-style: italic; margin-top: .52rem; }
.category { min-width: 0; margin-top: 1.6rem; }
.category h3 { font-size: 1.65rem; border-bottom: 1px solid var(--copper); padding-bottom: .25rem; overflow-wrap: anywhere; }
.item-list { list-style: none; padding: 0; }
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dotted var(--line);
}
.item-name { overflow-wrap: anywhere; font-size: 1.1rem; line-height: 1.35; }
.item-name small { display: block; margin-top: .2rem; font-size: .95rem; color: var(--soft-ink); }
.price { white-space: nowrap; text-align: right; font: 550 .96rem/1.55 var(--sans); font-variant-numeric: tabular-nums; }

.divider { color: var(--copper); gap: .8rem; margin: clamp(1.75rem, 3.3vw, 3rem) 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.divider .star { width: .64rem; }
.details {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 5%;
  padding-bottom: clamp(2.1rem, 4.5vw, 4.4rem);
}
.details h2 { font-size: clamp(2.25rem, 3.3vw, 3.25rem); }
#contact { padding-left: clamp(1.5rem, 4.4vw, 4rem); border-left: 1px solid var(--line); }
.visit-info { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.4rem; margin-top: 1.1rem; }
.visit-info > div, #contact { min-width: 0; overflow-wrap: anywhere; }
.label { font-size: .7rem; letter-spacing: .13em; margin-bottom: .3rem; }
.visit-info p, .contact-note, address, .hours { color: var(--soft-ink); }
address { font-style: normal; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .65rem; padding: .23rem 0; border-bottom: 1px dotted var(--line); }
.hours dd { font-variant-numeric: tabular-nums; }
.detail-link { display: inline-block; padding: .5rem 0; color: var(--ink); }
.footer { border-top: 3px double var(--line); padding-block: .8rem 1.1rem; }
.footer .imprint { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18rem; text-transform: none; letter-spacing: -.03em; }
.footer .star { color: var(--copper); width: .63rem; }
.footer a { display: inline-flex; align-items: center; gap: .6rem; color: var(--soft-ink); }

@media (max-width: 52rem) {
  .wrap { width: 89%; }
  .welcome { column-gap: 1.5rem; }
  .visit-info { grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-width: 39rem) {
  .wrap { width: 90%; }
  .topline { min-height: 2.85rem; flex-wrap: wrap; row-gap: 0; }
  .topline nav { margin-inline-start: auto; }
  .topline .imprint { font-size: .65rem; letter-spacing: .13em; }
  .wide-nav { display: none; }
  .welcome { grid-template-columns: 1fr; grid-template-areas: "logo" "intro"; gap: .9rem; padding: 1.05rem 0 1.6rem; text-align: center; }
  .brand-seal { width: clamp(6.1rem, 28vw, 9.3rem); }
  .announcement, .actions { justify-content: center; }
  .announcement { font-size: .62rem; gap: .6rem; }
  .announcement span, .announcement::after { content: ""; width: 1.25rem; height: 1px; background: currentColor; }
  h1 { font-size: clamp(2.05rem, 8.3vw, 3.25rem); line-height: 1.08; margin: .45rem 0; }
  h1 em { display: inline; }
  .welcome-note { max-width: 32ch; margin-inline: auto; font-size: 1rem; }
  .actions { margin-top: 1rem; gap: .55rem; }
  .button { padding: .6rem .84rem; min-height: 2.8rem; gap: .55rem; font-size: .84rem; }
  .menu-groups { grid-template-columns: minmax(0, 1fr); }
  .flavor-list { columns: 2; column-gap: 1rem; }
  .menu-intro { gap: .7rem; align-items: center; }
  .menu-art { width: clamp(5.3rem, 25vw, 8rem); margin: 0; }
  .note { line-height: 1.4; }
  .folio { font-size: .63rem; gap: .5rem; }
  .folio span { gap: .5rem; }
  .folio span::after { width: 1rem; }
  .details { grid-template-columns: 1fr; gap: 1.8rem; }
  .visit-info { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 1.2rem; }
  #contact { border-left: 0; border-top: 1px solid var(--line); padding: 1.7rem 0 0; }
}
@media (max-height: 28rem) and (min-width: 40rem) {
  .welcome { padding-block: 1rem; }
  .brand-seal { max-width: 11.5rem; }
  h1 { font-size: 3rem; margin-block: .45rem; }
  .actions { margin-top: .7rem; }
}

/* Event inquiries */
.event-divider { margin-top: 0; }
.event-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(2.6rem, 5vw, 5rem);
}
.event-lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.45; max-width: 32ch; }
.event-fine { margin-top: .7rem; color: var(--soft-ink); max-width: 35ch; }
.event-form { position: relative; min-width: 0; padding: clamp(1rem, 2.2vw, 2rem); border: 1px solid var(--line); border-top: 3px double var(--copper); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-bottom: 1.05rem; }
.event-form label { display: block; min-width: 0; font: 600 .85rem/1.4 var(--sans); color: var(--ink); }
.event-form .optional { font-weight: 400; color: var(--soft-ink); }
.event-form input, .event-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: .4rem;
  padding: .6rem .65rem;
  border: 1px solid #95846e;
  border-radius: 2px;
  color: var(--ink);
  background: #fffbf3;
  font: 400 1rem/1.45 var(--sans);
}
/* Let the native date value shrink with the field on iOS and Safari. */
.event-form input[type="date"] { max-inline-size: 100%; }
.event-form input[type="date"]::-webkit-date-and-time-value {
  min-inline-size: 0;
  max-inline-size: 100%;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.event-form input[type="date"]::-webkit-datetime-edit { min-inline-size: 0; padding: 0; }
.event-form textarea { resize: vertical; min-height: 6rem; }
.event-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.form-hint, .form-status { color: var(--soft-ink); font: .85rem/1.5 var(--sans); }
.form-hint { margin-top: .45rem; }
.form-status:not(:empty) { margin-top: .85rem; }
.form-status[data-kind="error"] { color: #842e1a; }
.form-status[data-kind="success"] { color: #295338; font-weight: 600; }
.send-request { margin-top: 1.15rem; background: var(--ink); border: 1px solid var(--ink); color: var(--paper); cursor: pointer; }
.send-request:hover:enabled { background: #503a27; }
.send-request:disabled { background: #e5dac9; color: #665746; border-color: var(--line); cursor: default; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-note + .contact-note { margin-top: .4rem; }
@media (max-width: 46rem) {
  .event-section { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 32rem) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
