:root {
  --kd-bg: #fffaf0; --kd-surface: #ffffff; --kd-text: #422a1a; --kd-muted: #7a6652;
  --kd-accent: #338dac; --kd-on-accent: #121d21; --kd-accent-2: #f5b06e; --kd-accent-ink: #2d7c98;
}

/* ---------- Tokens ---------- */
:root {
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
  --m: clamp(16px, 2.5vw, 32px);
  --gap: clamp(96px, 12vw, 200px);
  --tile: clamp(44px, 5vw, 72px);
  --bar-h: 100px;

  /* Tile glazes: blue and apricot from the logo, ground for the light glaze, plaster for closed days */
  --tile-base: var(--kd-accent);
  --tile-motif: var(--kd-accent-2);
  --tile-light: var(--kd-bg);
  --tile-bare: color-mix(in srgb, var(--kd-text) 9%, var(--kd-bg));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--kd-bg); scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--kd-text);
  background: var(--kd-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--kd-accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--kd-accent-ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Plaster on the ground; every section with its own field or photo covers it */
.plaster {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  color: var(--kd-text);
}
.plaster__grain { opacity: 0.07; }
.plaster__mottle { opacity: 0.06; }

/* The arch: the page's one photo shape */
.arch {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 9999px 9999px 0 0;
}
.arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  scale: 1.3;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--kd-accent); color: var(--kd-on-accent);
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover { background: color-mix(in srgb, var(--kd-accent) 82%, var(--kd-bg)); }

.link { font-weight: 700; }
.link:hover { color: var(--kd-text); }

/* ---------- Header ---------- */
.bar {
  max-width: 1600px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 8px 16px;
  padding: 14px var(--m) 10px;
}
.bar__brand img { height: 40px; width: auto; }
.bar__nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 22px; }
.bar__nav a {
  color: var(--kd-text); font-size: 15px; font-weight: 600;
  text-decoration: underline 4px transparent; text-underline-offset: 6px;
}
.bar__nav a:hover { text-decoration-color: var(--kd-accent); }
.bar__call { min-height: 44px; padding: 0 18px; }

@media (min-width: 900px) {
  :root { --bar-h: 80px; }
  .bar { display: flex; height: var(--bar-h); padding-block: 0; gap: 40px; }
  .bar__brand img { height: 48px; }
  .bar__nav { margin-left: auto; gap: 32px; }
  .bar__nav a { font-size: 16px; }
  .bar__call { min-height: 48px; padding: 0 24px; }
}

