/* Gündüz Gece: a printed carte that follows the hour. Bone in the morning, stone in the afternoon, deep green in
   the evening, ink at night. One brass mark: the "now" dot and a few short rules. */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #e9e7e2; }
@property --ground { syntax: '<color>'; inherits: true; initial-value: #dedbd4; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #1b1a17; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #4b4841; }
@property --brass { syntax: '<color>'; inherits: true; initial-value: #8a6d34; }

:root {
  --step-small: .9375rem;
  --step-note: 1rem;
  --step-body: clamp(1.1875rem, 1.13rem + .26vw, 1.3125rem);
  --step-dish: clamp(1.3125rem, 1.25rem + .3vw, 1.5625rem);
  --step-lead: clamp(1.4375rem, 1.3rem + .6vw, 1.75rem);
  --step-mid: clamp(1.875rem, 1.35rem + 1.8vw, 2.875rem);
  --step-head: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --pad: clamp(1.25rem, 3.4vw, 3.5rem);
  --pad-y: clamp(1.25rem, 2.6vw, 2.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --photo: saturate(.84) contrast(1.04) brightness(.93);
  --art: 13%;
}

/* The five hours of the day. Three paper tones, then the turn to night. */
[data-phase="kahvalti"] { --paper: #e9e7e2; --ground: #dedbd4; --ink: #1b1a17; --muted: #4b4841; --brass: #8a6d34; }
[data-phase="ogle"] { --paper: #e2dfd8; --ground: #d6d2ca; --ink: #1b1a17; --muted: #48453e; --brass: #84682f; }
[data-phase="kahve"] { --paper: #d1ccc2; --ground: #c4beb2; --ink: #1a1916; --muted: #3b3832; --brass: #75592a; }
[data-phase="aksam"] { --paper: #1d2a24; --ground: #16211c; --ink: #e7e3d8; --muted: #b9baab; --brass: #c2a265; }
[data-phase="gece"] { --paper: #111412; --ground: #0a0c0b; --ink: #dedace; --muted: #aaaa9d; --brass: #b99a5e; }
[data-phase="aksam"], [data-phase="gece"] { --art: 16%; } /* the drawings read fainter on a dark sheet */

html, .room { transition: --paper 1.8s var(--ease-io), --ground 1.8s var(--ease-io), --ink 1.8s var(--ease-io), --muted 1.8s var(--ease-io), --brass 1.8s var(--ease-io); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 var(--step-body)/1.5 "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; text-decoration-thickness: .05em; transition: text-decoration-color .8s var(--ease), 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(--paper); }
h1, h2 { font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -.012em; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; background: var(--ink); color: var(--paper); padding: .9rem 1.25rem; }
.skip:focus { top: 1rem; }

/* Small letterspaced capitals: labels, the action, the hours under a heading. */
.btn, .top a, .svc-hours, .db-now, .foot-blocks strong { font-size: var(--step-small); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.rule { display: block; width: 2.5rem; height: .0625rem; background: var(--brass); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .5rem 2.25rem; background: var(--ink); color: var(--paper); text-decoration: none; text-align: center; border-radius: .0625rem; transition: background-color .8s var(--ease), opacity .3s var(--ease); }
.btn:hover { background: var(--muted); }
.btn:active { opacity: .78; }

.mark { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-width: 2.75rem; min-height: 2.75rem; text-decoration: none; white-space: nowrap; }
.mark-i { width: 1.375rem; height: 1.375rem; }

/* A line of text that changes: the old one fades out as the new one fades in. */
.sw { display: inline-grid; vertical-align: bottom; }
.sw > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity 1s var(--ease); }
.sw > .sw-in, .sw > .sw-out { opacity: 0; }

/* ---------- the spread: the carte on the left page, the plate on the right, one margin all round ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--pad); padding: 0 var(--pad); align-items: start; }
.sheet { container-type: inline-size; }
.side { position: sticky; top: 0; height: 100svh; padding: var(--pad-y) 0; display: flex; flex-direction: column; gap: 1.5rem; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--ground); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: var(--photo); transition: opacity 2s var(--ease-io); animation: drift 40s ease-in-out infinite alternate; }
/* The photograph is the one of the hour on screen; the page's data-phase says which. */
[data-phase="kahvalti"] .stage [data-photo="kahvalti"], [data-phase="ogle"] .stage [data-photo="ogle"], [data-phase="kahve"] .stage [data-photo="kahve"], [data-phase="aksam"] .stage [data-photo="aksam"], [data-phase="gece"] .stage [data-photo="gece"] { opacity: 1; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

.top { height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.top a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.top > a:first-child { justify-self: start; }
.top > a:last-child { justify-self: end; }

.hero { min-height: calc(100svh - 5rem); display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(3rem, 19svh, 12rem) 0 6rem; }
.hero h1 { font-size: clamp(3.25rem, 16.5cqi, 8.5rem); line-height: .95; letter-spacing: -.02em; white-space: nowrap; }
.hero .rule { margin-top: 2.25rem; }
.hero .lead { max-width: 27ch; margin-top: 2rem; font-size: var(--step-lead); font-weight: 400; line-height: 1.35; }
.hero .btn { margin-top: 2.5rem; }
.now { margin-top: 1.5rem; max-width: 32ch; font-style: italic; color: var(--muted); }

.intro { display: grid; gap: 3rem; padding-bottom: clamp(7rem, 15vw, 11rem); }
.intro-text { max-width: 24rem; }
.intro-text h2 { margin-bottom: 2rem; }
.intro-text p + p { margin-top: 1em; }
.timetable { display: grid; align-content: start; font-size: var(--step-lead); font-weight: 400; line-height: 1.3; }
.timetable a, .tt-end { display: flex; align-items: center; gap: 1.25rem; min-height: 2.75rem; text-decoration: none; }
.tt-h { font-variant-numeric: lining-nums tabular-nums; min-width: 3.1em; }
.tt-n { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .28em; text-decoration-thickness: .05em; transition: text-decoration-color .8s var(--ease); }
.timetable a:hover .tt-n { text-decoration-color: currentColor; }
.tt-end { color: var(--muted); }
@container (min-width: 34rem) {
  .intro { grid-template-columns: minmax(0, 24rem) auto; justify-content: space-between; }
  .timetable { padding-top: calc(var(--step-head) + 1.6rem); }
}

.daybar--m { display: none; }
/* Behind each menu sits one large botanical engraving of a plant that is on it (content/art.mjs): the tea plant
   at breakfast, a grapevine at dinner. The page paints its ink through the drawing at a low strength, so it reads
   as a shade of the paper. It stands upright at the outer edge of the carte, like a plate in a book, and does
   not move; it only fades in, slowly, when its menu arrives. */
.menu { position: relative; isolation: isolate; }
.svc { position: relative; padding-bottom: clamp(7rem, 15vw, 11rem); scroll-margin-top: 3rem; }
.svc-art { position: absolute; z-index: -1; top: 0; right: max(-1 * var(--pad), -1 * min(var(--w), 80cqi) * var(--off)); width: min(var(--w), 80cqi); aspect-ratio: var(--ar); pointer-events: none;
  background-color: color-mix(in oklab, var(--ink) var(--art, 13%), transparent);
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat;
  transform: rotate(var(--tilt)) scaleX(var(--flip, 1)); }
.svc-photo { display: none; }
.svc-head { margin-bottom: 3.75rem; }
.svc-hours { margin-top: 1.1rem; font-variant-numeric: lining-nums tabular-nums; }
.svc-head .rule { margin-top: 1.75rem; }
.svc-note { margin-top: 1.75rem; max-width: 26ch; font-size: var(--step-lead); font-weight: 400; font-style: italic; line-height: 1.3; }
.rows { display: grid; gap: 1.9rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: baseline; }
.row .name { font-size: var(--step-dish); font-weight: 600; line-height: 1.2; }
.row .price { font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.row .desc { grid-column: 1; margin-top: .3rem; max-width: 36ch; font-style: italic; line-height: 1.4; color: var(--muted); }
.allergy { padding-bottom: 6rem; max-width: 44ch; color: var(--muted); }

/* ---------- the day bar: the five services as one day, and where "now" is on it ---------- */
.daybar { color: var(--ink); }
.db-info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.db-name, .db-hours { font-size: var(--step-mid); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.db-hours { font-variant-numeric: lining-nums tabular-nums; justify-items: end; }
.db-now { margin-top: .4rem; color: var(--muted); }
.db-track { position: relative; margin-top: 1.1rem; }
.db-track ol { display: flex; gap: .375rem; }
.db-track li { flex: var(--d) 1 auto; min-width: 0; }
.db-track a { display: block; min-height: 2.75rem; padding-top: .65rem; border-top: .125rem solid color-mix(in oklab, var(--ink) 22%, transparent); font-size: var(--step-note); white-space: nowrap; text-decoration: none; color: var(--muted); transition: border-color 1.2s var(--ease), color 1.2s var(--ease); }
.db-track a:hover { color: var(--ink); }
.db-track a[aria-current] { border-top-color: var(--ink); color: var(--ink); }
.l-short { display: none; }
.db-dot { position: absolute; top: -.3125rem; left: 0; width: .75rem; height: .75rem; margin-left: -.375rem; border-radius: 50%; background: var(--brass); border: .125rem solid var(--paper); transition: transform 1.6s var(--ease); animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- the room, all day: one frame, its picture and the whole field change with the hour ---------- */
.room { background: var(--paper); color: var(--ink); min-height: 100svh; padding: clamp(4.5rem, 9vw, 8rem) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 28rem) minmax(0, 1fr); gap: var(--pad); align-items: center; }
.room-text { align-self: start; }
.room-text p { margin-top: 1.5rem; max-width: 22ch; }
.frame { all: unset; display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; background: var(--ground); transition: opacity .3s var(--ease); }
.frame:focus-visible { outline: .125rem solid var(--ink); outline-offset: .375rem; }
.frame:active { opacity: .85; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: var(--photo); transition: opacity 2.2s var(--ease-io); }
.frame img.on { opacity: 1; }
.room-cap { align-self: end; justify-self: end; display: grid; justify-items: end; text-align: right; gap: .75rem; }
.room-time { font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -.012em; font-variant-numeric: lining-nums tabular-nums; }
.room-line { font-size: var(--step-lead); font-weight: 400; line-height: 1.3; }

/* ---------- hours and contact ---------- */
.contact { --paper: #1d2a24; --ground: #16211c; --ink: #e7e3d8; --muted: #b9baab; --brass: #c2a265; background: var(--paper); color: var(--ink); min-height: 86svh; padding: clamp(4rem, 8vw, 7rem) var(--pad) var(--pad); display: grid; align-content: space-between; gap: 5rem; }
.contact .lead { margin-top: 1.75rem; max-width: 27ch; font-size: var(--step-lead); font-weight: 400; line-height: 1.35; }
.contact .btn { margin-top: 2.25rem; }
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: start; }
.contact-facts { display: grid; gap: .35rem; justify-items: end; text-align: right; font-size: var(--step-lead); font-weight: 400; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; }
.contact-facts a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.hours-big { font-size: calc((100vw - 2 * var(--pad)) / var(--fit, 4.72)); font-weight: 300; line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hours-big > span { display: block; }

/* ---------- the close ---------- */
.foot { --paper: #e9e7e2; --ground: #dedbd4; --ink: #1b1a17; --muted: #4b4841; --brass: #8a6d34; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; overflow: hidden; }
.foot-photo { position: relative; min-height: 20rem; overflow: hidden; background: var(--ground); }
.foot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo); transform: scale(1.3); transform-origin: 38% 30%; }
.foot-side { padding: clamp(3rem, 6vw, 5.5rem) var(--pad) var(--pad); display: flex; flex-direction: column; }
.foot .mark { align-self: flex-start; font-size: var(--step-lead); font-weight: 400; }
.foot-nav { display: grid; gap: .15rem; justify-items: start; margin-top: 3rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--step-mid); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; text-decoration: none; }
.foot-nav:hover a:not(:hover) { color: var(--muted); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; font-variant-numeric: lining-nums tabular-nums; }
.foot-blocks strong { display: inline-block; margin-bottom: .5rem; }
.foot-blocks a { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; }
.legal { margin-top: auto; padding-top: 3rem; font-size: var(--step-note); color: var(--muted); max-width: 62ch; }

/* ---------- entrances: the parts of a section arrive one after another, slowly, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] > * { opacity: 0; transform: translateY(.75rem); }
  .js [data-rise].in > * { opacity: 1; transform: none; transition: opacity 1.5s var(--ease) calc(var(--i, 0) * 90ms), transform 1.7s var(--ease) calc(var(--i, 0) * 90ms); }
  .js [data-rise].in.at-once > * { transition: none; }
  .js .hero[data-rise] > h1 { opacity: 1; transform: none; }
  .js .stage { opacity: 0; }
  .js.ready .stage { opacity: 1; transition: opacity 2.2s var(--ease); }
  .js .svc-art { opacity: 0; transition: opacity 2.6s var(--ease) .3s; }
  .js .svc.seen .svc-art { opacity: 1; }
}

/* ---------- one column: phones and tablets ---------- */
@media (max-width: 56.24rem) {
  .split { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
  .side { order: -1; height: 46svh; padding: 0; z-index: 0; }
  .daybar--d { display: none; }
  .sheet { position: relative; z-index: 1; background: var(--paper); padding: 0 var(--pad); }
  .top { height: 4.5rem; }
  .hero { min-height: 0; padding: 1.75rem 0 5rem; }
  .hero .rule { margin-top: 1.5rem; }
  .hero .lead { margin-top: 1.5rem; }
  .hero .btn { margin-top: 1.75rem; }
  .now { margin-top: 1.25rem; }
  .daybar--m { display: block; position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--pad)) 3rem; padding: .85rem var(--pad) .1rem; background: var(--ground); }
  .daybar--m .db-name, .daybar--m .db-hours { font-size: var(--step-lead); font-weight: 400; }
  .daybar--m .db-now { display: none; }
  .daybar--m .db-track { margin-top: .9rem; }
  .daybar--m .db-dot { border-color: var(--ground); }
  .l-long { display: none; }
  .l-short { display: inline; }
  .svc { scroll-margin-top: 8.5rem; }
  .svc-photo { display: block; margin-bottom: 2.75rem; overflow: hidden; aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; background: var(--ground); }
  .svc-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo); }
  /* On a phone the drawing starts under the service's photograph, beside its heading. */
  .svc-art { top: calc(min(125cqi, 62svh) + 2.75rem); }
  .svc-head { margin-bottom: 3rem; }
  .room { grid-template-columns: 1fr; min-height: 0; padding: 5rem var(--pad); gap: 2.75rem; }
  .frame { width: 72vw; max-width: 24rem; justify-self: center; }
  .room-cap { justify-self: center; justify-items: center; text-align: center; }
  .contact { min-height: 0; gap: 4rem; padding-top: 5rem; }
  .contact-top { grid-template-columns: 1fr; }
  .contact-facts { justify-items: start; text-align: left; }
  .foot { grid-template-columns: 1fr; }
  .foot-photo { height: 50svh; }
  .foot-side { padding-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html, .room { transition: none; }
  .stage img, .db-dot { animation: none; }
  .stage img, .frame img { transition-duration: .01s; }
  .sw > span, .btn, .db-track a, .db-dot, a, .tt-n { transition: none; }
}
