/* Tŷ Te concept 2. Taste decisions live in this block. */
:root {
  --ink: #132532;        /* navy, from the logo */
  --paper: #ffffff;
  --matcha: #b5cf73;     /* tea section */
  --pink: #f6c3d0;       /* food section, strawberry milk */
  --orange: #f36b34;     /* the dot, from the logo */
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --display: 300;        /* lighter sans for headings */
  --pad: clamp(20px, 4vw, 64px);
  --s-hero: clamp(46px, 6.4vw, 104px);
  --s-word: clamp(64px, 10vw, 156px);
  --s-statement: clamp(26px, 3vw, 46px);
  --s-sub: clamp(19px, 1.6vw, 24px);
  --s-body: 18px;
  --s-small: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, table, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
.dot { color: var(--orange); }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px var(--pad); position: sticky; top: 0; z-index: 10; background: var(--paper); }
section[id] { scroll-margin-top: var(--head, 88px); }
.logo img { width: clamp(180px, 18vw, 260px); }
.top nav { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: 16px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

/* Hero: the teahouse in a house-shaped window */
.hero { display: grid; grid-template-columns: 5fr 6fr; min-height: calc(100svh - 96px); background: var(--matcha); }
.hero-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: var(--pad); padding-bottom: clamp(40px, 7vw, 96px); }
h1 { font: var(--display) var(--s-hero)/1 var(--sans); letter-spacing: -.03em; max-width: 7.5em; }
.hero-house { position: relative; padding: clamp(28px, 5vw, 72px) var(--pad) 0 0; display: flex; }
.hero-house img { flex: 1; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); }
.sun { position: absolute; left: 6%; top: clamp(28px, 5vw, 72px); width: clamp(48px, 5.5vw, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); z-index: 1; }

/* Type */
.sub { font: 400 var(--s-sub)/1.35 var(--serif); max-width: 30em; }
.statement { font: var(--display) var(--s-statement)/1.18 var(--sans); letter-spacing: -.015em; max-width: 24em; padding: clamp(64px, 9vw, 140px) var(--pad) 0; }
h2 { font: var(--display) var(--s-word)/.9 var(--sans); letter-spacing: -.04em; }
h3 { font: 400 20px/1.25 var(--sans); margin-bottom: 10px; }
.small { font-size: var(--s-small); line-height: 1.5; }
.prose p, .facts p, .house .small { font-family: var(--serif); }

/* Sections */
.sec { padding: clamp(64px, 8vw, 128px) var(--pad); }
.band.matcha { background: var(--matcha); }
.band.pink { background: var(--pink); }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.btn { display: inline-block; align-self: flex-start; margin-top: clamp(28px, 3vw, 44px); padding: 14px 22px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; }
.btn:hover, .btn:focus-visible { background: var(--orange); color: var(--ink); }

/* Houses */
.houses { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(48px, 5vw, 80px) clamp(24px, 3vw, 48px); }
.house { display: grid; gap: 12px; align-content: start; }
.house img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: 10px; }
.house h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: var(--display); margin: 0; }
.hours th { text-align: left; font-weight: 400; padding: 2px 24px 2px 0; }
.hours td { font-variant-numeric: tabular-nums; }
.links { display: flex; gap: 20px; }

/* Tea */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.split > div { display: flex; flex-direction: column; }
.facts { display: grid; gap: 28px; max-width: 30em; }
.tall { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Coffee and food lists */
.wide { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; margin-bottom: clamp(36px, 4vw, 64px); }
.cols { display: grid; gap: clamp(28px, 3vw, 56px); }
.cols.four { grid-template-columns: repeat(4, 1fr); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols.two { grid-template-columns: repeat(2, 1fr); max-width: 64em; }
.prices, .menu { width: 100%; border-collapse: collapse; }
.prices th, .menu th { text-align: left; font-weight: 400; padding: 9px 12px 9px 0; vertical-align: top; border-top: 1px solid currentColor; }
.prices td, .menu td { text-align: right; vertical-align: top; padding: 9px 0; white-space: nowrap; font-variant-numeric: tabular-nums; border-top: 1px solid currentColor; }
.menu th span { display: block; font: 400 var(--s-small)/1.45 var(--serif); margin-top: 2px; }
#coffee h3 + .small, #food h3 + .small { margin: -6px 0 10px; }
.foot-note { max-width: 46em; margin-top: 28px; }

/* Art */
.works { display: grid; gap: clamp(20px, 2vw, 32px); margin-bottom: clamp(36px, 4vw, 64px); }
.works .row { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.works figure { min-width: 0; }
.works img { width: 100%; }
.works figcaption { font-size: var(--s-small); margin-top: 8px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 120px) var(--pad) 48px; display: grid; gap: clamp(32px, 4vw, 56px); }
.foot-logo { width: min(420px, 100%); }
.foot-line { font: var(--display) var(--s-statement)/1.1 var(--sans); }
.foot .cols { font-size: var(--s-small); }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .cols.four { grid-template-columns: repeat(2, 1fr); }
  .cols.three { grid-template-columns: 1fr; max-width: 40em; }
}
@media (max-width: 760px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .logo img { width: 150px; }
  .top nav { flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-top: 40px; padding-bottom: 8px; }
  .hero-house { padding: 32px 0 0; height: 70vw; }
  .sun { top: 32px; left: 8%; }
  .houses, .split, .cols.two { grid-template-columns: 1fr; }
  .works .row { flex-direction: column; }
  .works figure { flex: none !important; }
  .wide { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .cols.four { grid-template-columns: 1fr; }
}

/* Kirby build additions */
.prose { columns: 2 22em; column-gap: clamp(28px, 3vw, 56px); max-width: 64em; font-family: var(--serif); }
.prose p { break-inside: avoid; }
.prose p + p { margin-top: 1em; }
.prose.single { columns: 1; max-width: 34em; }
.split > div > .btn { align-self: flex-start; }

/* Per-house menus */
.house-menus { border-bottom: 1px solid currentColor; }
.house-menu { border-top: 1px solid currentColor; scroll-margin-top: 88px; }
.house-menu summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: var(--display) clamp(24px, 2.6vw, 38px)/1.1 var(--sans); letter-spacing: -.01em; }
.house-menu summary::-webkit-details-marker { display: none; }
.house-menu summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
.house-menu[open] summary::after { content: "\2212"; }
.house-menu summary:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.house-menu summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.house-menu > .cols { padding: 8px 0 44px; }
.house-menus + .foot-note { margin-top: 36px; }
.house { scroll-margin-top: 88px; }
.links { flex-wrap: wrap; }

/* Extra pages */
.page-title { font: var(--display) var(--s-word)/.9 var(--sans); letter-spacing: -.04em; }
.page-blocks { max-width: 44em; font-family: var(--serif); }
.page-blocks > * + * { margin-top: 1.2em; }
.page-blocks h2 { font: var(--display) clamp(32px, 3.4vw, 52px)/1 var(--sans); }
@media (max-width: 760px) { .house-menu summary { padding: 16px 0; } }
