/* Den Da: cream ground, cast-iron ovals on wooden boards, one egg-yolk accent. */

:root {
  --cream: #f6eedf;
  --oat: #eadfc9;
  --board: #cf9f63;
  --iron: #1e1916;
  --coffee: #5a3a28;
  --bark: #6b5a4c;
  --yolk: #f2b53a;
  --oat-deep: color-mix(in srgb, var(--oat), var(--board) 35%);
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Phudu", Georgia, serif;
  --gutter: 16px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--iron);
  font: 400 1.0625rem/1.6 var(--sans);
  padding-bottom: 88px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, figure, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--coffee); cursor: pointer; }
label, button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coffee); outline-offset: 3px; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: 8px; z-index: 30;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--coffee); color: var(--cream); font-weight: 600; border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; outline-color: var(--iron); }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
h2 { font-size: clamp(1.75rem, 7vw, 3rem); line-height: 1; color: var(--coffee); text-wrap: balance; }
h2::after {
  content: ""; display: block; width: 52px; height: 18px; margin-top: 14px;
  border: 3px solid var(--iron); border-radius: 50%; background: var(--board);
}
main, section[id] { scroll-margin-top: 72px; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 2px solid var(--coffee); border-radius: 10px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color 150ms, color 150ms;
}
.btn-solid { background: var(--coffee); color: var(--cream); }
.btn-solid:hover { background: var(--iron); border-color: var(--iron); }
.btn-line { background: transparent; color: var(--coffee); }
.btn-line:hover { background: var(--oat); }
.btn:active { transform: translateY(1px); }
.btn-big { min-height: 52px; }
.textlink, .tlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* top bar */
.topbar { background: var(--cream); border-bottom: 3px solid var(--iron); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar-logo { width: 48px; height: 48px; border-radius: 50%; }
.topbar-links { display: flex; align-items: center; gap: 12px; }
.top-only { display: none; }

/* hero */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 20px; }
.hero-text, .hero-act { display: grid; gap: 14px; align-content: start; }
.title { position: relative; display: inline-block; justify-self: start; color: var(--board); }
h1 {
  font-size: clamp(3.5rem, 20vw, 8rem); line-height: 0.9; color: var(--coffee);
  animation: rise 450ms ease-out both;
}
.steam { position: absolute; right: -44px; top: -10px; width: 36px; height: auto; }
.fullname { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.line {
  position: relative; background: var(--coffee); color: var(--cream);
  padding: 18px 18px 16px; border: 3px solid var(--iron); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--board);
}
.line-q { display: block; font: 500 clamp(1.5rem, 6.5vw, 2.5rem)/1.1 var(--display); text-wrap: balance; }
.line-src { display: block; margin-top: 10px; font-size: 0.875rem; line-height: 1.3; letter-spacing: 0.02em; color: var(--oat); }
.hero-img {
  width: 100%; max-width: 540px; aspect-ratio: 1080 / 734; object-fit: cover; height: auto;
  border-radius: 14px; border: 3px solid var(--iron);
}
.hours { font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.hero-act .textlink { justify-self: start; }

/* finder */
.hungry { padding: 36px 0 56px; background: var(--cream); }
.finder { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.finder > input {
  position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
.finder > label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 12px;
  background: var(--oat); color: var(--iron); border: 2px solid var(--board); border-radius: 10px;
  font: 600 1rem/1.2 var(--sans); text-align: center; user-select: none;
  transition: background-color 120ms, border-color 120ms;
}
.finder > label:hover { background: var(--oat-deep); }
.finder > input:checked + label { background: var(--yolk); border-color: var(--iron); }
.finder > input:focus-visible + label { outline: 3px solid var(--coffee); outline-offset: 3px; }
.panels { grid-column: 1 / -1; margin-top: 14px; }
.panel { display: none; gap: 24px; }
#crave-sizzling:checked ~ .panels .panel-sizzling,
#crave-soup:checked ~ .panels .panel-soup,
#crave-rice:checked ~ .panels .panel-rice,
#crave-coffee:checked ~ .panels .panel-coffee { display: grid; animation: fade 150ms ease-out; }

.skillet { background: var(--board); border-radius: 26px; padding: 12px; width: 100%; max-width: 480px; }
.skillet img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 50%; border: 8px solid var(--iron);
}
.panel-sizzling img { object-position: 50% 50%; }
.panel-soup img { object-position: 50% 35%; }
.panel-rice img { object-position: 50% 50%; }
.panel-coffee img { object-position: 50% 55%; }

.dishes { align-self: center; }
.dishes li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--oat-deep); }
.dishes li:first-child { padding-top: 0; }
.dishes li::before {
  content: ""; position: absolute; left: 0; top: 1em; width: 22px; height: 14px;
  border: 2.5px solid var(--iron); border-radius: 50%; background: var(--board);
}
.dishes li:first-child::before { top: 0.35em; }
.dish { display: block; font: 600 1.125rem/1.3 var(--sans); }
.desc { display: block; line-height: 1.5; }
.note { margin-top: 16px; font-size: 0.9375rem; line-height: 1.5; color: var(--bark); }
.after-finder { display: grid; gap: 14px; justify-items: start; margin-top: 32px; }
.after-finder p { max-width: 36rem; color: var(--bark); }

