/*
 * Izgara Sefası: the public pages. Every value comes from the Paper file
 * "Izgara Sefası, site tasarımı": tokens from its token list, the phone
 * layout from board 91-0, the 1440 layout from M4-0, the booking sheet from
 * PD-0, the status page from S7-0 and the menu from T8-0. Reasons live in
 * DESIGN.md. Square frames, 2px on controls, no shadows, no gradients.
 */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/site/albert-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/site/albert-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Besley";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/site/besley-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Besley";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/site/besley-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-coal: #0c1820;
  --color-coal-2: #13212a;
  --color-coal-3: #1c2d38;
  --color-stone: #ecebe8;
  --color-stone-2: #dfddd8;
  --color-lavas: #f4f0ea;
  --color-ink: #0c1820;
  --color-ink-muted: #4e585e;
  --color-ember: #e25e14;
  --color-line-dark: rgb(244 240 234 / 14%);
  --color-line-light: rgb(12 24 32 / 14%);
  --color-field-line: color-mix(in srgb, var(--color-lavas) 32%, transparent);

  --font-display: "Besley", Georgia, serif;
  --font-text: "Albert Sans", system-ui, sans-serif;

  --text-label: 13px;
  --text-small: 14px;
  --text-body: 16px;
  --text-lead: 18px;
  --text-name: 18px;
  --text-h2: 24px;
  --text-h1: 32px;
  --leading-label: 16px;
  --leading-control: 20px;
  --leading-small: 20px;
  --leading-body: 26px;
  --leading-lead: 28px;
  --leading-name: 26px;
  --leading-h2: 30px;
  --leading-h1: 37px;
  --tracking-display: -0.01em;

  --size-control: 48px;
  --radius-control: 2px;
  --gutter: 24px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: dark;
}

@media (min-width: 1024px) {
  :root {
    --text-lead: 20px;
    --text-name: 20px;
    --text-h2: 32px;
    --text-h1: 48px;
    --leading-lead: 30px;
    --leading-name: 28px;
    --leading-h2: 40px;
    --leading-h1: 53px;
    --gutter: max(24px, calc((100% - 1200px) / 2));
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-coal);
  color: var(--color-lavas);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

/* The width and height attributes reserve the box; CSS sets the size. */
img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* A phone number never breaks across lines. */
a[href^="tel:"] {
  white-space: nowrap;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-lavas);
  outline-offset: 2px;
}

.on-stone :focus-visible {
  outline-color: var(--color-ink);
}

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--color-lavas);
  color: var(--color-ink);
  font-weight: 500;
  border-radius: var(--radius-control);
}

.skip:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */

.h1,
.h2,
.name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

.h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

.name {
  font-size: var(--text-name);
  line-height: var(--leading-name);
  letter-spacing: 0;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  text-wrap: pretty;
}

.body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.label {
  font-size: var(--text-label);
  line-height: var(--leading-label);
  font-weight: 500;
}

.strong {
  font-weight: 500;
}

/* ---------- Controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--size-control);
  padding-inline: 24px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-ember);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  cursor: default;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--size-control);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 20px;
}

.go svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .go:hover svg {
    transform: translateX(3px);
  }
}

/* ---------- Header ---------- */

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding-inline: var(--gutter);
  background: var(--color-coal);
}

.hdr__mark {
  display: flex;
  align-items: center;
  height: 44px;
}

.hdr__mark img {
  width: 27px;
  height: 28px;
}

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hdr__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .hdr {
    height: 72px;
  }

  .hdr__nav {
    gap: 32px;
  }
}

/* ---------- Hero (91-0: 99-0, H2-0, H6-0 / M4-0: Kahraman) ---------- */

.hero__media {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--color-coal);
}

.hero__media video,
.hero__media img.hero__poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0%;
}

/* Without script Chrome draws the video's own controls; the still covers them. */
.hero__media img.hero__still {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero__logo {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 206px;
  height: 109px;
}

.hero__logo img {
  width: 100%;
  height: 100%;
}

.loop-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-coal);
  color: var(--color-lavas);
  cursor: pointer;
}

.loop-pause[hidden] {
  display: none;
}

.loop-pause svg {
  width: 20px;
  height: 20px;
}

.loop-pause .i-play,
.loop-pause[aria-pressed="true"] .i-pause {
  display: none;
}

.loop-pause[aria-pressed="true"] .i-play {
  display: block;
}

.hero__copy {
  padding: 24px var(--gutter);
}

