:root {
  color-scheme: light;
  --canvas: #f7f4ed;
  --ink: #26241f;
  --muted: #625b50;
  --accent: #a73524;
  --line: #ded8cb;
  --panel: #fffaf3;
  --soft: #efe7db;
  --measure: min(100% - 3rem, 74rem);
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

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

body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
button:enabled { cursor: pointer; }

:focus-visible {
  outline: 3px solid #1977d2;
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
.frame { width: var(--measure); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.overview-header, .overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.overview-header {
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ad3929;
  color: #fffaf4;
  font: bold 1.15rem var(--serif);
}

.prototype-label, .overview-footer {
  color: var(--muted);
  font-size: .875rem;
}

.overview-main { padding-top: clamp(2.5rem, 6vw, 5rem); }

.overview-main h1 {
  font: 500 clamp(3rem, 7.4vw, 7.1rem)/.96 var(--serif);
  letter-spacing: -.075em;
}

.overview-main h1 span { color: var(--accent); }

.overview-description {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.concept-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--card-ink);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 1.1rem;
}

.concept-sheikhs {
  --card-bg: #551e28;
  --card-ink: #fff1df;
  --card-line: #551e28;
  --card-button: #ffe4c7;
  --card-button-ink: #461621;
}

.concept-tik {
  --card-bg: #163d9d;
  --card-ink: #fff9db;
  --card-line: #163d9d;
  --card-button: #ffda69;
  --card-button-ink: #23315d;
}

.concept-table {
  --card-bg: #e5eee1;
  --card-ink: #223b2b;
  --card-line: #d3ddce;
  --card-button: #254a34;
  --card-button-ink: #f3fbef;
}

.concept-image { overflow: hidden; }

.concept-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.67;
  object-fit: cover;
  transition: transform .25s ease;
}

.concept-card:focus-within img, .concept-card:hover img { transform: scale(1.035); }

.concept-content {
  display: flex;
  align-items: start;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.15rem, 2.7vw, 2rem);
}

.concept-content h2 {
  font: 500 clamp(2.5rem, 4.65vw, 4.8rem)/.88 var(--serif);
  letter-spacing: -.069em;
}

.concept-tik h2 {
  font: 900 clamp(2.75rem, 5.4vw, 5.5rem)/.86 system-ui, sans-serif;
  letter-spacing: -.082em;
}

.concept-table h2 { font-style: italic; }

.concept-content p {
  max-width: 16.5rem;
  margin-top: auto;
  line-height: 1.45;
}

.concept-link, .button {
  display: inline-flex;
  min-height: 2.85rem;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-weight: 680;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
}

.concept-link {
  margin-top: .2rem;
  color: var(--card-button-ink);
  background: var(--card-button);
}

.concept-link:hover { filter: brightness(.91); }

.overview-footer {
  justify-content: start;
  padding-block: 1.5rem 2rem;
}

body[data-brand="sheikhs"] {
  --canvas: #f8f0e5;
  --ink: #331e21;
  --muted: #6b5150;
  --accent: #7a2837;
  --line: #e4d4c8;
  --panel: #fff9f0;
  --soft: #f2e4d8;
  --on-accent: #fff6ed;
}

body[data-brand="tik-rak"] {
  --canvas: #f3f5ff;
  --ink: #172958;
  --muted: #4a587c;
  --accent: #2247af;
  --line: #d6def5;
  --panel: #ffffff;
  --soft: #e7edff;
  --on-accent: #fff;
}

body[data-brand="raki-k-stolu"] {
  --canvas: #f3f4ea;
  --ink: #233b2c;
  --muted: #4c6251;
  --accent: #325444;
  --line: #d6ded1;
  --panel: #fbfcf4;
  --soft: #e7eee0;
  --on-accent: #f8fbf2;
}

body[data-brand] { color: var(--ink); background: var(--canvas); }

.preview-bar { background: var(--soft); border-bottom: 1px solid var(--line); }

.preview-inner, .site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .9rem;
}

.preview-inner {
  min-height: 2.45rem;
  color: var(--muted);
  font-size: .875rem;
}

