/* Hallmark · shape: Photographic · genre: editorial · theme: Grid (deal 3/3, seed one-page-public-ninda-unlu-000d·e90b5225·2026-11-24·r0) · brand: Ninda (spec 2026-11-24) · job: buy · draw: f0fb51
 * hero: Counter · nav: edge-aligned · footer: colophon block · imagery: photographs, client 3 + library 1, natural (Grid's duotone swapped out for bread) · signature: the range counter on the brand red field, the chosen group's name at poster scale over every bread and its raw-dough weight, working without script
 * axes: light/grotesk-sans/warm · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: S, the first head ("Ankara’dan mutfaklara ekmek") fit any Ankara bakery; the hero now leads with the range's own nouns beside the client's raw-dough weights
 * hero-review: fix · 5 findings · 4 resolved 1 partial (the three plain hamburger buns have no names in the client's catalogue, merged into one row instead)
 * finish-review: subagent · 6 findings · 5 resolved 1 partial (the group name is capped by its half's width; weights and rows grow to 1920 instead) · gap: none
 * answered 81 · the six catalogue page images are the real pages of the redesigned catalogue (built from site/katalog-kaynak)
 * dismissed render · the font warning comes from the file:// pass, where Chrome refuses web fonts; the http pass loads both faces and its shots were the ones reviewed */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Page frame ---------- */
