/* Kuşluk: an ivory page, photographs hung at uneven sizes like prints, and the menu set as a printed carte.
   One typeface (Newsreader): large and light for names and headings, italic for descriptions, small spaced
   capitals for labels. Ivory ground, bone paper for the carte, a warm ink, one deep moss, and brass kept to
   the plus signs, the figures of the list and a few marks. Every photograph gets one grade (--grade). */
:root {
  --bg: #f1f0ec;
  --carte: #e5e1d8;
  --paper: #f7f6f3;
  --ink: #23241f;
  --muted: #4b4b43;
  --deep: #2a3626;
  --deep-ink: #ebebe6;
  --brass: #8f6f32;
  --brass-pale: #cbb07a;
  --line: color-mix(in srgb, var(--ink) 26%, transparent);
  --grade: saturate(.13) sepia(.2) contrast(1.05);

  --step-label: .9375rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.12rem + .6vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.2rem + 3.7vw, 4.5rem);

  --m: clamp(1.25rem, 5vw, 5.5rem);
  --gap: 1.5rem;
  --sec: clamp(6.5rem, 13vw, 12.5rem);
  --serif: Newsreader, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.6, 0, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* On screens wider than a laptop the whole scale grows a little, so the type keeps its share of the page. */
html { font-size: clamp(100%, .6vw + .46rem, 125%); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--serif); font-optical-sizing: auto; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .28em; text-decoration-color: var(--line); transition: text-decoration-color .8s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: .125rem solid var(--ink); outline-offset: .25rem; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, .statement { font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
h3, .statement { font-size: var(--step-statement); line-height: 1.12; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.4; text-wrap: pretty; }
/* Labels: small capitals, spaced, as on a printed card. */
.label, .top, .btn, .facts dt, .tray-name, .to-top { font-size: var(--step-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sr { position: absolute; width: .0625rem; height: .0625rem; margin: -.0625rem; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -14rem; z-index: 30; background: var(--ink); color: var(--bg); padding: .9rem 1.25rem; }
.skip:focus { top: 1rem; }
.js-only { display: none; }
.js .js-only { display: inline; }

/* The one button shape: a plain ink rectangle, square corners. */
.btn { display: inline-flex; align-items: center; min-height: 3.25rem; padding: .25rem 2rem 0; background: var(--ink); color: var(--bg); text-decoration: none; transition: background-color .8s var(--ease); }
.btn:hover { background: var(--deep); }

/* Photographs: square corners, each cut to the shape its place asks for; --pos is the point kept in view. */
.ph { position: relative; margin: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ph img, .about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: var(--grade); }

/* ---------- first screen: three prints hung from one line, the name under the smallest ---------- */
.hero { padding: 0 var(--m) clamp(3.5rem, 7vw, 6.5rem); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 5.5rem; }
.top a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-color: transparent; }
.top a:hover { text-decoration-color: currentColor; }
.brand { justify-self: start; }
.top-links { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.top-lang { justify-self: end; }
.rail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-top: clamp(1.25rem, 5.5svh, 4rem); }
.hero-left { grid-column: 1 / span 3; }
.print-s { width: 62%; aspect-ratio: 1; }
.hero h1 { margin-top: clamp(1.75rem, 4svh, 2.5rem); font-size: clamp(4rem, 7.4vw, 8.75rem); font-weight: 250; line-height: .92; letter-spacing: -.04em; white-space: nowrap; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 1.5rem; }
.hero .btn { margin-top: 1.75rem; }
.print-l { grid-column: 4 / span 5; aspect-ratio: 3 / 4; max-height: calc(100svh - 11rem); justify-self: stretch; }
.hero-right { grid-column: 10 / span 3; }
.print-w { aspect-ratio: 16 / 10; margin-right: calc(-1 * var(--m)); }
.hero-note { margin-top: 1.1rem; color: var(--muted); }

/* ---------- what the name means, and the four hours of the day set like a programme ---------- */
.intro { padding: var(--sec) var(--m) 0; }
.intro-top, .carte-head, .grp, .about-head, .about-tiles, .contact, .foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.intro-top { align-items: end; }
.intro-top h2 { grid-column: 1 / span 8; }
.intro-note { grid-column: 9 / span 4; text-wrap: pretty; }
.times { display: flex; justify-content: space-between; gap: 2rem; margin-top: clamp(4.5rem, 9vw, 8rem); }
.times dt { font-size: var(--step-statement); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.times dd { margin-top: .4rem; color: var(--muted); }
.intro-ph { width: 40%; margin: clamp(4rem, 7vw, 6.5rem) 0 0 auto; aspect-ratio: 4 / 3; }

/* ---------- the carte: bone paper, a title in the margin, one table per group, a hairline under each line ---------- */
.carte { margin-top: var(--sec); padding: var(--sec) var(--m) clamp(5rem, 8vw, 7.5rem); background: var(--carte); scroll-margin-top: 0; }
.carte-head { align-items: end; }
.carte-head h2 { grid-column: 1 / span 5; }
.carte-note { grid-column: 6 / span 7; max-width: 44rem; color: var(--muted); text-wrap: pretty; }
.grp { align-items: start; padding-top: clamp(4rem, 7vw, 6.5rem); scroll-margin-top: -1rem; }
.grp-side { grid-column: 1 / span 4; }
.grp h3 { font-style: italic; padding-top: .55rem; }
.side-ph { margin-top: 2.5rem; }
.side-ph-a { width: 74%; aspect-ratio: 4 / 5; }
.side-ph-b { width: 52%; aspect-ratio: 1; margin-left: 22%; }
.side-ph-c { width: 86%; aspect-ratio: 3 / 4; }
.list { grid-column: 6 / span 7; width: 100%; border-collapse: collapse; }
.list tr { border-bottom: .0625rem solid var(--line); }
.list tr:first-child { border-top: .0625rem solid var(--line); }
.list th { padding: .95rem 1.5rem .9rem 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.list .name { font-size: var(--step-lead); line-height: 1.25; margin-right: .6rem; }
.list .desc { font-style: italic; color: var(--muted); }
.list td.price { padding: .95rem 0 .9rem; text-align: right; white-space: nowrap; vertical-align: baseline; font-size: var(--step-lead); font-weight: 300; line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; }
.list td.pick { width: 5.4rem; padding: 0; text-align: right; white-space: nowrap; vertical-align: middle; }
.allergy { margin: clamp(4rem, 7vw, 6rem) 0 0 calc((100% - 11 * var(--gap)) / 12 * 5 + 5 * var(--gap)); max-width: 44rem; color: var(--muted); text-wrap: pretty; }

/* The plus at the end of a line: a thin brass cross, the count beside it. Added by the script; without it the carte is a carte. */
.q-btn { all: unset; box-sizing: border-box; width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; vertical-align: middle; cursor: pointer; color: var(--brass); -webkit-tap-highlight-color: transparent; transition: color .6s var(--ease); }
.q-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .9s var(--ease); }
.q-btn:hover { color: var(--ink); }
.q-btn:focus-visible { outline: .125rem solid var(--ink); outline-offset: -.25rem; }
.q-n { display: inline-block; min-width: 1.25rem; margin-left: .6rem; text-align: center; vertical-align: middle; font-style: italic; font-variant-numeric: lining-nums tabular-nums; color: var(--brass); }
.q-n.bump { animation: bump 1s var(--ease); }
@keyframes bump { from { opacity: 0; transform: translateY(.3rem); } }

/* ---------- ordering at the counter: the room, a moss tile with the three steps, four facts ---------- */
.about { padding: var(--sec) var(--m) 0; scroll-margin-top: 0; }
.about-head { align-items: end; }
.about-head h2 { grid-column: 1 / span 6; }
.about-head .lead { grid-column: 7 / span 6; }
.about-tiles { column-gap: 1rem; align-items: start; margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.about-photo { position: relative; grid-column: 1 / span 8; margin: 0; }
.about-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.about-note { position: absolute; top: 0; right: 0; width: min(19rem, 44%); padding: 1.25rem 1.4rem 1.4rem; background: var(--bg); }
.about-side { grid-column: 9 / span 4; }
.steps { background: var(--deep); color: var(--deep-ink); padding: 2rem 1.75rem 2.25rem 3.25rem; display: grid; gap: .9rem; font-size: var(--step-lead); font-weight: 300; line-height: 1.25; }
.steps li { padding-left: .35rem; }
.steps li::marker { color: var(--brass-pale); font-variant-numeric: lining-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; margin-top: 2rem; }
.facts dt { color: var(--muted); }
.facts dd { margin-top: .2rem; }

/* ---------- the room and the counter: three prints that rise a little as the page moves ---------- */
.room { padding-top: var(--sec); overflow-x: clip; }
.room-head { max-width: 40rem; margin: 0 auto clamp(3.5rem, 6vw, 5rem); padding-inline: var(--m); text-align: center; }
.room-head p { margin-top: 1.5rem; text-wrap: balance; }
.trip { --p: 1; display: flex; justify-content: center; align-items: flex-start; gap: .625rem; }
.trip-mid { flex: 0 0 40vw; aspect-ratio: 4 / 5; transform: translateY(calc((1 - var(--p)) * 7%)) scale(calc(.94 + .06 * var(--p))); transform-origin: 50% 100%; }
.trip-side { flex: 0 0 33vw; aspect-ratio: 3 / 4; margin-top: 3.5rem; transform: translateY(calc((1 - var(--p)) * 14%)); }
.trip-c { transform: translateY(calc((1 - var(--p)) * 20%)); }

/* ---------- address and hours ---------- */
.contact { padding: var(--sec) var(--m) clamp(6rem, 11vw, 10rem); align-items: start; scroll-margin-top: 0; }
.contact-say { grid-column: 1 / span 6; }
.contact-say .statement { margin-top: 2rem; max-width: 30rem; }
.contact-say .btn { margin-top: 2.5rem; }
.contact-photo { grid-column: 8 / span 2; aspect-ratio: 1; margin-top: .75rem; }
.contact-facts { grid-column: 10 / span 3; display: grid; gap: 1.25rem; margin-top: .25rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.hours tr { border-bottom: .0625rem solid var(--line); }
.hours tr:first-child { border-top: .0625rem solid var(--line); }
.hours th { padding: .7rem .75rem .65rem 0; text-align: left; font-weight: 400; }
.hours td { padding: .7rem 0 .65rem; text-align: right; white-space: nowrap; }

/* ---------- the close: the name first, across the moss field, then where and when ---------- */
.foot { padding: clamp(3.5rem, 7vw, 6rem) var(--m) 2.25rem; background: var(--deep); color: var(--deep-ink); overflow: clip; }
.wordmark { font-size: 30vw; font-weight: 200; line-height: .86; letter-spacing: -.045em; white-space: nowrap; margin-left: -.05em; padding-bottom: .12em; }
.wordmark span { display: inline-block; }
.foot-row { align-items: start; margin-top: clamp(3rem, 5vw, 4.5rem); }
.foot a { text-decoration-color: transparent; }
.foot a:hover { text-decoration-color: currentColor; }
.foot-places { grid-column: 1 / span 5; display: grid; justify-items: start; gap: .35rem; font-style: normal; font-size: var(--step-statement); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.foot-places a { color: var(--brass-pale); }
.foot-col { grid-column: span 2; display: grid; justify-items: start; align-content: start; gap: .5rem; font-variant-numeric: lining-nums tabular-nums; }
.foot-row nav.foot-col { grid-column: 7 / span 2; }
.foot-col .label { margin-bottom: .6rem; color: var(--brass-pale); }
.foot-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(4rem, 7vw, 6rem); }
.legal { max-width: 46rem; text-wrap: pretty; }
.to-top { white-space: nowrap; }

/* ---------- the visitor's list: a quiet tray that appears once something is on it ---------- */
.tray { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 20; width: min(24rem, calc(100vw - 2rem)); background: #191a16; color: var(--deep-ink); opacity: 0; transform: translateY(.75rem); transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  box-shadow: 0 1.25rem 3.5rem rgb(25 26 22 / .28); /* taste-skill-ignore: the tray is the page's one floating layer (position: fixed, above the content) */
}
.tray.on { opacity: 1; transform: none; }
.tray[hidden], .tray-panel[hidden], .q-btn[hidden], .q-n[hidden] { display: none; }
.tray-bar, .tray-clear { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tray-bar:focus-visible, .tray-clear:focus-visible, .tray .q-btn:focus-visible { outline: .125rem solid var(--deep-ink); outline-offset: -.3rem; }
.tray-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; min-height: 3.75rem; padding: 1.2rem 1.4rem 1.05rem; }
.tray-name { font-size: var(--step-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tray-sum { display: inline-flex; gap: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.tray-sum span { font-style: italic; }
.tray-sum strong { font-weight: 400; color: var(--brass-pale); }
.tray-panel { max-height: min(62svh, 30rem); overflow-y: auto; padding: 1.1rem 1.4rem 0; animation: tray-open 1s var(--ease); }
@keyframes tray-open { from { opacity: 0; } }
.tray-list { display: grid; }
.tray-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.75rem; align-items: center; column-gap: .25rem; }
.tray-list .t-price { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.tray .q-btn, .tray .q-n { color: var(--brass-pale); }
.tray .q-n { margin-left: 0; }
.tray .q-btn:hover { color: var(--deep-ink); }
.tray-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; font-size: var(--step-lead); font-weight: 300; }
.tray-total strong { font-weight: 300; font-variant-numeric: lining-nums tabular-nums; }
.tray-note { margin-top: .9rem; font-style: italic; line-height: 1.45; color: #c9c8bf; }
.tray-clear { margin: .75rem 0 .25rem; min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: .05em; }

/* ---------- movement: few and slow. The first print opens once and then drifts very slowly larger; text
   and pictures arrive by a slow fade; the three prints of the room rise a little with the scroll.
   Nothing follows the pointer and nothing loops across the screen. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] > *, .js [data-up] { opacity: 0; transform: translateY(.75rem); }
  .js [data-rise].in > *, .js [data-up].in { opacity: 1; transform: none; transition: opacity 1.6s var(--ease) calc(var(--i, 0) * 120ms), transform 1.9s var(--ease) calc(var(--i, 0) * 120ms); }
  .js [data-show] img { opacity: 0; transform: scale(1.05); }
  .js [data-show].in img { opacity: 1; transform: none; transition: opacity 1.8s var(--ease), transform 2.8s var(--ease); }
  .print-l { animation: shutter 1.3s var(--ease-io) both; }
  .print-l img { animation: settle 2.2s var(--ease) both, grow 44s ease-in-out 2.2s infinite alternate; }
  .hero h1 span, .hero .lead, .hero .btn, .top { animation: come 1.1s var(--ease) both; }
  .hero h1 span + span { animation-delay: .1s; }
  .hero .lead { animation-delay: .22s; }
  .hero .btn { animation-delay: .32s; }
}
@keyframes shutter { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes grow { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes come { from { opacity: 0; transform: translateY(.6rem); } }

/* ---------- one column: phones and tablets held upright. Nothing below 1rem; every control at least 2.75rem tall. ---------- */
@media (max-width: 63.99rem) {
  :root { --step-label: 1rem; --sec: clamp(5.5rem, 16vw, 9rem); }
  .top { grid-template-columns: 1fr auto auto; column-gap: 1.75rem; min-height: 4.5rem; }
  .top-links li:not(:first-child) { display: none; }
  .rail { padding-top: 1.25rem; }
  .hero-left, .hero-right { display: contents; }
  .hero h1 { order: 1; grid-column: 1 / -1; margin-top: 0; font-size: clamp(4.25rem, 19.5vw, 10rem); }
  .hero .lead { order: 2; grid-column: 1 / -1; max-width: 32rem; margin-top: 1.25rem; }
  .hero .btn { order: 3; grid-column: 1 / -1; justify-self: start; margin-top: 1.5rem; }
  .print-l { order: 4; grid-column: 1 / span 9; margin-top: clamp(2.75rem, 8vw, 4.5rem); }
  .print-s { order: 5; grid-column: 8 / span 5; width: auto; margin-top: -2.5rem; z-index: 1; }
  .print-w { order: 6; grid-column: 1 / -1; margin: 2.5rem calc(-1 * var(--m)) 0; }
  .hero-note { order: 7; grid-column: 1 / -1; }

  .intro-top, .carte-head, .about-head, .about-tiles { display: block; }
  .intro-note { margin-top: 1.5rem; max-width: 34rem; }
  .times { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; margin-top: 3.5rem; }
  .intro-ph { width: auto; margin: 3.5rem calc(-1 * var(--m)) 0; }

  .carte-note { margin-top: 1.5rem; }
  .grp { display: flex; flex-direction: column; padding-top: 4.5rem; }
  .grp-side { display: contents; }
  .grp h3 { order: 1; padding: 0 0 1.5rem; }
  .list { order: 2; }
  .side-ph { order: 3; margin-top: 3rem; }
  .side-ph-a { width: auto; aspect-ratio: 3 / 2; margin-inline: calc(-1 * var(--m)); }
  .side-ph-b { width: 56%; margin-left: 0; }
  .side-ph-c { width: 78%; margin-left: auto; }
  .list th { padding-right: 1rem; }
  .list .name, .list .desc { display: block; margin-right: 0; }
  .list .desc { margin-top: .2rem; }
  .list td.pick { width: 4.9rem; }
  .allergy { margin-left: 0; }

  .about-head .lead { margin-top: 1.5rem; max-width: 36rem; }
  .about-tiles { margin-top: 3rem; }
  .about-photo { margin-inline: calc(-1 * var(--m)); }
  .about-frame { aspect-ratio: 4 / 3; max-height: 34rem; width: 100%; }
  .about-note { position: static; width: auto; max-width: calc(36rem + 2 * var(--m)); padding: 1.5rem var(--m) 0; background: none; }
  .about-side { margin-top: 2.5rem; max-width: 36rem; }

  .trip-mid { flex-basis: 70vw; }
  .trip-side { flex-basis: 44vw; margin-top: 2.25rem; }

  .contact { grid-template-columns: 7rem minmax(0, 1fr); column-gap: 1.25rem; row-gap: 1.5rem; }
  .contact-say { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .contact-photo { grid-column: 1; grid-row: 2; margin-top: 0; }
  .contact-facts { display: contents; }
  .c-addr { grid-column: 2; grid-row: 2; align-self: center; }
  .hours { grid-column: 1 / -1; grid-row: 3; max-width: 28rem; margin-top: 1rem; }
  .c-kitchen { grid-column: 1 / -1; grid-row: 4; max-width: 28rem; }
  .c-back { grid-column: 1 / -1; grid-row: 5; }
  .c-addr a, .c-back a, .foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

  .foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem 1.5rem; }
  .foot-places { grid-column: 1 / -1; }
  .foot-col, .foot-row nav.foot-col { grid-column: auto; gap: .15rem; }
  .foot-col p:not(.label) { padding-block: .35rem; }
  .foot-end { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .tray { right: 1rem; bottom: 1rem; }
}
/* Tablets held upright: the description stays on the line of its dish. */
@media (min-width: 44rem) and (max-width: 63.99rem) {
  .list .name, .list .desc { display: inline; }
  .list .name { margin-right: .6rem; }
  .foot-row { grid-template-columns: repeat(3, 1fr); }
}
/* On a long one-column page nothing waits unseen for its entrance: parts settle into place but are never faded out. */
@media (max-width: 63.99rem) and (prefers-reduced-motion: no-preference) {
  .js [data-rise] > *, .js [data-up] { opacity: 1; transform: translateY(.5rem); }
  .js [data-show] img { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .q-btn, .q-btn svg, .tray, a { transition: none; }
  .tray-panel, .q-n.bump { animation: none; }
  .trip { --p: 1 !important; }
}