/* name band */
.band { background: var(--oat); }
.name { padding: 56px 0; }
.name-grid { display: grid; gap: 24px; }
.name-pair { width: 100%; max-width: 600px; border-radius: 14px; border: 3px solid var(--iron); }
.name-text { display: grid; gap: 16px; align-content: start; }
.name-text p { max-width: 34rem; }
.name-beans { width: 100%; max-width: 320px; border-radius: 14px; border: 3px solid var(--iron); margin-top: 8px; }

/* find us */
.find { padding: 56px 0; }
.find-grid { display: grid; gap: 24px; }
.find-img { width: 100%; max-width: 600px; border-radius: 14px; border: 3px solid var(--iron); }
.find-text { display: grid; gap: 14px; justify-items: start; align-content: start; }
address { font-weight: 600; font-size: 1.1875rem; line-height: 1.4; }
.facts { display: grid; gap: 6px; margin-top: 8px; }
.facts li { position: relative; padding-left: 34px; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 22px; height: 14px;
  border: 2.5px solid var(--iron); border-radius: 50%; background: var(--board);
}

/* reviews */
.reviews { background: var(--coffee); color: var(--cream); padding: 56px 0; }
.reviews h2 { color: var(--cream); }
.reviews h2::after { border-color: var(--cream); }
.reviews :focus-visible { outline-color: var(--cream); }
.quotes { display: grid; gap: 28px; margin-top: 32px; }
.quotes figure { border-top: 3px solid var(--board); padding-top: 18px; }
.quotes blockquote p { font: 500 clamp(1.375rem, 5.2vw, 2rem)/1.2 var(--display); text-wrap: balance; }
.quotes figcaption { margin-top: 12px; color: var(--oat); font-size: 0.9375rem; }
.rating { margin-top: 36px; font-size: 1.125rem; }
.rating strong { font: 700 2.5rem/1 var(--display); margin-right: 6px; vertical-align: -0.1em; }

/* footer */
.foot { background: var(--oat); padding: 40px 0; border-top: 3px solid var(--iron); }
.foot-in { display: flex; align-items: center; gap: 24px; }
.foot-logo { flex: none; width: 120px; height: 120px; border-radius: 50%; }
.foot-text { display: grid; gap: 6px; justify-items: start; font-size: 0.9375rem; line-height: 1.5; }
.foot-text .concept { font: 700 1.125rem/1.3 var(--display); color: var(--coffee); }
.foot-text p:not(.concept) { color: var(--bark); }

/* fixed bottom bar, phones only */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center;
  padding: 8px var(--gutter); padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: var(--cream); border-top: 1px solid var(--bark);
}
.bar .btn { min-height: 48px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* very narrow phones */
@media (max-width: 359px) { .foot-in { flex-direction: column; align-items: flex-start; } }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .bar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 10; }
  .top-only { display: inline-flex; }
  .topbar-links { gap: 16px; }
  .topbar-links .btn { min-height: 48px; }

  .hero { padding: 48px 0 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 24px;
    grid-template-areas: "text photo" "act photo"; align-items: center;
  }
  .hero-text { grid-area: text; align-self: end; }
  .hero-act { grid-area: act; align-self: start; grid-template-columns: 1fr; justify-items: start; }
  .hero-act .btn { justify-self: stretch; }
  .hero-img { grid-area: photo; justify-self: end; }
  h1 { font-size: clamp(4rem, 9.5vw, 8rem); }
  .steam { width: 44px; right: -60px; }

  .hungry { padding: 32px 0 80px; }
  .finder { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .finder > label { padding: 6px 10px; }
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .dishes li { padding-block: 16px; }
  .dishes li:first-child { padding-top: 0; }

  .name { padding: 80px 0; }
  .name-grid, .find-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 20px;
  }
  .name-grid { grid-template-areas: "photo head" "photo text"; }
  .name-h { grid-area: head; align-self: end; }
  .name-pair { grid-area: photo; }
  .name-text { grid-area: text; }
  .find { padding: 80px 0; }
  .find-grid { grid-template-areas: "photo head" "photo text"; }
  .find-h { grid-area: head; align-self: end; }
  .find-img { grid-area: photo; }
  .find-text { grid-area: text; }

  .reviews { padding: 80px 0; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (min-width: 1024px) {
  .hero-act { grid-template-columns: repeat(2, auto); justify-content: start; }
  .hero-act .hours, .hero-act .textlink { grid-column: 1 / -1; }
  .hero-act .btn { justify-self: start; }
  .name-grid, .find-grid { column-gap: 64px; }
  .panel { gap: 64px; }
  .foot-in { gap: 40px; }
}

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