.preview-inner a { text-underline-offset: .2em; }

.site-header {
  min-height: 4.75rem;
  border-bottom: 1px solid var(--line);
}

.site-brand { font: 700 clamp(1.15rem, 2.6vw, 1.55rem)/1 var(--serif); }

[data-brand="tik-rak"] .site-brand {
  font-family: system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -.045em;
}

.site-nav {
  display: flex;
  gap: clamp(.5rem, 2vw, 1.3rem);
}

.site-nav button, .text-button {
  min-height: 2.75rem;
  padding: .25rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 560;
}

.site-nav button:hover, .text-button:hover { text-decoration: underline; }

.button-primary { color: var(--on-accent); background: var(--accent); }
.button-primary:hover { filter: brightness(.89); }
.button-outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.button-outline:hover { background: var(--soft); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(1.35rem, 4vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.7rem, 4.5vw, 3.75rem) clamp(2rem, 5vw, 4.75rem);
}

.hero-location {
  margin-bottom: .85rem;
  color: var(--accent);
  font-size: .94rem;
  font-weight: 710;
}

.hero h1 {
  font: 500 clamp(3.1rem, 7vw, 7.1rem)/.9 var(--serif);
  letter-spacing: -.074em;
  text-wrap: balance;
}

.hero-description {
  max-width: 26rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}

.hero-image { overflow: hidden; border-radius: 1rem; background: var(--soft); }

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
}

[data-brand="tik-rak"] .hero h1 {
  color: var(--accent);
  font: 920 clamp(2.95rem, 6.8vw, 7rem)/.87 system-ui, sans-serif;
  letter-spacing: -.082em;
}

[data-brand="tik-rak"] .hero-image { border-radius: 2.6rem 2.6rem .65rem 2.6rem; }
[data-brand="raki-k-stolu"] .hero h1 { font-style: italic; }
[data-brand="raki-k-stolu"] .hero-image { border-radius: 32% 32% .7rem .7rem; }

.hero-guest-label {
  align-self: center;
  margin-right: .25rem;
  font-weight: 680;
}

.hero-guests {
  display: flex;
  gap: .35rem;
}

.hero-guest, .size-shortcut {
  min-width: 2.75rem;
  min-height: 2.85rem;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--accent);
  background: var(--panel);
  font-weight: 690;
}

.hero-guest:hover, .size-shortcut:hover { background: var(--soft); border-color: var(--accent); }

.section {
  padding-block: clamp(1.6rem, 4.2vw, 3.35rem);
  scroll-margin-top: 1rem;
}

.section-header { margin-bottom: 1.35rem; }
.section h2 {
  font: 500 clamp(2.1rem, 4.2vw, 3.7rem)/.98 var(--serif);
  letter-spacing: -.055em;
}

.section-header p, .shrimp-copy > p, .delivery p {
  margin-top: .75rem;
  color: var(--muted);
  line-height: 1.55;
}

.size-guide-header, .calculator-size-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.size-guide-header .button { margin-top: .75rem; }

.size-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.size-chapters { border-bottom: 1px solid var(--line); }

