/* Café Lumen sample site: a morning paper. White page, Bodoni Moda masthead, asymmetric 12-column grid. */
:root {
  --paper: #ffffff;
  --mist: #eef1f3;
  --ink: #1c2430;
  --ink-hover: #33405a;
  --slate: #556070;
  --line: rgba(28, 36, 48, .14);
  --sun: #f2c04d;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* perfect fourth scale from 16px */
  --text-meta: .75rem;
  --text-secondary: .875rem;
  --text-body: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;

  --motion-200: 200ms;
  --motion-300: 300ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-body)/1.6 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-size: var(--text-body); font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }
.small { font-size: var(--text-secondary); color: var(--slate); }

/* the page grid: a side column, 12 content columns, a side column. Lines 2 and 14 are the content edges. */
.cover, .oven, .menu, .room, .box, .visit, .contact, .footer, .masthead {
  display: grid;
  grid-template-columns: max(var(--gutter), calc((100% - var(--wide)) / 2)) repeat(12, minmax(0, 1fr)) max(var(--gutter), calc((100% - var(--wide)) / 2));
  column-gap: 0;
}
.cover > *, .oven > *, .menu > *, .box > *, .visit > *, .contact > *, .footer > *, .masthead > * { grid-column: 2 / 14; }

/* masthead */
.masthead { padding-block: 1rem .5rem; row-gap: .5rem; align-items: center; }
.sample-line { font-size: var(--text-meta); color: var(--slate); }
.sample-line a { color: var(--slate); }
.nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-secondary); font-weight: 500; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-box { text-decoration: underline !important; }
@media (min-width: 768px) {
  .masthead { padding-block: 1.25rem .25rem; }
  .sample-line { grid-column: 2 / 7; }
  .nav { grid-column: 7 / 14; justify-content: flex-end; }
}

/* cover: the name as a masthead, the hero photo cutting into it */
.cover { padding-block: 1rem 4rem; }
.cover-title { position: relative; z-index: 2; font-family: var(--serif); line-height: .86; letter-spacing: -.035em; }
.cover-cafe { display: block; font-size: var(--step-2); font-style: italic; letter-spacing: 0; margin: 0 0 .35rem .3rem; }
.cover-word { display: block; font-size: clamp(4.5rem, 28.5vw, 16.5rem); font-weight: 400; margin-left: -.05em; }
.cover-photo { grid-column: 1 / -1; grid-row: 2; margin-top: -2.4rem; }
.cover-intro { grid-row: 3; }
.cover-small { grid-row: 4; }
.cover-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.cover-intro { padding-top: 2rem; display: grid; gap: 1rem; max-width: 34rem; }
.cover-lede { font-family: var(--serif); font-style: italic; font-size: var(--step-2); line-height: 1.2; }
.cover-text { color: var(--slate); }
.cover-small { margin-top: 3rem; width: 70%; justify-self: end; }
.cover-small img { aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: .6rem; font-size: var(--text-secondary); color: var(--slate); font-style: italic; font-family: var(--serif); }