.hero__copy .lead {
  margin-top: 12px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 24px var(--gutter) 96px;
  }

  /* 560 and 520 at 1440 (M4-0); both give way together between 1024 and 1248. */
  .hero__media {
    flex: 0 1 560px;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero__logo {
    left: 32px;
    top: 32px;
  }

  .hero__copy {
    flex: 0 1 520px;
    min-width: 0;
    padding: 0;
  }

  .hero__copy .lead {
    margin-top: 16px;
  }

  .hero__actions {
    margin-top: 32px;
  }
}

/* ---------- Chef (HE-0 / Şef bloğu) ---------- */

.chef {
  padding: 24px 0 64px;
}

.chef__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.chef__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--gutter) 0;
}

/* 44px to tap, laid out as the board's 8px + 26px line (HN-0). */
.chef__ig {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  margin: -1px 0 -9px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .br-phone {
    display: none;
  }
}

.chef__ig svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .chef {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 96px var(--gutter);
  }

  .chef__photo {
    flex: 0 1 560px;
    min-width: 0;
    width: auto;
  }

  .chef__text {
    flex: 0 1 520px;
    min-width: 0;
    padding: 0;
  }

  .chef__text .body {
    font-size: var(--text-lead);
    line-height: var(--leading-lead);
  }
}

/* ---------- Visit (HR-0 / Ziyaret) ---------- */

.visit {
  padding: 32px 0 64px;
  scroll-margin-top: 0;
}

.visit .h2 {
  padding-inline: var(--gutter);
  margin-bottom: 24px;
}

.visit__photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 50% 30%;
}

.rows {
  padding: 24px var(--gutter) 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding-block: 16px;
  border-top: 1px solid var(--color-line-dark);
}

.rows > li:last-child .row {
  border-bottom: 1px solid var(--color-line-dark);
}

.row svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .visit {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 520px);
    grid-template-rows: 1fr auto auto 1fr;
    justify-content: space-between;
    column-gap: 80px;
    padding: 96px var(--gutter);
  }

  .visit__photo {
    grid-column: 1;
    grid-row: 1 / 5;
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: 50% 50%;
  }

  .visit .h2 {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
    margin-bottom: 32px;
  }

  .visit .rows {
    grid-column: 2;
    grid-row: 3;
    padding: 0;
  }
}

/* ---------- Stone menu sheet (IK-0 / Menü önizleme, taş levha) ---------- */

.sheet {
  padding: 48px var(--gutter);
  background: var(--color-stone);
  color: var(--color-ink);
}

.sheet .h2 {
  margin-bottom: 24px;
}

.dish {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--color-line-light);
}

.dish img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: cover;
}

.dish__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sheet__more {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid var(--color-line-light);
}

.sheet__more .go {
  min-height: 26px;
  line-height: var(--leading-body);
}

@media (min-width: 1024px) {
  .sheet {
    padding: 96px var(--gutter);
  }

  .sheet .h2 {
    margin-bottom: 32px;
  }

  .sheet--home .dishes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    column-gap: 64px;
  }

  .sheet--home .dishes > li:nth-child(2n) .dish {
    border-bottom: 1px solid var(--color-line-light);
  }

  .sheet--home .dish {
    gap: 24px;
    padding-block: 16px;
  }

  .sheet--home .dish img {
    width: 120px;
    height: 120px;
  }

  .sheet--home .dish__text {
    gap: 4px;
  }

  .sheet--home .sheet__more {
    padding-top: 32px;
    border-top: 0;
  }
}

/* ---------- Closing band (C4-0 / Kapanış, kömür bandı) ---------- */

.close {
  padding: 64px var(--gutter) 0;
  border-top: 1px solid var(--color-line-dark);
}

.close__logo {
  width: 206px;
  height: 109px;
  margin-bottom: 40px;
}

.close .h2 {
  margin-bottom: 12px;
}

.close__line {
  margin-bottom: 24px;
}

.close .btn {
  display: flex;
  width: max-content;
  margin-bottom: 64px;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-inline: var(--gutter);
  padding: 24px 0 40px;
  border-top: 1px solid var(--color-line-dark);
}

.foot__addr {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 12px;
}

.foot__links a,
.foot__tel {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-weight: 500;
}

/* Taller to tap than they look: the padding reaches into the gaps, the layout keeps the board's 26px lines. */
.foot__links a {
  padding-block: 6px;
  margin-block: -6px;
}

.foot__tel {
  align-self: flex-start;
  padding-block: 9px;
  margin-block: -9px;
}

.sheet__more .go {
  padding-block: 9px;
  margin-block: -9px;
}

