/* Eşkina Meyhanesi. A quiet page: one serif (Bodoni Moda, roman and italic), a night-sea ground with bone type,
   the carte on a bone sheet with ink, and one brass note. Photographs hang at uneven sizes, like prints.
   Everything is square-cornered; lines appear only inside the carte, the way a printed menu rules its courses. */
:root {
  --night: #0e1620;
  --night-2: #17222f;
  --bone: #e3ded3;
  --ink: #1c1d1c;
  --ink-soft: #55524a;
  --on-night: #e3ded3;
  --on-night-soft: #a9afb7;
  --brass: #b9975b;
  --brass-deep: #7a5c22;

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  --step-fact: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  --step-head: clamp(2.375rem, 1.5rem + 3.8vw, 4.75rem);
  --d: clamp(4rem, 8.3vw, 8rem);

  --m: clamp(1.25rem, 6vw, 6.5rem);
  --g: clamp(1rem, 2vw, 2rem);
  --gap: clamp(7rem, 15vw, 14rem);
  --half: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--on-night); font: 400 var(--step-body)/1.5 var(--serif); font-optical-sizing: auto; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, p, ol, ul, dl, dd, dt, figure, table, caption { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 400; letter-spacing: -.015em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
:focus-visible { outline: .125rem solid var(--brass); outline-offset: .25rem; }
::selection { background: var(--brass); color: var(--night); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -6rem; z-index: 20; background: var(--bone); color: var(--ink); padding: .9rem 1.1rem; }
.skip:focus { top: 1rem; }

/* small capitals for labels: the one place the page uses capitals */
.label, .top-links a, .top-mark, .btn, .grp-n, .grp-c, .to-top { font-size: var(--step-small); line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; }
.label { color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.5rem; border: .0625rem solid var(--brass); color: var(--on-night); transition: background-color .6s ease, color .6s ease, transform .6s var(--ease); }
.btn:active { transform: scale(.98); transition-duration: .15s; }
.ph { overflow: clip; background: var(--night-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.05) brightness(.88); }

/* ---------- the top edge: two links, the name, the one action ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.25rem var(--m); }
.top-links { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.top-links a, .top-mark { display: inline-flex; align-items: center; min-height: 3rem; transition: color .5s ease; }
.top .btn { justify-self: end; }

/* ---------- first screen: the name steps across, two photographs set against the step ---------- */
.hero { --t: max(44svh, 21rem); position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); grid-template-rows: calc(var(--t) - .9 * var(--d)) auto auto 1fr; height: 100svh; min-height: 42rem; padding: 0 var(--m); overflow: clip; }
.hero h1 { grid-column: 2 / 13; grid-row: 2; position: relative; z-index: 2; font-size: var(--d); line-height: 1; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: .2em; margin-bottom: -.2em; }
.hero h1 .line > span { display: block; }
.hero h1 .line--2 { margin-left: calc(4 * ((100% - 10 * var(--g)) / 11 + var(--g))); }
.hero-small { grid-column: 10 / 13; grid-row: 1; align-self: end; height: calc(var(--t) - .9 * var(--d) - max(10svh, 5.75rem) - 1.25rem); margin-bottom: 1.25rem; }
.hero-small img { object-position: 50% 68%; }
.hero-say { grid-column: 6 / 11; grid-row: 3; margin-top: 2.25rem; max-width: 36ch; font-size: max(1.125rem, var(--step-body)); color: var(--on-night-soft); }
.hero-tall { grid-column: 2 / 6; grid-row: 2 / 5; align-self: start; margin-top: calc(var(--d) + .75rem); aspect-ratio: 4 / 5; }

