/* House of Anaushka — The Bake Log */

@font-face { font-family: "Gloock"; src: url("assets/fonts/gloock-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("assets/fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat-500.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #F4EEDF;
  --card: #FFFDF7;
  --ink: #1D2740;
  --muted: #4A5266;
  --stamp: #A8352A;
  --pencil: #2B4A9B;
  --photo: #E3D7BE;
  --tape: rgba(226, 205, 140, 0.78);
  --rule: rgba(29, 39, 64, 0.18);
  --grid: rgba(29, 39, 64, 0.06);
  --display: "Gloock", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; }

h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* Shared type */
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; }
.lede { margin-top: 14px; max-width: 540px; }
.mono { font-family: var(--mono); }
.note { font-family: var(--hand); font-size: 23px; line-height: 1.25; color: var(--pencil); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none;
  border-radius: 4px;
}
.btn:hover { color: var(--paper); background: #2A3657; }
.btn svg, .text-link svg { flex: 0 0 auto; }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; }
.text-link.mono { font-weight: 400; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0 14px; border-bottom: 1.5px solid var(--ink);
}
.wordmark { display: flex; flex-direction: column; justify-content: center; min-height: 44px; line-height: 1.05; text-decoration: none; }
.wordmark-name { font-family: var(--display); font-size: clamp(21px, 6.6vw, 30px); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark-sub { margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.header-link {
  display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 4px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; text-decoration: none;
}
.header-link:hover { background: var(--ink); color: var(--paper); }

/* Sections */
.section { padding: 56px 0; border-top: 1.5px solid var(--ink); }
.section > .label { margin-bottom: 12px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.split > * { flex: 1 1 340px; min-width: 0; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .label { margin-bottom: 20px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 78px); line-height: 1.04; letter-spacing: -0.01em; }
.hero-text { margin-top: 24px; font-size: 17px; max-width: 460px; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; margin-top: 32px; }
.actions .text-link { min-height: 52px; }
.h1-line { display: block; }

/* FSSAI veg / non-veg marks */
.diet { display: inline-block; flex: 0 0 auto; margin-right: 8px; vertical-align: -1px; }
.food-label-egg { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.food-label-egg .diet { margin-right: 0; }

/* A handwritten link under the main button */
.hand-link {
  display: flex; align-items: center; min-height: 44px; margin-top: 4px;
  font-family: var(--hand); font-size: 23px; line-height: 1.2; color: var(--pencil);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.hand-link:hover { color: var(--stamp); }

/* Polaroid photo slots */
.polaroid {
  position: relative; flex: 1 1 300px; max-width: 420px;
  padding: 12px 12px 14px; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(29, 39, 64, 0.18), 0 10px 28px rgba(29, 39, 64, 0.12);
}
.tilt-right { transform: rotate(2deg); }
.tilt-left { transform: rotate(-2deg); }
.polaroid::before {
  content: ""; position: absolute; top: -13px; left: 50%;
  width: 112px; height: 28px; margin-left: -56px;
  background: var(--tape); transform: rotate(-4deg);
}
.tilt-left::before { transform: rotate(3deg); }
.shot {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 18px; background: var(--photo);
}
.shot-portrait { aspect-ratio: 4 / 5; }
.shot-landscape { aspect-ratio: 5 / 4; }
.shot-brief { font-family: var(--mono); font-size: 13px; line-height: 1.45; }
/* Real photos crop to the frame's shape whatever the file's size, and show a tint while loading. */
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--photo); }
.polaroid img.photo-landscape { aspect-ratio: 5 / 4; }
.polaroid figcaption { padding-top: 8px; font-family: var(--hand); font-size: 23px; line-height: 1.2; color: var(--pencil); }

/* Menu */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 40px 36px; margin-top: 36px; }
.group-title {
  padding-bottom: 10px; border-bottom: 1.5px dashed var(--ink);
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
}
.item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.thumb {
  flex: 0 0 76px; height: 76px; padding: 5px; background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(29, 39, 64, 0.22); transform: rotate(-3deg);
}
.item:nth-child(odd) .thumb { transform: rotate(2deg); }
.thumb-shot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--photo); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--photo); }
.item-body { flex: 1 1 auto; min-width: 0; }
/* Name, dotted leader, price. A long name wraps; the dots and price sit on its last line, like a printed menu. */
.item-head { display: grid; grid-template-columns: minmax(0, max-content) minmax(14px, 1fr) auto; align-items: baseline; align-items: last baseline; column-gap: 8px; }
.item-name { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.2; }
.leader { border-bottom: 1.5px dotted var(--ink); }
.price { font-family: var(--mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.item-desc { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.item-contains { margin-top: 2px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Test shelf */
.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.tag { padding: 3px 8px; border: 1.5px solid var(--ink); }
.tag-week { border-color: var(--stamp); color: var(--stamp); }
.tag-house { background: var(--ink); color: var(--paper); }
.tag-retired { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.legend-or { font-weight: 400; }

.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.card {
  padding: 22px; background: var(--card);
  box-shadow: 0 1px 2px rgba(29, 39, 64, 0.16), 0 6px 18px rgba(29, 39, 64, 0.08);
}
.card-open { background: transparent; box-shadow: none; border: 1.5px dashed var(--ink); }
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--stamp);
}
.card-open .card-head { border-bottom: 1.5px dashed var(--ink); }
.card-num { font-family: var(--display); font-size: 30px; line-height: 1; }
.stamp {
  padding: 4px 8px; border: 2px solid var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.stamp-week { border-color: var(--stamp); color: var(--stamp); }
.stamp-open { border: 0; padding: 0; color: var(--muted); }
.card h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.card p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.card .price { color: var(--ink); }
.card .note { margin-top: 10px; font-size: 22px; color: var(--pencil); }
.card .text-link { margin-top: 6px; }

/* Ordering */
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; max-width: 560px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
}
.steps li > span:last-child { padding-top: 3px; }
.section .btn { margin-top: 28px; }

/* Kitchen */
.kitchen-copy p { max-width: 520px; }
.kitchen-copy .title { margin-top: 12px; }
.kitchen-copy p + p { margin-top: 12px; }
.kitchen-copy .title + p { margin-top: 18px; }
.signature { margin-top: 18px; font-family: var(--hand); font-size: 28px; line-height: 1.2; color: var(--pencil); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px;
  padding: 40px 0 48px; border-top: 1.5px solid var(--ink);
}
.footer-name { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.footer-place { margin-top: 6px; font-size: 15px; color: var(--muted); }
.footer-links li { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links .mono { margin-left: 6px; }
.fine-print { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--muted); }

/* Placeholders: anything still in [brackets] */
/* Unfilled text keeps its real typeface and gets a highlighter mark, so pages read as they will when filled. */
.ph {
  padding: 0 0.12em; background: rgba(226, 205, 140, 0.45); color: var(--muted);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph-short { white-space: nowrap; } /* short blanks like [pack size] never split across lines */
.footer-links .ph { margin-left: 6px; }
.after-btn { margin-top: 10px; font-size: 15px; }
.after-btn a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tappable rows and cards: the whole thing is the link */
.item { position: relative; }
.item-link { color: inherit; text-decoration: none; }
.item-link::after { content: ""; position: absolute; inset: 0; }
.item:hover .item-link { text-decoration: underline; text-decoration-thickness: 1px; }
.item:hover { background: rgba(255, 253, 247, 0.6); }
.item-link:focus-visible { outline: none; }
.item:has(.item-link:focus-visible) { outline: 3px solid var(--pencil); outline-offset: 2px; }
.chev { flex: 0 0 auto; align-self: center; color: var(--muted); }

.card { position: relative; }
.card-link { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-link { text-decoration-style: solid; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--pencil); outline-offset: 3px; }
.card-action { position: relative; z-index: 1; }

/* Entry pages: products, experiments, good to know */
.crumbs { padding-top: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--mono); font-size: 14px; }
.entry { padding: 4px 0 56px; }
.entry-head { padding: 8px 0 32px; }
.entry-head .label { margin-bottom: 14px; }
.entry-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.01em; }
.entry-role { margin-top: 10px; font-size: 19px; color: var(--muted); }
.entry-stamp { margin-top: 20px; }
.stamp-big { display: inline-block; padding: 6px 12px; border-width: 2.5px; font-size: 15px; }
.stamp-house { background: var(--ink); color: var(--paper); }
.stamp-retired { border-style: dashed; border-color: var(--muted); color: var(--muted); }

.entry-grid { display: grid; gap: 44px; }
.entry-side .polaroid { margin: 8px auto 0; }
.entry-body { max-width: 640px; min-width: 0; }
.entry-body-wide { max-width: 720px; }

.buy { margin-top: 32px; padding: 20px; background: var(--card); border: 1.5px solid var(--ink); }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.buy-price .price { font-size: 26px; }
.buy-pack { font-size: 15px; color: var(--muted); }
.buy .btn { width: 100%; justify-content: center; margin-top: 14px; }
.buy-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.buy-status { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

.block { padding: 30px 0; border-top: 1.5px dashed var(--ink); }
.block:first-child { padding-top: 0; border-top: 0; }
.block-title { margin-bottom: 14px; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.block p + p { margin-top: 10px; }
.block .btn { margin-top: 16px; }
.about { font-size: 19px; line-height: 1.55; }
.method { margin-top: 0; }
.margin-note { margin-top: 18px; }

/* The ingredient panel, set like a printed food label */
.food-label {
  max-width: 520px; padding: 14px 16px 16px;
  background: #FFFFFF; border: 2px solid var(--ink);
  font-size: 15px; line-height: 1.5;
}
.food-label-title {
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 8px solid var(--ink);
  font-size: 24px; font-weight: 800; letter-spacing: -0.01em;
}
.food-label-contains { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ink); }
.food-label-fine { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Test log: a ruled notebook page with a red margin line */
.log { padding-left: 18px; border-left: 2px solid rgba(168, 53, 42, 0.55); }
.log-entry { padding: 12px 0; border-bottom: 1px solid rgba(43, 74, 155, 0.28); }
.log-meta { display: flex; align-items: baseline; gap: 10px; }
.log-version { font-family: var(--display); font-size: 24px; line-height: 1; }
.log-date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.log-note { margin-top: 4px; font-family: var(--hand); font-size: 24px; line-height: 1.25; color: var(--pencil); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 28px 0 48px; border-top: 1.5px solid var(--ink); }
.pager-link { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--ink); text-decoration: none; }
.pager-next { text-align: right; }
.pager-dir { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pager-name { font-family: var(--display); font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.pager-link:hover .pager-name { text-decoration: underline; }

.lost { padding: 56px 0 80px; }
.lost .label { margin-bottom: 14px; }
.lost-links { margin-top: 24px; }
.lost-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; }

@media (min-width: 900px) {
  .entry-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .entry-side { position: sticky; top: 24px; }
  .entry-side .polaroid { margin: 8px 0 0; }
}

/* Custom orders: the example kitchen ticket */
.custom { align-items: flex-start; }
.custom-notice { margin-top: 22px; font-size: 15px; }
.ticket {
  position: relative; flex: 1 1 300px; max-width: 400px; margin: 8px auto 0;
  padding: 18px 20px 16px; background: #FFFEF8;
  border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink);
  box-shadow: 0 1px 2px rgba(29, 39, 64, 0.16), 0 8px 22px rgba(29, 39, 64, 0.10);
}
.ticket-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--stamp);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
}
.ticket-lines { margin: 4px 0 0; }
.ticket-lines div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 0 4px; border-bottom: 1px dotted var(--ink); }
.ticket-lines dt { flex: 0 0 auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ticket-lines dd { margin: 0; font-family: var(--hand); font-size: 24px; line-height: 1.1; color: var(--pencil); }
.ticket figcaption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.entry-side .ticket { margin: 8px auto 0; }

/* Crossovers: what each experiment combines */
.combo, .card .combo { margin-top: 14px; font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.combo .x { padding: 0 0.1em; color: var(--stamp); }
.card .combo + h3 { margin-top: 4px; }
.entry-head .combo-big { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }

.nudge { margin-top: 18px; font-size: 15px; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: var(--card); border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.category-links a:hover { background: var(--ink); color: var(--paper); }

/* Wider screens: polaroid sits beside the text */
@media (min-width: 760px) {
  .hero .polaroid { margin-left: auto; }
  /* Phones and screen readers get the kitchen's words first; wide screens put the photo on the left. */
  #kitchen .polaroid { order: -1; }
}