.status { display: flex; align-items: center; gap: .6rem; font-size: var(--text-secondary); font-weight: 500; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; border: 1px solid var(--slate); flex: none; }
.status.is-open::before { background: var(--sun); border-color: #b7861a; }

@media (min-width: 768px) {
  .cover { padding-top: 1.5rem; padding-bottom: 6rem; }
  .cover-title { grid-column: 2 / 15; grid-row: 1; }
  .cover-word { font-size: clamp(8rem, 19vw, 16.5rem); }
  .cover-photo { grid-column: 8 / 15; grid-row: 1 / 4; margin-top: clamp(5rem, 9vw, 8rem); }
  .cover-photo img { aspect-ratio: 4 / 5; }
  .cover-intro { grid-column: 2 / 7; grid-row: 2; padding-top: 2.5rem; }
  .cover-small { grid-column: 3 / 7; grid-row: 3; width: auto; justify-self: stretch; margin-top: 4rem; }
}

/* the one entrance on the page: the two cover photos settle in, in turn */
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
[data-enter] { animation: settle var(--motion-300) var(--ease-out) both; animation-delay: 150ms; }
.cover-small[data-enter] { animation-delay: 300ms; }

/* buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 0;
  font: 500 var(--text-body)/1 var(--sans); letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--motion-200) var(--ease-out);
}
.btn:hover { background: var(--ink-hover); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-quiet:hover { background: var(--mist); }
.text-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform-origin: left; transition: transform var(--motion-300) var(--ease-out); }
@media (hover: hover) { .text-link:hover::after { transform: scaleX(.4); } }

/* today's bakes */
.oven { padding-block: 2rem 5rem; row-gap: 2rem; }
.oven-photo { grid-column: 1 / -1; }
.oven-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oven-copy { display: grid; gap: 1.25rem; align-content: start; }
.oven-copy > p { color: var(--slate); max-width: 32rem; }
.oven-board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.oven-board li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.oven-name { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; }
.oven-when { font-size: var(--text-secondary); color: var(--slate); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: .5rem; }
.oven-when::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid var(--slate); }
.oven-board li.is-out .oven-when { color: var(--ink); }
.oven-board li.is-out .oven-when::before { background: var(--sun); border-color: #b7861a; }
.oven-note { font-size: var(--text-secondary); }
@media (min-width: 768px) {
  .oven { padding-block: 3rem 8rem; align-items: center; }
  .oven-photo { grid-column: 1 / 8; grid-row: 1; }
  .oven-copy { grid-column: 9 / 14; grid-row: 1; }
}

/* menu: heading column on the left stays put while the lists scroll */
.menu { padding-block: 4rem; row-gap: 2.5rem; border-top: 1px solid var(--line); }
.menu-head { display: grid; gap: .75rem; align-content: start; }
.menu-head p { color: var(--slate); max-width: 22rem; }
.menu-lists { display: grid; gap: 2.5rem; }
.menu-group h3 { margin-bottom: .5rem; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.items small { display: block; font-size: var(--text-secondary); color: var(--slate); line-height: 1.45; }
.price { font-family: var(--serif); font-size: var(--step-1); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 768px) {
  .menu { padding-block: 6rem; }
  .menu-head { grid-column: 2 / 6; position: sticky; top: 2rem; }
  .menu-lists { grid-column: 7 / 14; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; row-gap: 3.5rem; }
  .menu-group:nth-child(2) { margin-top: 4rem; }
}

/* the room, bleeding off the right edge */
.room { padding-bottom: 5rem; }
.room img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.room figcaption { grid-column: 2 / 14; }
@media (min-width: 768px) {
  .room { padding-bottom: 8rem; }
  .room img { grid-column: 4 / 15; grid-row: 1; }
  .room figcaption { grid-column: 2 / 4; grid-row: 1; align-self: end; padding-right: 1.5rem; margin: 0; }
}

/* pastry box form */
.box { background: var(--mist); padding-block: 4rem; row-gap: 2rem; }
.box-copy { display: grid; gap: 1rem; align-content: start; }
.box-copy p { color: var(--slate); max-width: 30rem; }
.box-form { display: grid; gap: 1.25rem; max-width: 36rem; }
.box-sizes { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }
.box-sizes legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.choice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin: .3rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); flex: none; }
.choice span { display: grid; gap: .15rem; }
.choice i { font-family: var(--serif); font-size: var(--step-1); font-style: normal; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.field { display: grid; gap: .4rem; font-size: var(--text-secondary); font-weight: 500; }
.field input, .field select {
  min-height: 48px; width: 100%; padding: 0 .85rem;
  font: 400 var(--text-body) var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid #8790a0; border-radius: 0;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #a1262e; box-shadow: inset 0 0 0 1px #a1262e; }
.error { color: #a1262e; font-size: var(--text-secondary); font-weight: 500; }
.box-form .btn { justify-self: start; }
.done { background: var(--paper); border-left: 3px solid var(--sun); padding: 1rem 1.1rem; }
@media (min-width: 768px) {
  .box { padding-block: 6rem; }
  .box-copy { grid-column: 2 / 6; }
  .box-form { grid-column: 8 / 14; }
}

/* hours and map */
.visit { padding-block: 4rem; row-gap: 3.5rem; }
.hours, .find { display: grid; gap: 1.25rem; align-content: start; }
.week { width: 100%; border-collapse: collapse; }
.week th, .week td { text-align: left; font-weight: 400; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.week td { text-align: right; font-variant-numeric: tabular-nums; color: var(--slate); }
.week tr.is-today th, .week tr.is-today td { color: var(--ink); font-weight: 600; }
.week .today-tag { font-weight: 400; font-family: var(--serif); font-style: italic; margin-left: .4rem; }
.address { font-family: var(--serif); font-size: var(--step-1); line-height: 1.35; }
.map svg { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); }
.map-park { fill: var(--mist); }
.map-block { fill: none; stroke: var(--line); stroke-width: 1; }
.map-street { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.map-lane { stroke: #8790a0; stroke-width: 1; stroke-dasharray: 4 6; fill: none; }
.map-tram { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.map-pin { fill: var(--sun); stroke: var(--ink); stroke-width: 1.5; }
.map-label { font: 400 15px var(--sans); fill: var(--slate); }
.map-street-name { font: 500 14px var(--sans); fill: var(--ink); letter-spacing: .04em; }
.map-name { font: italic 400 26px var(--serif); fill: var(--ink); }
@media (max-width: 599.98px) {
  .map-label, .map-street-name { font-size: 24px; }
  .map-name { font-size: 34px; }
}
@media (min-width: 768px) {
  .visit { padding-block: 6rem; }
  .hours { grid-column: 2 / 6; }
  .find { grid-column: 7 / 14; }
}

/* contact */
.contact { padding-block: 4rem 5rem; row-gap: 2.5rem; border-top: 1px solid var(--line); }
.contact-copy { display: grid; gap: 1.1rem; align-content: start; }
.phone { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.contact-photo { width: 70%; justify-self: end; }
.contact-photo img { aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 768px) {
  .contact { padding-block: 6rem 7rem; align-items: end; }
  .contact-copy { grid-column: 2 / 9; }
  .contact-photo { grid-column: 10 / 14; width: auto; justify-self: stretch; }
}

/* footer */
.footer { padding-block: 2rem 3rem; row-gap: .6rem; border-top: 1px solid var(--line); font-size: var(--text-secondary); color: var(--slate); }
.footer p { max-width: 46rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* call panel */
.call { width: min(26rem, calc(100% - 2rem)); padding: 2rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.call::backdrop { background: rgba(28, 36, 48, .4); }
.call[open] { display: grid; gap: 1rem; animation: settle var(--motion-200) var(--ease-out); }
.call h2 { font-size: var(--step-2); }
.call .phone { font-size: var(--step-3); }
.call .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