@media (min-width: 1024px) {
  .close {
    padding: 96px var(--gutter) 0;
  }

  .close .h2 {
    max-width: 760px;
  }

  .close__line {
    max-width: 500px;
    font-size: var(--text-lead);
    line-height: var(--leading-lead);
  }

  .foot {
    padding-bottom: 48px;
  }

  .close .btn {
    margin-bottom: 96px;
  }

  .foot {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px;
  }

  .foot__addr {
    gap: 8px;
  }

  .foot__links {
    flex-wrap: nowrap;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hdr__nav a:hover,
  a.row:hover .strong,
  .chef__ig:hover span,
  .foot a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
}

/* ---------- Menu page (T8-0) ---------- */

.menu-page {
  padding: 40px var(--gutter) 64px;
}

.menu-page .h1 {
  margin-bottom: 8px;
}

.menu-page .h2 {
  margin: 48px 0 24px;
}

.menu-page .h2--note {
  margin-bottom: 8px;
}

.menu-page .first {
  margin-top: 40px;
}

.menu-page .note {
  margin-bottom: 24px;
}

.line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--color-line-light);
}

.lines > .line:last-child {
  border-bottom: 1px solid var(--color-line-light);
}

.line .name {
  font-size: var(--text-body);
  letter-spacing: var(--tracking-display);
}

.line__price {
  font-weight: 500;
  white-space: nowrap;
}

.close--menu {
  padding-top: 48px;
  border-top: 0;
}

.close--menu .btn {
  margin-bottom: 48px;
}

@media (min-width: 1024px) {
  .menu-page,
  .close--menu {
    padding-inline: max(24px, calc((100% - 720px) / 2));
  }

  .foot--menu {
    margin-inline: max(24px, calc((100% - 720px) / 2));
  }


  .menu-page {
    padding-top: 64px;
    padding-bottom: 96px;
  }
}

/* ---------- Status page (S7-0) ---------- */

.status {
  padding: 32px var(--gutter) 64px;
}

.status__code {
  margin-bottom: 4px;
}

.status .h1 {
  margin-bottom: 12px;
}

.status__line {
  margin-bottom: 32px;
}

.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--color-line-dark);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--color-line-dark);
}

.facts dt {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: 500;
}

.facts dd {
  font-weight: 500;
  text-align: right;
}

.status__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  /* S7-0 draws 26 px rows 20 px apart; the 46 px tap areas reach 10 px past the last row */
  margin-bottom: -10px;
}

.status__actions .go {
  min-height: 46px;
}

.status__flash {
  margin-bottom: 16px;
}

.status__confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 32px;
}

.status__confirm form {
  margin: 12px 0 4px;
}

.status__ask {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.status__ask .field {
  width: 100%;
}


.foot--plain {
  margin: 0;
  padding: 24px var(--gutter) 40px;
}

@media (min-width: 1024px) {
  .status,
  .foot--plain {
    padding-inline: max(24px, calc((100% - 560px) / 2));
  }

  .status {
    padding-top: 64px;
  }

  .foot--plain {
    flex-direction: column;
    gap: 16px;
  }
}

/* ---------- Booking sheet (PD-0) ---------- */

.book {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-coal-2);
  color: var(--color-lavas);
  overflow: hidden;
}

.book[open] {
  display: flex;
  flex-direction: column;
}

.book::backdrop {
  background: rgb(12 24 32 / 72%);
}

.book--page {
  position: static;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}

.book__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 56px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--color-line-dark);
}

.book__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.book__close svg {
  width: 24px;
  height: 24px;
}

.book__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.book__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 24px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.book--page .book__body {
  overflow: visible;
}

.book fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group legend {
  margin-bottom: 12px;
  padding: 0;
}

.stepper {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-control);
}

.stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-body);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.stepper button:active:not([disabled]) {
  transform: scale(0.97);
}

.stepper button[disabled] {
  cursor: default;
  color: color-mix(in srgb, var(--color-lavas) 40%, transparent);
}

.stepper output {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 52px;
  border-inline: 1px solid var(--color-line-dark);
  font-weight: 500;
  line-height: var(--leading-control);
}

.days {
  display: flex;
  gap: 8px;
  margin-right: -24px;
  padding-right: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.days::-webkit-scrollbar {
  display: none;
}

.chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  width: 72px;
  height: 64px;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-control);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.day b {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-control);
}

.day span {
  font-size: var(--text-label);
  font-weight: 500;
  line-height: var(--leading-label);
}

.chip-input:checked + .day,
.chip-input:checked + .slot {
  border-color: var(--color-lavas);
  background: var(--color-lavas);
  color: var(--color-ink);
}

.chip-input:focus-visible + .day,
.chip-input:focus-visible + .slot {
  outline: 2px solid var(--color-lavas);
  outline-offset: 2px;
}

.slots-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--color-coal-3);
  border-radius: var(--radius-control);
  background: var(--color-coal-3);
  font-weight: 500;
  line-height: var(--leading-control);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.day:active,
