/* Ported verbatim from theme-sources/kofteci-hulusi/style2.css.
   One deviation, disclosed here per the authoring guide (Bölüm 12.1):
   the source had only two stock photographs, so each of the 14 dishes used
   a hand-tuned `--zoom`/`--pos` crop of one shared image (see the source
   file's own comment on `.dish-photo`). In the CMS, every dish has its own
   uploaded photo, so that crop hack is gone — `.dish-photo` is now a plain
   cover/center box. Everything else below is unchanged. */

:root {
  /* Surface — one colour, edge to edge, phone and desktop alike. */
  --paper: #f5efdf;
  --paper-veil: rgba(245, 239, 223, .88);

  /* Ink */
  --ink: #221c14;
  --ink-soft: #5f564a;
  --ink-mute: #6b6154;

  /* Accent — used for price, active state and hairlines. Nothing else. */
  --wine: #5a1f20;
  --gold: #b8862f;
  --rule: rgba(34, 28, 20, .13);
  --rule-soft: rgba(34, 28, 20, .07);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* Space — 4pt scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* nav height + breathing room, so a jumped-to heading is never hidden */
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  padding: var(--s3) var(--s4); background: var(--wine); color: var(--paper);
  border-radius: 0 0 10px 0; font-size: 13px; text-decoration: none;
}
.skip:focus { left: 0; }

/* One centred column; the page keeps the same colour beyond it. */
.masthead, .menu, footer { width: min(100%, 620px); margin-inline: auto; }

/* ── Masthead ─────────────────────────────────────────────
   Language, mark, one sentence. The food starts immediately after. */
.masthead {
  display: flex; flex-direction: column;
  padding: var(--s3) var(--gutter) var(--s6);
  text-align: center;
}

.language {
  display: inline-flex; gap: 2px; padding: 3px; align-self: flex-end;
  background: rgba(34, 28, 20, .06); border-radius: 999px;
}
.language button {
  min-width: 44px; min-height: 34px; padding: var(--s2) var(--s3);
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.language button.active { background: var(--wine); color: var(--paper); }
.language button:active { transform: scale(.96); }

.brand {
  display: block; width: min(70%, 240px); height: auto;
  margin: var(--s6) auto var(--s4);
}

.brand-line {
  max-width: 30ch; margin: 0 auto;
  color: var(--ink-soft); font-family: var(--serif); font-size: 15px;
  line-height: 1.55; text-wrap: balance;
}

/* ── Category jump bar ────────────────────────────────────
   Nothing collapses on this page, so nothing can shift. This bar
   only moves you; it never changes the height of what is below. */
.jump {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: var(--s2);
  /* full-bleed bar, but the chips start on the same axis as the dish column */
  padding-block: var(--s3);
  padding-inline: max(var(--gutter), calc((100% - 620px) / 2 + var(--gutter)));
  overflow-x: auto; scrollbar-width: none;
  background: var(--paper-veil);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  scroll-padding-inline: var(--gutter);
  /* the row fades at the trailing edge, so it reads as scrollable
     without a scrollbar or an instruction telling you it is */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.jump::-webkit-scrollbar { display: none; }

.jump a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 var(--s4);
  border-radius: 999px;
  background: rgba(34, 28, 20, .05);
  color: var(--ink-soft);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.jump a.active { background: var(--wine); color: var(--paper); }
.jump a:active { transform: scale(.96); }
.jump a:focus-visible, .language button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ── Menu ─────────────────────────────────────────────────
   A list, not a stack of cards. Hairlines do the separating. */
.menu { padding: 0 var(--gutter); }

.course { scroll-margin-top: 76px; padding-top: var(--s6); }

.course-title {
  margin: 0 0 var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -.01em;
}

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

.dish {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dish:last-child { border-bottom: 0; }

/* Fixed box: the row occupies its final height before a single byte of
   image has arrived. Plain cover/center crop — see file header comment. */
.dish-photo {
  width: 84px; height: 84px;
  border-radius: 12px;
  background-color: rgba(34, 28, 20, .06);
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(34, 28, 20, .10);
}

.dish-text { min-width: 0; }

.dish-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  margin: 0;
}

.dish-name {
  font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.25;
  text-wrap: pretty;
}

.dish-price {
  flex: none;
  color: var(--wine);
  font-family: var(--serif); font-size: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dish-price.is-empty { color: var(--ink-mute); opacity: .5; }

.dish-desc {
  margin: var(--s1) 0 0;
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; text-wrap: pretty;
}

/* Secondary by design: true, quiet, never an alarm. */
.dish-meta {
  margin: var(--s2) 0 0;
  color: var(--ink-mute); font-size: 12px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Fiyat Etiketi Yönetmeliği: gramaj/hacim dish-meta'da, fiyatın en son
   güncellendiği tarih kendi satırında — ikisi de zorunlu. */
.dish-updated {
  margin: 3px 0 0;
  color: var(--ink-mute); font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ── Footer ───────────────────────────────────────────────── */
footer { padding: var(--s8) var(--gutter) var(--s9); }
footer::before {
  content: ""; display: block; width: 56px; height: 1px;
  margin: 0 auto var(--s6); background: var(--gold); opacity: .55;
}
.notice {
  margin: 0 0 var(--s5);
  color: var(--ink-mute); font-size: 12px; line-height: 1.6; text-align: center; text-wrap: pretty;
}
.mark {
  margin: 0;
  color: var(--ink-soft); font-family: var(--serif); font-size: 13px;
  text-align: center; letter-spacing: .02em;
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .dish { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s3); }
  .dish-photo { width: 72px; height: 72px; }
  .course-title { font-size: 20px; }
}

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