.size-chapter {
  display: grid;
  align-content: center;
  min-height: clamp(16rem, 44svh, 24rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.chapter-category {
  color: var(--accent);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.size-chapter h3 {
  margin-top: .65rem;
  font: 500 clamp(1.75rem, 3.3vw, 2.95rem)/1.07 var(--serif);
  letter-spacing: -.04em;
}

.size-chapter p {
  max-width: 33rem;
  margin-top: .6rem;
  color: var(--muted);
  line-height: 1.5;
}

.size-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem .75rem;
  margin-block: 1.15rem .65rem;
}

.size-facts dt { color: var(--muted); font-size: .875rem; }
.size-facts dd { margin: .25rem 0 0; font-weight: 700; }

.chapter-action {
  justify-self: start;
  padding-inline: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.size-chapter.is-current { border-top-color: var(--accent); }

.calculator { max-width: 46rem; }
.calculator-size-heading { font-weight: 670; }
.calculator-size-heading button { font-size: .875rem; }
.order-panel .size-options { margin: .25rem 0 1.15rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
}

.order-panel, .shrimp-copy {
  padding: clamp(1rem, 2.7vw, 1.75rem);
}

.panel h3 {
  margin-bottom: .9rem;
  font: 500 clamp(1.65rem, 3.25vw, 2.5rem)/1.05 var(--serif);
  letter-spacing: -.04em;
}

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

.size-options, .portion-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
}

.size-options label, .portion-options label { position: relative; }

.size-options input, .portion-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.size-options span, .portion-options span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 2.85rem;
  padding: .45rem .25rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  font-size: .875rem;
  line-height: 1.16;
  text-align: center;
  cursor: pointer;
}

.size-options span:hover, .portion-options span:hover { background: var(--soft); }

.size-options input:checked + span, .portion-options input:checked + span {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.size-options input:focus-visible + span, .portion-options input:focus-visible + span {
  outline: 3px solid #1977d2;
  outline-offset: 2px;
}

.size-stage {
  --card-width: min(34%, 9rem, 26svh);
  position: sticky;
  top: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: clamp(16rem, 59svh, 31rem);
  margin: 0;
  padding: .75rem;
  background: var(--soft);
}

.stage-category {
  position: absolute;
  inset: .8rem auto auto 1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 720;
}

.comparison-crayfish {
  width: calc(var(--card-width) * var(--image-to-card));
  height: auto;
  filter: drop-shadow(0 3px 4px #542a1940);
  transition: width .22s ease;
}

.bank-card {
  position: relative;
  container-type: inline-size;
  width: var(--card-width);
  aspect-ratio: var(--card-aspect);
  border: 1px solid #8e9795;
  border-radius: 6%;
  background: linear-gradient(145deg, #f8f9f8, #c4ccc9 72%, #d7dddb);
  box-shadow: 0 2px 3px #312f2c24;
}

.card-label {
  position: absolute;
  top: 13%;
  right: 9%;
  max-width: 70%;
  color: #333f3c;
  font-size: clamp(.38rem, 7.2cqw, .64rem);
  font-weight: 720;
  line-height: 1.08;
  text-align: right;
  text-transform: uppercase;
}

.card-chip {
  --trace: #816947;
  position: absolute;
  top: 40%;
  left: 11%;
  width: 24%;
  aspect-ratio: 1.3;
  border: 1px solid var(--trace);
  border-radius: 18%;
  background:
    linear-gradient(var(--trace), var(--trace)) left 33% / 100% 1px no-repeat,
    linear-gradient(var(--trace), var(--trace)) left 67% / 100% 1px no-repeat,
    linear-gradient(var(--trace), var(--trace)) center / 1px 100% no-repeat,
    linear-gradient(135deg, #f1e2b9, #be9e66);
}

.card-chip::before {
  content: "";
  position: absolute;
  inset: 20% 30%;
  border: 1px solid var(--trace);
  border-radius: 23%;
  background: linear-gradient(135deg, #f0dfb1, #d0b57c);
}

.control-row, .total p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.serving-caption, .shrimp-status { font-size: .875rem; }

.control-row > span, .weight-row > div:first-child > span { font-weight: 670; }

.stepper {
  display: inline-grid;
  grid-template-columns: 2.75rem minmax(2.75rem, max-content) 2.75rem;
  min-height: 2.75rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: .55rem;
  width: max-content;
}

.stepper button {
  padding: 0;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 550;
}

.stepper button:hover:enabled { background: var(--soft); }
.stepper button:disabled { opacity: .35; }

.stepper output {
  display: grid;
  place-items: center;
  padding-inline: .35rem;
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.plate-preview {
  margin-top: .8rem;
  overflow: hidden;
  border-radius: .6rem;
  background: #422720;
}

.plate-preview canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }

.plate-fallback {
  padding: .85rem 1rem;
  color: #fff3e5;
}

.serving-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem .75rem;
  min-height: 1.25rem;
  margin-top: .5rem;
}
.portion-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: .8rem; }
.weight-row { min-height: 3rem; }

.reset-weight {
  display: block;
  min-height: 1.55rem;
  padding: 0;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.total {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

.total strong { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1; white-space: nowrap; }
.order-call { width: 100%; margin-top: .9rem; }

.shrimp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}

.shrimp-card > img { width: 100%; height: 100%; object-fit: cover; max-height: 22rem; }
.shrimp-copy { align-self: center; }
.shrimp-options { margin-top: .9rem; }

.shrimp-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-block: .7rem;
  border-top: 1px solid var(--line);
}

.shrimp-option h3 {
  margin: 0;
  font: 680 1rem/1.3 system-ui, sans-serif;
  letter-spacing: normal;
}

.shrimp-option .stepper { flex-shrink: 0; }
.shrimp-price { margin-top: .25rem; font-size: .875rem; }
.shrimp-status:empty { display: none; }

.delivery {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.delivery p { max-width: 36rem; }
.delivery .button { flex-shrink: 0; }

.site-footer {
  color: var(--muted);
  font-size: .875rem;
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
}

dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

dialog::backdrop { background: #171316a8; }
dialog h2 { margin-right: 2rem; font: 600 1.7rem/1.1 var(--serif); }
dialog p { margin-top: .9rem; line-height: 1.5; }
dialog form:last-child { margin-top: 1.2rem; }
.dialog-close-form { position: absolute; top: .65rem; right: .65rem; }

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .5rem;
  background: var(--soft);
  font-size: 1.5rem;
}

@media (max-width: 62rem) {
  .concept-grid { gap: .8rem; }
  .concept-content { padding: 1.05rem; }
  .hero { gap: 1.3rem; }
  .hero h1 { font-size: clamp(3rem, 7.8vw, 5.7rem); }
}

@media (max-width: 46rem) {
  :root { --measure: calc(100% - 2rem); }
  .overview-header { min-height: 4rem; }
  .overview-main { padding-top: 2.6rem; }
  .overview-main h1 { font-size: clamp(2.85rem, 10.5vw, 5rem); }
  .overview-description { margin-top: 1rem; }
  .concept-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .concept-content { padding: 1.25rem; }
  .concept-content h2 br { display: none; }
  .concept-content h2 { font-size: clamp(2.5rem, 10vw, 4.65rem); }
  .concept-content p { max-width: none; }
  .concept-image img { aspect-ratio: 1.83; }
  .site-header { min-height: 4.2rem; flex-wrap: wrap; padding-block: .55rem; }
  .site-nav { order: 1; width: 100%; }
  .site-nav button { min-height: 2rem; }
  .hero, .shrimp-card { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 1.8rem 1.1rem; }
  .hero h1, [data-brand="tik-rak"] .hero h1 { font-size: clamp(3.1rem, 11vw, 5.75rem); text-wrap: initial; }
  .hero-image img { aspect-ratio: 1.65; }
  .size-guide-layout {
    --comparison-height: clamp(9.5rem, 36svh, 15rem);
    display: block;
  }
  .size-chapters { margin-top: .9rem; }
  .size-stage {
    --card-width: min(36%, 6.5rem, 14svh);
    top: 0;
    min-height: 0;
    height: var(--comparison-height);
    box-shadow: 0 .4rem var(--canvas);
  }
  .size-chapter { min-height: 15.5rem; }
  .chapter-action { scroll-margin-top: calc(var(--comparison-height) + .75rem); }
  .shrimp-card > img { height: auto; aspect-ratio: 1.7; }
  .delivery { align-items: start; flex-direction: column; }
}

@media (max-width: 25rem) {
  .wordmark { gap: .45rem; font-size: .88rem; }
  .prototype-label { font-size: .75rem; }
  .mark { width: 1.6rem; height: 1.6rem; font-size: .95rem; }
  .overview-footer { flex-wrap: wrap; gap: .25rem .55rem; }
  .preview-inner { gap: .5rem; font-size: .8rem; }
  .hero-actions .button { flex: 1; }
  .size-options { gap: .32rem; }
  .size-options span { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