/* ---------- open from six: a title, a note, a row of facts, one photograph ---------- */
.intro { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.intro-top { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
.intro-top h2 { grid-column: 1 / 8; }
.intro-note { grid-column: 10 / 13; color: var(--on-night-soft); }
.facts { grid-column: 1 / -1; margin-top: clamp(4.5rem, 8vw, 7.5rem); display: flex; justify-content: space-between; gap: 2rem var(--g); }
.facts dt { font-size: var(--step-fact); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.facts dd { margin-top: .7rem; max-width: 22ch; font-size: var(--step-small); font-style: italic; color: var(--on-night-soft); }
.intro-ph { grid-column: 8 / 13; margin-top: clamp(4rem, 7vw, 6.5rem); aspect-ratio: 4 / 3; }

/* ---------- the order of the table: three photographs down a diagonal, each with its words ---------- */
.order { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; scroll-margin-top: -4rem; }
.order h2 { grid-column: 6 / 13; grid-row: 1; }
.stage { display: contents; }
.stage p { max-width: 36ch; }
.stage--1 .stage-ph { grid-column: 1 / 5; grid-row: 1 / 4; aspect-ratio: 3 / 4; }
.stage--1 p { grid-column: 6 / 10; grid-row: 2; margin-top: 2.5rem; }
.stage--2 .stage-ph { grid-column: 6 / 9; grid-row: 3; margin-top: clamp(4rem, 9vw, 8rem); aspect-ratio: 1 / 1; }
.stage--2 p { grid-column: 9 / 13; grid-row: 3; margin-top: clamp(4rem, 9vw, 8rem); }
.stage--3 .stage-ph { grid-column: 8 / 13; grid-row: 4; margin-top: clamp(6rem, 12.5vw, 11.25rem); aspect-ratio: 16 / 10; }
.stage--3 p { grid-column: 4 / 8; grid-row: 4; margin-top: clamp(6rem, 12.5vw, 11.25rem); }

/* ---------- the carte: a bone sheet, courses in the order of the night, name, italic line, figure ---------- */
.carte { margin-top: var(--half); padding: var(--half) var(--m); background: var(--bone); color: var(--ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.carte .label { color: var(--brass-deep); }
.carte-side { grid-column: 1 / 4; align-self: stretch; }
.carte-head p { margin-top: 1.25rem; max-width: 24ch; font-style: italic; }
.carte-ph { margin-top: 3rem; aspect-ratio: 4 / 5; }
.carte-ph img { object-position: 50% 70%; }
.sofra { display: none; }
.js .sofra { display: block; position: sticky; top: 2rem; margin-top: 3rem; padding-bottom: 1rem; }
.sofra-ask { margin-top: .6rem; }
.stepper { display: inline-grid; grid-template-columns: 3rem auto 3rem; align-items: center; margin-top: 1rem; }
.stepper button { all: unset; box-sizing: border-box; width: 3rem; height: 3rem; display: grid; place-items: center; border: .0625rem solid var(--ink); cursor: pointer; transition: background-color .5s ease, color .5s ease, opacity .5s ease; }
.stepper button svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.stepper button:focus-visible { outline: .125rem solid var(--brass-deep); outline-offset: .25rem; }
.stepper button[disabled] { opacity: .35; cursor: default; }
.count { display: flex; align-items: baseline; justify-content: center; gap: .45rem; min-width: 8.5rem; padding: 0 1rem; }
.count-n { display: inline-grid; justify-items: end; min-width: 1.2em; font-size: var(--step-lead); line-height: 3rem; font-variant-numeric: lining-nums tabular-nums; }
.count-n > span { grid-area: 1 / 1; transition: opacity .7s ease; }
.count-n > .gone { opacity: 0; }
.count-u { font-style: italic; }
.sofra-result { margin-top: 1.25rem; max-width: 27ch; font-size: var(--step-small); line-height: 1.5; }
.carte-list { grid-column: 5 / 13; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.carte-col { display: grid; gap: clamp(3rem, 4.5vw, 4.25rem); }
.grp { width: 100%; border-collapse: collapse; scroll-margin-top: 2rem; }
.grp caption { text-align: left; padding-bottom: .5rem; }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; border-bottom: .0625rem solid color-mix(in srgb, var(--ink) 55%, transparent); }
.grp-c { color: var(--ink-soft); }
.grp-note { display: block; margin-top: .9rem; font-size: var(--step-small); font-style: italic; color: var(--ink-soft); }
.grp th { padding: .72rem 0; font-weight: 400; text-align: left; vertical-align: top; }
.grp td { padding: .72rem 0 .72rem 1rem; text-align: right; vertical-align: top; white-space: nowrap; font-size: var(--step-body); font-variant-numeric: lining-nums tabular-nums; }
.grp td.daily { font-style: italic; }
.nm { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.25; }
.ds { display: block; margin-top: .15rem; max-width: 36ch; font-size: var(--step-small); line-height: 1.45; font-style: italic; }
.qty { margin-left: .7em; font-size: var(--step-small); font-weight: 600; letter-spacing: .08em; color: var(--brass-deep); white-space: nowrap; opacity: 0; transition: opacity .9s ease; }
.grp tr.on .qty { opacity: 1; }
.allergy { grid-column: 1 / -1; margin-top: clamp(3rem, 5vw, 4.5rem); max-width: 58ch; font-size: var(--step-small); font-style: italic; color: var(--ink-soft); }

/* ---------- the fish follows the season: a statement, the table pushed right, one photograph ---------- */
.season { padding: var(--half) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; scroll-margin-top: -4rem; }
.season h2 { grid-column: 1 / -1; max-width: 9.6em; text-indent: 3vw; line-height: 1.02; margin-bottom: clamp(3.5rem, 6.5vw, 6rem); text-wrap: wrap; }
.season-ph { grid-column: 1 / 5; grid-row: 2; aspect-ratio: 4 / 5; }
.season-word { grid-column: 7 / 8; grid-row: 2; align-self: start; padding-top: 1.15rem; }
.season-table { grid-column: 8 / 13; grid-row: 2; align-self: start; }
.months { width: 100%; border-collapse: collapse; }
.months td, .months th { padding: .8rem 0; font-weight: 400; text-align: left; vertical-align: baseline; }
.months tr:nth-child(4n + 1):not(:first-child) > * { padding-top: 2.75rem; }
.months .when { width: 44%; padding-right: 1rem; font-size: var(--step-small); color: var(--on-night-soft); }
.months th { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -.01em; }
.months .how { text-align: right; font-style: italic; font-size: var(--step-small); }
.season-note { margin-top: 3rem; max-width: 38ch; font-size: var(--step-small); font-style: italic; color: var(--on-night-soft); }

/* ---------- bookings: one sentence, one small photograph, the number ---------- */
.contact { padding: var(--gap) var(--m) clamp(6rem, 11vw, 10rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; scroll-margin-top: -4rem; }
.contact-say { grid-column: 1 / 7; font-size: clamp(1.5rem, 1rem + 1.9vw, 2.125rem); line-height: 1.2; letter-spacing: -.01em; max-width: 21em; }
.contact-ph { grid-column: 8 / 10; aspect-ratio: 1 / 1; }
.contact-ph img { filter: saturate(.8) contrast(1.05) brightness(.95); }
.contact-do { grid-column: 10 / 13; display: grid; justify-items: start; gap: .35rem; }
.contact-tel { margin-top: .5rem; font-size: var(--step-lead); line-height: 1.2; white-space: nowrap; }
.contact-tel a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .22em; text-decoration-color: var(--brass); }
.contact-line { font-size: var(--step-small); font-style: italic; color: var(--on-night-soft); }
.contact .btn { margin-top: 1.5rem; }

/* ---------- the close: the name first, then where and when ---------- */
.foot { background: var(--bone); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.75rem) var(--m) clamp(1.5rem, 3vw, 2.5rem); overflow: clip; }
.foot .label { color: var(--brass-deep); }
.foot-name { font-size: 11.4vw; line-height: 1.02; letter-spacing: -.02em; white-space: nowrap; padding-bottom: .12em; }
.foot-name > span { display: inline-block; }
.foot-row { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.foot-places { grid-column: 1 / 7; display: grid; gap: .25rem; font-size: var(--step-fact); line-height: 1.2; letter-spacing: -.01em; }
.foot-places a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-cols { grid-column: 7 / 13; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; column-gap: var(--g); }
.foot-cols ul { margin-top: .6rem; }
.foot-cols li { font-size: var(--step-small); line-height: 2.75rem; }
.foot-cols a { display: inline-block; text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .25em; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); transition: text-decoration-color .5s ease; }
.foot-end { margin-top: clamp(3.5rem, 7vw, 6rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.legal { max-width: 62ch; font-size: var(--step-small); line-height: 1.5; color: var(--ink-soft); }
.to-top { display: inline-flex; align-items: center; min-height: 3rem; white-space: nowrap; }

/* ---------- under the hand: colour only, slowly ---------- */
@media (hover: hover) and (pointer: fine) {
  .top-links a:hover, .top-mark:hover, .to-top:hover { color: var(--brass); }
  .foot .to-top:hover { color: var(--brass-deep); }
  .btn:hover { background: var(--brass); color: var(--night); }
  .stepper button:not([disabled]):hover { background: var(--ink); color: var(--bone); }
  .foot-cols a:hover { text-decoration-color: currentColor; }
  .contact-tel a:hover { text-decoration-color: currentColor; }
}

/* ---------- motion: few moves, all slow; every hidden starting state lives here, so less motion means the finished page ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { animation: line-up 1.25s var(--ease) both .08s; }
  .js .hero h1 .line--2 > span { animation-delay: .22s; }
  .js .hero-say { animation: arrive 1.2s ease both .3s; }
  .js .hero .ph { animation: arrive 1.4s ease both .05s; }
  .js .hero .ph img { animation: settle 2.6s var(--ease-soft) both; }
  .js .hero-tall img { animation: settle 2.6s var(--ease-soft) both, drift 36s ease-in-out 2.6s infinite alternate; }
  .js [data-rise] > * { opacity: 0; transform: translateY(1rem); }
  .js [data-rise].in > * { opacity: 1; transform: none; transition: opacity 1.4s ease calc(var(--i, 0) * 130ms), transform 1.6s var(--ease) calc(var(--i, 0) * 130ms); }
  .js [data-fade] { opacity: 0; transform: translateY(.75rem); }
  .js [data-fade].in { opacity: 1; transform: none; transition: opacity 1.4s ease, transform 1.6s var(--ease); }
  .js main [data-ph]:not(.hero .ph) { opacity: 0; }
  .js main [data-ph]:not(.hero .ph) img { transform: scale(1.06); }
  .js main [data-ph].in:not(.hero .ph) { opacity: 1; transition: opacity 1.6s ease; }
  .js main [data-ph].in:not(.hero .ph) img { transform: none; transition: transform 2.8s var(--ease-soft); }
}
@keyframes line-up { from { transform: translateY(104%); } }
@keyframes arrive { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.07); } }
@keyframes drift { to { transform: scale(1.06); } }

/* ---------- a tablet held upright ---------- */
@media (max-width: 64rem) {
  .hero h1 .line--2 { margin-left: calc(5 * ((100% - 10 * var(--g)) / 11 + var(--g))); }
  .hero-tall { grid-column: 2 / 7; }
  .hero-say { grid-column: 7 / 13; }
  .carte { display: block; }
  .carte-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--g); align-items: start; }
  .carte-ph { margin-top: 0; }
  .js .sofra { position: static; margin-top: 0; }
  .carte-list { margin-top: 5rem; }
  .intro-note { grid-column: 9 / 13; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem var(--g); }
  .contact-say { grid-column: 1 / -1; margin-bottom: 4rem; }
  .contact-ph { grid-column: 1 / 4; }
  .contact-do { grid-column: 5 / 13; }
  .season-word { display: none; }
  .season-table { grid-column: 7 / 13; }
  .foot-places { grid-column: 1 / -1; }
  .foot-cols { grid-column: 1 / -1; margin-top: 2.5rem; }
}

/* ---------- a phone: one column, the unevenness kept with alternating widths ---------- */
@media (max-width: 47.99rem) {
  :root { --d: 13.4vw; --gap: 6.5rem; }
  .top { grid-template-columns: 1fr auto; padding-block: .75rem; }
  .top-mark { display: none; }
  .top .btn { padding-inline: .9rem; white-space: nowrap; letter-spacing: .1em; }
  .top-links { gap: .9rem; }
  .top-links a { letter-spacing: .1em; }
  .hero { display: block; height: 100svh; min-height: 40rem; padding-top: 5rem; }
  .hero-small { width: 46%; height: auto; aspect-ratio: 16 / 10; margin: 0 0 1.5rem auto; }
  .hero h1 .line--2 { margin-left: 16vw; }
  .hero-say { margin-top: 1.5rem; max-width: 30ch; }
  .hero-tall { width: 72%; margin-top: 2rem; }
  .hero-say { grid-column: auto; }
  .intro { display: block; }
  .intro-top { display: block; }
  .intro-note { margin-top: 1.5rem; max-width: 34ch; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; margin-top: 3.5rem; }
  .facts dt { white-space: normal; }
  .intro-ph { margin-top: 3.5rem; }
  .order { display: block; }
  .order h2 { margin-bottom: 2.5rem; }
  .stage { display: block; }
  .stage + .stage { margin-top: 3.5rem; }
  .stage .stage-ph { margin-top: 0; }
  .stage p { margin-top: 1.25rem; }
  .stage--2 .stage-ph { width: 62%; margin-left: auto; }
  .stage--2 p { margin-left: 38%; margin-top: 1.25rem; }
  .stage--3 .stage-ph { width: 78%; }
  .stage--3 p { max-width: 78%; margin-top: 1.25rem; }
  .carte-side { display: block; }
  .carte-ph { width: 60%; margin-top: 2.25rem; }
  .js .sofra { margin-top: 2.75rem; }
  .sofra-result { max-width: 34ch; }
  .carte-list { margin-top: 4rem; grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .season { display: block; }
  .season h2 { text-indent: 0; margin-bottom: 3rem; }
  .months tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .8rem 0; }
  .months td, .months th { padding: 0; }
  .months tr:nth-child(4n + 1):not(:first-child) > * { padding-top: 0; }
  .months th { grid-column: 1; grid-row: 1; }
  .months .how { grid-column: 2; grid-row: 1; align-self: end; }
  .months .when { grid-column: 1 / -1; grid-row: 2; width: auto; padding-top: .15rem; }
  .season-ph { width: 60%; margin: 4rem 0 0 auto; }
  .contact { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 1.25rem; row-gap: 3rem; }
  .contact-say { grid-column: 1 / -1; margin-bottom: 0; }
  .contact-ph { grid-column: 1; }
  .contact-do { grid-column: 2; }
  .foot-name { font-size: 11vw; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .foot-end { display: block; }
  .to-top { margin-top: 1.5rem; }
  /* the last three parts of a long phone page are simply there */
  .js .season [data-rise] > *, .js .contact [data-rise] > *, .js .foot [data-rise] > *, .js .season [data-fade], .js .contact [data-fade], .js main .season [data-ph], .js main .contact [data-ph] { opacity: 1; transform: none; }
  .js main .season [data-ph] img, .js main .contact [data-ph] img { transform: none; }
}

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