.slot:active {
  transform: scale(0.97);
}

.chip-input:disabled + .slot {
  border: 1px dashed var(--color-line-dark);
  background: none;
  text-decoration: line-through 1px;
  cursor: default;
  transform: none;
}

.book__msg:empty {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: var(--text-small);
  font-weight: 500;
  line-height: var(--leading-small);
}

.field input,
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-field-line);
  border-radius: var(--radius-control);
  background: var(--color-coal);
  color: var(--color-lavas);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-control);
}

.field input::placeholder {
  color: var(--color-lavas);
  opacity: 1;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-lavas);
  outline-offset: 0;
  border-color: var(--color-lavas);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-lavas);
  border-width: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line-dark);
  background: var(--color-coal-2);
}

.book--page .book__bar {
  position: sticky;
  bottom: 0;
}

@media (min-width: 1024px) {
  .book {
    inset: 0;
    width: 480px;
    height: min(860px, calc(100% - 64px));
    margin: auto;
    border-radius: var(--radius-control);
  }

  .book--page {
    width: 480px;
    min-height: auto;
    margin: 48px auto;
  }
}

/* The sheet enters from the bottom edge and leaves the same way. */
@media (prefers-reduced-motion: no-preference) {
  .book[open] {
    animation: book-in 280ms var(--ease-drawer);
  }

  .book.is-closing {
    animation: book-out 220ms var(--ease-drawer) forwards;
  }

  .book[open]::backdrop {
    animation: fade-in 280ms var(--ease-drawer);
  }

  .book.is-closing::backdrop {
    animation: fade-out 220ms var(--ease-drawer) forwards;
  }

  @keyframes book-in {
    from {
      transform: translateY(100%);
    }
  }

  @keyframes book-out {
    to {
      transform: translateY(100%);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  @keyframes fade-out {
    to {
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  @keyframes book-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
  }

  @keyframes book-out {
    to {
      opacity: 0;
      transform: translateY(24px);
    }
  }
}

/* Asked for less motion: the sheet fades in place, no travel. */
@media (prefers-reduced-motion: reduce) {
  .book[open],
  .book[open]::backdrop {
    animation: book-fade-in 150ms ease-out;
  }

  .book.is-closing,
  .book.is-closing::backdrop {
    animation: book-fade-out 150ms ease-out forwards;
  }

  @keyframes book-fade-in {
    from {
      opacity: 0;
    }
  }

  @keyframes book-fade-out {
    to {
      opacity: 0;
    }
  }

  .btn,
  .go svg,
  .stepper button,
  .day,
  .slot {
    transition: none;
  }

  .btn:active,
  .day:active,
  .slot:active,
  .stepper button:active:not([disabled]) {
    transform: none;
  }
}

html.has-sheet {
  overflow: hidden;
}

/* ---------- Not found ---------- */

.lost {
  padding: 48px var(--gutter) 96px;
}

.lost .h1 {
  margin-bottom: 12px;
}

.lost .body {
  margin-bottom: 24px;
}

/* ---------- Press and hover over the kit's motion layer ----------
 * assets/motion/motion.css (the kit's file, kept as shipped) lifts every .btn
 * 1px on hover and presses it 1px down at 98.5 %. This site keeps one press,
 * 0.97 in 160 ms, and no hover travel (DESIGN.md, Motion). */
html:not([data-motion="off"]) .btn {
  transition: transform 160ms var(--ease-out);
}

html:not([data-motion="off"]) .btn:hover {
  transform: none;
}

html:not([data-motion="off"]) .btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) .btn:hover {
    transform: none;
    background-color: color-mix(in srgb, var(--color-ember) 88%, var(--color-coal));
  }

  html:not([data-motion="off"]) .btn:active {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="off"]) .btn:active {
    transform: none;
  }
}

/* ---------- Table code on the QR menu (?masa=7) ---------- */

.masa {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-bottom: 16px;
  padding-inline: 10px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-control);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- KVKK and öneri / şikayet (in the status page frame) ---------- */

.doc .h1 {
  margin-bottom: 12px;
}

.doc .name {
  margin: 32px 0 8px;
}

.doc__note {
  margin-bottom: 8px;
}

.doc__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.doc__form .group,
.doc__form .field {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
}

.doc__form .slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.doc__msg {
  padding: 16px;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-control);
  background: var(--color-coal-2);
  overflow-wrap: anywhere;
}

/* Footer links never break inside a link; with the added links the row wraps on desktop. */
.foot__links a {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .foot .foot__links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .foot--links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .foot--links .foot__links {
    justify-content: flex-start;
  }
}
