/*
 * Közbey — QR menü
 * Basılı bir menü kartı gibi: sıcak kâğıt, mürekkep, tek vurgu rengi (köz kızılı).
 */
:root {
  color-scheme: light;
  --paper: #f5efe4;
  --paper-sunk: #ece4d5;
  --card: #fbf8f2;
  --ink: #231d19;
  --ink-soft: #62574d;
  --ink-faint: #8f8376;
  --rule: #dccfbc;
  --accent: #9b2e1a;
  --accent-tint: #f1e0d5;
  --gold: #9a7536;
  --ok: #2e7a4a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 640px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #14110f;
    --paper-sunk: #1d1916;
    --card: #1a1613;
    --ink: #efe6d8;
    --ink-soft: #b1a392;
    --ink-faint: #85786b;
    --rule: #3a3129;
    --accent: #e07a52;
    --accent-tint: #3a2219;
    --gold: #c9a66b;
    --ok: #6cc28c;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14110f;
  --paper-sunk: #1d1916;
  --card: #1a1613;
  --ink: #efe6d8;
  --ink-soft: #b1a392;
  --ink-faint: #85786b;
  --rule: #3a3129;
  --accent: #e07a52;
  --accent-tint: #3a2219;
  --gold: #c9a66b;
  --ok: #6cc28c;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.sheet-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.ghost-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background-color 160ms ease, color 160ms ease;
}

.ghost-icon svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .ghost-icon:hover {
    background: var(--paper-sunk);
    color: var(--ink);
  }
}

/* ============ Başlık ============ */
.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 28px;
  text-align: center;
}

.masthead-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.masthead-bar .ghost-icon {
  margin-left: auto;
}

.status,
.table-no {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.status.is-open {
  color: var(--ok);
}

.status.is-open::before {
  background: var(--ok);
}

.table-no {
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
}

.masthead-brand {
  display: grid;
  justify-items: center;
  margin-top: 6px;
}

.crest {
  width: 104px;
  height: auto;
  margin-bottom: 16px;
}

.masthead h1 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(44px, 13vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.kicker {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.motto {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--accent);
}

.about {
  max-width: 440px;
  margin: 18px auto 0;
  font-size: 15px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
}

.contact a:active {
  transform: scale(0.97);
}

.contact svg {
  width: 17px;
  height: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .contact a:hover {
    border-color: var(--ink-faint);
    background: var(--card);
  }
}

.notice {
  max-width: calc(var(--measure) - 32px);
  margin: 0 auto 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 672px) {
  .notice {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ============ Bölüm dizini (yapışkan) ============ */
.index {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.index-inner {
  display: flex;
  align-items: center;
  max-width: var(--measure);
  margin: 0 auto;
  padding-right: 6px;
}

.index-links {
  display: flex;
  flex: 1;
  gap: 22px;
  min-width: 0;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}

.index-links::-webkit-scrollbar {
  display: none;
}

.index-links a {
  position: relative;
  flex: none;
  padding: 16px 0 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.index-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 220ms var(--ease-out);
}

.index-links a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.index-links a.is-active::after {
  transform: scaleX(1);
}

.search-toggle[aria-expanded="true"] {
  background: var(--paper-sunk);
  color: var(--ink);
}

.search-bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px 12px;
}

.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease;
}

.search-bar input:focus {
  border-color: var(--ink-faint);
}

.search-bar input::placeholder {
  color: var(--ink-faint);
}

/* ============ Menü ============ */
.menu {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px 16px 24px;
}

/* İmza ürünler kutusu */
.signature {
  position: relative;
  margin: 28px 0 8px;
  padding: 26px 20px 18px;
  border: 1px solid var(--rule);
  background: var(--card);
  text-align: center;
}

.signature::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.signature h2 {
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.signature-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.signature-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 11px 6px;
  border: 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  text-align: left;
}

.signature-list li:first-child .signature-item {
  border-top: 0;
}

.sig-name {
  flex: 1;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  transition: color 160ms ease;
}

.sig-price {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Bölümler */
.course {
  padding-top: 44px;
}

.course-head {
  margin-bottom: 8px;
  text-align: center;
}

.course-no {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.course-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.course-head::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--accent);
}

.course-note {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}

.dishes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish + .dish {
  border-top: 1px solid var(--rule);
}

.dish-btn {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 18px 2px;
  border: 0;
  background: transparent;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .dish-btn:hover .dish-name,
  .signature-item:hover .sig-name {
    color: var(--accent);
  }
}

.dish-photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper-sunk);
}

.dish-body {
  display: block;
  flex: 1;
  min-width: 0;
}

.dish-line {
  display: flex;
  align-items: baseline;
}

.dish-name {
  flex: 0 1 auto;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 160ms ease;
}

.leader {
  flex: 1 1 24px;
  min-width: 18px;
  margin: 0 10px;
  border-bottom: 1px dotted var(--ink-faint);
  transform: translateY(-5px);
  opacity: 0.7;
}

.dish-price {
  flex: none;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-price s,
.sheet-price s {
  margin-right: 4px;
  font-weight: 500;
  color: var(--ink-faint);
}

.dish-desc {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}

.dish-meta:empty {
  display: none;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag-out {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}

.portion {
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-faint);
}

.dish.is-sold-out .dish-name,
.dish.is-sold-out .dish-price,
.dish.is-sold-out .dish-desc {
  opacity: 0.5;
}

.dish.is-sold-out .dish-price {
  text-decoration: line-through;
}

.no-results {
  margin: 48px 0;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
}

/* ============ Alt bilgi ============ */
.colophon {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 24px 16px max(36px, env(safe-area-inset-bottom));
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.ornament span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.col-block {
  padding: 26px 0 0;
}

.col-block h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.hours {
  display: grid;
  gap: 6px;
  max-width: 300px;
  margin: 0 auto;
  font-size: 14.5px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
}

.hours dt,
.hours dd {
  margin: 0;
}

.hours dd {
  font-variant-numeric: tabular-nums;
}

.hours .is-today {
  font-weight: 700;
  color: var(--ink);
}

.hours .is-today dt::after {
  content: " · bugün";
  font-weight: 500;
  color: var(--accent);
}

.colophon address {
  font-style: normal;
  color: var(--ink-soft);
}

.colophon p {
  margin: 6px 0 0;
}

.order-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.order-links a {
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.fine-print {
  margin-top: 26px !important;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.fine-print + .fine-print {
  margin-top: 6px !important;
}

/* ============ Ürün detayı ============ */
.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 14, 10, 0.45);
  animation: fade 220ms ease-out;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 22px max(28px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--card);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  outline: none;
  animation: rise 320ms var(--ease-drawer);
}

.sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 1;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: var(--rule);
}

@media (min-width: 640px) {
  .sheet-layer {
    align-items: center;
  }
  .sheet {
    border-radius: 16px;
    animation-name: pop;
    animation-duration: 220ms;
    animation-timing-function: var(--ease-out);
  }
  .sheet::before {
    display: none;
  }
}

.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.sheet-photo {
  width: calc(100% + 44px);
  max-width: none;
  margin: -28px -22px 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sheet h2 {
  margin: 6px 48px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.sheet-price {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 650;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sheet .dish-meta {
  margin-top: 12px;
}

.sheet-lead {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.sheet-detail {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.facts {
  margin: 20px 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}

.facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ink-faint);
}

.facts dd {
  margin: 0;
}

.sheet-hint {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  color: var(--ink-faint);
}

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

@keyframes rise {
  from {
    transform: translateY(100%);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 720px) {
  .masthead {
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .crest {
    width: 120px;
  }
}