html { scroll-behavior: smooth; }
body { font-size: 1.0625rem; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.grid12 > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Logo: one inline symbol, letters follow `color`, the leaf takes --color-leaf ---------- */
.logo { display: inline-block; line-height: 0; color: var(--color-logo); text-decoration: none; }
.logo svg { height: 1em; width: auto; aspect-ratio: 406.94 / 112.32; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: var(--rule-hair); text-underline-offset: 0.32em; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:active { color: var(--color-accent-deep); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav, .hero { position: relative; isolation: isolate; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.nav__logo { font-size: 2.5rem; }
.nav__logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.nav__links { display: flex; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 0.32em; text-decoration-thickness: var(--rule-hair); }
.nav__links a:active { opacity: 0.8; }
@media (max-width: 40rem) { .nav__bar { min-height: 64px; gap: var(--space-sm); } .nav__logo { font-size: 1.75rem; } .nav__links { gap: var(--space-sm); } }
@media (max-width: 23rem) { .nav__links li:nth-child(2) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-xl); }
.hero__copy { display: grid; justify-items: start; gap: var(--space-lg); }
.hero__title { max-width: none; font-size: clamp(2.75rem, 12vw, 4.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.hero__copy .lead { max-width: 30ch; color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }

/* ---------- The counter: the range on the red field ---------- */
.counter { margin: var(--space-2xl) calc(-1 * var(--gutter)) 0; padding: var(--space-xl) var(--gutter) var(--space-2xl); background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); }
.counter__tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.counter__tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.counter__tabs label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-field-rule); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.counter__tabs label:hover { text-decoration: underline; text-underline-offset: 0.32em; text-decoration-thickness: var(--rule-hair); }
.counter__tabs input:checked + label { background: var(--color-paper); color: var(--color-ink); border-bottom-color: var(--color-paper); text-decoration: none; }
.counter__tabs input:focus-visible + label { outline: 2px solid var(--color-field-ink); outline-offset: 2px; }
.counter__tabs input:active + label { opacity: 0.85; }
.counter__table { width: 100%; margin-top: var(--space-xl); border-collapse: collapse; }
.counter__table caption { padding-bottom: var(--space-md); text-align: start; font: var(--display-weight) clamp(2.25rem, 4.6vw, 4.5rem)/0.95 var(--font-display); letter-spacing: -0.045em; white-space: nowrap; }
.counter__table th { padding-block: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; text-align: start; border-bottom: var(--rule-hair) solid var(--color-field-rule); }
.counter__table th:last-child, .counter__table td:last-child { text-align: end; }
.counter__table td { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-field-rule); vertical-align: baseline; }
.counter__table td:last-child { white-space: nowrap; font: var(--display-weight) clamp(1.5625rem, 2.3vw, 2.75rem)/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counter__table td small { font: 400 var(--text-sm)/1 var(--font-body); letter-spacing: 0; }
.counter__note { margin-top: var(--space-md); max-width: 52ch; font-size: var(--text-sm); line-height: 1.45; }
.counter__table td:first-child { padding-right: var(--space-sm); }
@media (max-width: 40rem) { .counter__table td:last-child { font-size: var(--text-xl); } }
@supports selector(:has(*)) {
  .counter__table { display: none; }
  .counter:has(#g-hamburger:checked) [data-grup="hamburger"],
  .counter:has(#g-sandvic:checked) [data-grup="sandvic"],
  .counter:has(#g-tost:checked) [data-grup="tost"],
  .counter:has(#g-roll:checked) [data-grup="roll"],
  .counter:has(#g-eksi:checked) [data-grup="eksi"],
  .counter:has(#g-diger:checked) [data-grup="diger"] { display: table; }
}

@media (min-width: 60rem) {
  .nav::before, .hero::before { content: ""; position: absolute; inset: 0 0 0 calc(50% + var(--gap-columns) / 2); z-index: -1; background: var(--color-field); }
  .nav__links a { color: var(--color-field-ink); }
  .nav__links a:focus-visible { outline-color: var(--color-field-ink); }
  .hero { display: flex; min-height: calc(100svh - 80px); padding-block: var(--space-xl) var(--space-2xl); }
  .hero > .container { width: 100%; }
  .hero__grid { align-items: center; }
  .hero__copy { grid-column: 1 / 7; }
  .hero__title { font-size: clamp(2.75rem, 6.4vw, 6.125rem); }
  .counter { grid-column: 7 / -1; margin: 0; padding: 0 0 0 var(--space-xl); background: none; }
  .counter__tabs { display: flex; flex-wrap: wrap; }
}

/* ---------- Section rhythm: space, a change of paper, a field; never a rule ---------- */
.firin { padding-block: var(--section-gap) var(--section-gap-s); }
.katalog { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.referans { padding-block: var(--section-gap-l) var(--section-gap); }
.vitrin { padding-bottom: var(--section-gap); }
.iletisim { padding-block: var(--section-gap-s); background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); }

/* ---------- Fırın: one large frame, two of the bakery's own beside it ---------- */
.firin__grid { row-gap: var(--space-lg); }
.firin__head { margin-bottom: var(--space-lg); }
.firin__main { aspect-ratio: 4 / 3; }
.firin__side { margin: 0; display: grid; gap: var(--space-xs); align-content: start; }
.firin__frame { aspect-ratio: 4 / 3; }
.firin__side figcaption { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
@media (min-width: 40rem) and (max-width: 59.999rem) {
  .firin__side--1 { grid-column: 1 / 7; } .firin__side--2 { grid-column: 7 / -1; }
}
@media (min-width: 60rem) {
  .firin__head { grid-column: 1 / 9; }
  .firin__main { grid-column: 1 / 9; grid-row: 2 / 4; aspect-ratio: auto; }
  .firin__side--1 { grid-column: 9 / -1; grid-row: 2; }
  .firin__side--2 { grid-column: 9 / -1; grid-row: 3; }
}

/* ---------- Katalog: the file, then its pages as a rail ---------- */
.katalog__head { display: grid; justify-items: start; gap: var(--space-md); }
.katalog__head .lead { color: var(--color-ink-2); }
.katalog__action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }
.katalog__meta { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(10rem, 15vw, 16.5rem); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0 var(--rail-pad) var(--space-xs); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); overscroll-behavior-x: contain; --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.rail > li { scroll-snap-align: start; }
@media (max-width: 40rem) { .rail { grid-auto-columns: 58%; } }
@media (min-width: 60rem) {
  /* Wide screens: all six pages on the column grid, two columns each, nothing to scroll. */
  .rail { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter); overflow: visible; scroll-snap-type: none; }
}
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail a { display: block; transition: transform var(--dur-short) var(--ease-out); }
.rail a:hover { transform: translateY(-4px); }
.rail a:active { transform: translateY(-1px); }
.rail a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.rail img { width: 100%; height: auto; background: var(--color-paper); }

/* ---------- Referanslar: the names, set as one sentence ---------- */
.referans__head { margin-bottom: var(--space-xl); }
.referans__names { max-width: none; font: 400 var(--text-display-s)/1.12 var(--font-display); letter-spacing: -0.03em; text-wrap: pretty; }
@media (min-width: 60rem) {
  .referans__head { grid-column: 1 / 5; margin: 0; }
  .referans__names { grid-column: 5 / -1; }
}

/* ---------- Vitrin: one wide frame ---------- */
.vitrin__frame { aspect-ratio: 4 / 3; }
@media (min-width: 40rem) { .vitrin__frame { aspect-ratio: 21 / 9; } }

/* ---------- İletişim: the close on the field ---------- */
.iletisim__lead { display: grid; justify-items: start; align-content: start; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.iletisim__head { color: var(--color-field-ink); font-size: var(--text-display-s); }
.iletisim .btn:focus-visible { outline-color: var(--color-field-ink); }
.iletisim__list { margin: 0; }
.iletisim__list > div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-field-rule); }
.iletisim__list > div:last-child { border-bottom: var(--rule-hair) solid var(--color-field-rule); }
.iletisim__list dt { font-size: var(--text-sm); font-weight: 500; }
.iletisim__list dd { margin: 0; font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.02em; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 30rem) { .iletisim__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }
.iletisim__ig { white-space: nowrap; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.iletisim__ig:hover { text-decoration-thickness: 4px; }
.iletisim__ig:active { opacity: 0.85; }
.iletisim__ig:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 4px; }
.fill { padding: 0 0.3em; border: 1px dashed var(--color-field-ink); font: 400 var(--text-lg)/1.3 var(--font-body); letter-spacing: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 60rem) {
  .iletisim__lead { grid-column: 1 / 7; margin: 0; }
  .iletisim__list { grid-column: 7 / -1; }
}

/* ---------- Footer: a colophon block ---------- */
.footer { padding-block: var(--space-3xl); }
.footer__inner { display: grid; gap: var(--space-md); justify-items: start; }
.footer__logo { font-size: 3.5rem; margin-bottom: var(--space-sm); }
.footer__text { max-width: 60ch; }
.footer__text a { text-underline-offset: 0.2em; }
.footer__text a:hover { color: var(--color-accent); }
.footer__text a:focus-visible, .footer__credits a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.footer__credits, .footer__legal { max-width: 60ch; font-size: var(--text-sm); color: var(--color-muted); }
.footer__credits a { color: inherit; }
.footer__credits a:hover { color: var(--color-ink); }
@media (min-width: 60rem) {
  .footer__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-sm); }
  .footer__logo { grid-column: 1 / 4; grid-row: 1 / 4; margin: 0; }
  .footer__text, .footer__credits, .footer__legal { grid-column: 5 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link, .counter__tabs label, .nav__links a, .rail a { transition: none; }
  .rail a:hover, .rail a:active { transform: none; }
}