/* ---------- Hero ---------- */
.hero__grid {
  max-width: 1600px; margin-inline: auto;
  padding: 20px var(--m) 0;
  display: grid; gap: 32px;
}
.hero__name {
  color: var(--kd-accent);
  font-size: clamp(64px, 19vw, 176px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero__name span { display: block; }
.hero__sub { margin-top: 22px; font-size: 18px; max-width: 40ch; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__arch { aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }

@media (min-width: 720px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    height: calc(100svh - var(--bar-h) - var(--tile));
    min-height: 540px;
  }
  .hero__text { grid-column: 1 / 7; align-self: end; padding-bottom: clamp(28px, 6svh, 64px); }
  .hero__name { font-size: clamp(64px, 10.5vw, 176px); }
  .hero__sub { font-size: 19px; }
  .hero__arch { grid-column: 7 / 13; aspect-ratio: auto; max-height: none; height: 100%; }
}

/* The week band: each run of seven tiles is a Soriah week */
.band {
  display: flex; gap: 4px;
  height: var(--tile);
  margin-top: 4px;
  overflow: hidden;
}
.tile { display: block; flex: 0 0 var(--tile); height: var(--tile); }
.tile svg, .week svg { display: block; width: 100%; height: 100%; }

/* ---------- Intro: heading captions a panorama ---------- */
.intro { padding-top: clamp(64px, 11svh, 132px); }
.display, .intro__title {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.intro__title { font-size: clamp(40px, 12vw, 96px); }
.intro__title span { display: block; }
.intro__captions { margin-top: 28px; display: flex; flex-direction: column; font-size: 14px; max-width: 30ch; }
.pano {
  margin-top: 40px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.pano img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; }

@media (min-width: 720px) {
  .intro__title { font-size: clamp(48px, 6.5vw, 96px); }
  .intro__captions { flex-direction: row; gap: 48px; max-width: none; font-size: 13px; line-height: 1.5; }
  .intro__captions p { width: 150px; }
  .pano { aspect-ratio: 21 / 9; }
}

/* ---------- Menu ---------- */
.menu { padding-top: var(--gap); }
.menu__grid { display: grid; gap: 56px; }
.menu__title { font-size: clamp(44px, 6vw, 88px); }
.menu__intro { margin-top: 24px; font-size: 18px; max-width: 42ch; }
.menu__hours { margin-top: 36px; display: grid; gap: 14px; max-width: 44ch; }
.menu__hours dt { font-weight: 700; }
.menu__links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 26px; }

.dishes { display: grid; gap: 6px; align-content: start; }
.dish {
  padding: 26px 20px 26px 26px;
  border-left: 10px solid transparent;
}
.dish h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; }
.dish p { margin-top: 8px; max-width: 46ch; }
.dish:hover { border-left-color: var(--kd-accent); }

@media (min-width: 1000px) {
  .menu__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .menu__side { grid-column: 1 / 6; }
  .dishes { grid-column: 7 / 13; margin-top: 4px; }
}

/* ---------- About: rows hanging from one axis ---------- */
.about { padding-top: var(--gap); }
.statement { min-height: 50svh; display: grid; align-content: center; }
.statement__title { font-size: clamp(30px, 8vw, 80px); line-height: 0.98; letter-spacing: -0.025em; }
.statement__text { margin-top: 28px; font-size: 18px; max-width: 46ch; }

.rows { margin-top: 64px; display: grid; gap: 64px; }
.row__text h3 { font-size: 26px; line-height: 1.05; }
.row__text p { margin-top: 14px; max-width: 34ch; }
.row__photo { margin-top: 24px; }
.row__photo .arch { width: 100%; }
.row__photo--tall .arch { aspect-ratio: 4 / 5; }
.row__photo--wide { width: 70%; margin-left: auto; }
.row__photo--wide .arch { aspect-ratio: 3 / 2; }
.row__photo--small { width: 55%; }
.row__photo--small .arch { aspect-ratio: 1; }
.row__photo figcaption { margin-top: 10px; font-size: 14px; color: var(--kd-muted); }

.interlock {
  position: relative; z-index: 5;
  width: 60%;
  margin-top: 120px;
  margin-bottom: -76px;
  padding: 14px 16px;
  background: var(--kd-bg);
  font-size: 14px; line-height: 1.4;
}

@media (min-width: 1000px) {
  .statement { min-height: 70svh; }
  .statement__title { font-size: clamp(40px, 5vw, 80px); }
  .axis { margin-left: 35%; }
  .rows { margin-top: 0; gap: 112px; }
  .row { display: grid; grid-template-columns: 35% minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
  .row__text { grid-column: 2; }
  .row__text h3 { font-size: clamp(28px, 3vw, 48px); }
  .row__photo { grid-column: 3; margin-top: 0; }
  .row__photo--tall { width: 240px; }
  .row__photo--wide { width: 320px; }
  .row__photo--small { width: 180px; }
  .interlock { width: 220px; margin: 160px 0 -92px 58%; }
}

/* ---------- Gallery: curtain, arcade, tile wall ---------- */
.curtain__panel {
  position: sticky; top: 0;
  height: 88svh;
  overflow: hidden;
  background: var(--kd-text);
}
.curtain__panel:nth-child(1) { z-index: 1; }
.curtain__panel:nth-child(2) { z-index: 2; }
.curtain__panel:nth-child(3) { z-index: 3; }
.curtain__panel img { width: 100%; height: 100%; object-fit: cover; scale: 1.22; }
.curtain__panel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px;
  display: flex; align-items: flex-end;
  padding: 0 var(--m) 22px;
  color: var(--kd-bg);
  font-size: 14px;
  background: linear-gradient(to top, color-mix(in srgb, var(--kd-text) 78%, transparent), transparent);
}

@media (min-width: 720px) {
  .curtain__panel { height: 100svh; }
  .curtain__panel figcaption { font-size: 15px; }
}

.gallery__rest {
  padding-top: clamp(80px, 10vw, 150px);
  display: grid; justify-items: center;
  gap: clamp(48px, 7vw, 104px);
}
.divider { width: min(520px, 84%); height: auto; mix-blend-mode: multiply; }
.arcade {
  width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
.arcade .arch { aspect-ratio: 3 / 4; }
.arcade .arch:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.tilewall {
  width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tilewall img { width: 100%; height: auto; aspect-ratio: 432 / 306; object-fit: cover; }

@media (min-width: 720px) {
  .arcade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arcade .arch:last-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .tilewall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .arcade { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ---------- Voices: portrait and offset quotation ---------- */
.voices { padding-block: var(--gap); }
.voices__photo { width: 72%; aspect-ratio: 3 / 4; }
.voices__main { margin-top: 32px; }
.voices__main blockquote p {
  font-family: var(--serif);
  font-size: 24px; line-height: 1.2; letter-spacing: -0.01em;
  max-width: 26ch;
}
.voices figcaption { margin-top: 24px; font-size: 16px; font-weight: 700; }
.voices__second { margin-top: 48px; width: 82%; margin-left: auto; }
.voices__second blockquote p { max-width: 36ch; }
.voices__second figcaption { margin-top: 14px; font-size: 15px; }
.voices__rating { margin-top: 6px; font-size: 15px; color: var(--kd-muted); }
blockquote { margin: 0; }

@media (min-width: 1000px) {
  .voices__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .voices__photo { grid-column: 2 / 6; grid-row: 1 / span 2; width: auto; }
  .voices__main { grid-column: 7 / 13; grid-row: 1; margin-top: 120px; }
  .voices__main blockquote p { font-size: clamp(26px, 2.4vw, 36px); }
  .voices__main figcaption { margin-top: 32px; }
  .voices__second { grid-column: 9 / 13; grid-row: 2; width: auto; margin: 96px 0 0; }
}

/* ---------- Visit: a card on a wall of Soriah's weeks ---------- */
.visit { position: relative; display: flow-root; }
.visit__wall { display: block; width: 100%; height: 70svh; }
.card {
  position: relative;
  margin: -80px 16px 0;
  padding: 32px 32px 0;
  background: var(--kd-surface);
  border-radius: 8px;
  overflow: hidden;
}
.card__title { font-size: 28px; line-height: 1.1; }
.card__address { margin-top: 18px; font-size: 16px; }
.card__address a { color: var(--kd-text); }
.week { display: flex; gap: 3px; margin-top: 24px; }
.week svg { width: 22px; height: 22px; flex: none; }
.card__hours { margin-top: 12px; font-variant-numeric: tabular-nums; }
.card__hours div { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; font-size: 16px; }
.card__hours dd { font-weight: 700; text-align: right; }
.card__phone { margin-top: 14px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card__btn { display: flex; margin: 26px -32px 0; min-height: 56px; }

@media (min-width: 760px) {
  .visit { min-height: 100svh; }
  .visit__wall { position: absolute; inset: 0; height: 100%; }
  .card { width: 380px; margin: 60px 60px 60px auto; }
  .card__btn { min-height: 52px; }
}

/* ---------- Footer: the phone number is the headline ---------- */
.footer {
  --tile-bare: color-mix(in srgb, var(--kd-text) 16%, var(--kd-accent-2));
  position: relative;
  min-height: 90svh;
  display: flex; flex-direction: column;
  padding: 40px max(var(--m), (100% - 1600px) / 2 + var(--m)) 28px;
  background: var(--kd-accent-2);
  color: var(--kd-text);
}
.footer a { color: var(--kd-text); }
.footer :focus-visible { outline-color: var(--kd-text); }
.footer__main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 96px; }
.footer__top { display: grid; gap: 20px; font-size: 15px; line-height: 1.5; padding-right: 110px; }
.footer__logo { height: 32px; width: auto; }
.footer__hours .week { margin: 0 0 8px; }
.footer__hours .week svg { width: 18px; height: 18px; }
.footer__totop { position: absolute; top: 40px; right: max(var(--m), (100% - 1600px) / 2 + var(--m)); font-size: 15px; font-weight: 700; }
.footer__phone {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: underline transparent 0.05em;
  text-underline-offset: 0.1em;
}
.footer__phone:hover { text-decoration-color: var(--kd-text); }
.footer__meta { margin-top: 32px; display: grid; gap: 4px; font-size: 13px; }
.footer__links a { margin-right: 16px; }

@media (min-width: 900px) {
  .footer__top { grid-template-columns: auto repeat(3, minmax(0, 15em)); column-gap: 40px; padding-right: 160px; }
  .footer__logo { height: 40px; }
  .footer__phone { font-size: clamp(48px, 12.5vw, 200px); }
  .footer__meta { grid-template-columns: 1fr auto 1fr; font-size: 14px; }
  .footer__meta p:last-child { text-align: right; }
}

/* ---------- Hover and focus transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .link, .bar__nav a, .dish, .footer__phone {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, text-decoration-color 0.25s ease;
  }
}
