/* Mesa de Portugal — design system
   Palette: faience blue + terracotta on warm paper. No patterns: texture comes
   from photography, line icons and type. */
:root {
  --blue: #1D4E89;
  --blue-deep: #0F2C52;
  --blue-pale: #E7EEF7;
  --terra: #B5462A;
  --terra-deep: #8E3219;
  --terra-pale: #F7E6DC;
  --olive: #59672E;
  --olive-pale: #ECEFDC;
  --cream: #FAF6EF;
  --sand: #F3EBDD;
  --paper: #FFFDF9;
  --ink: #1B2130;
  --muted: #5E6574;
  --line: #E7DECD;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(27,33,48,.04), 0 10px 28px rgba(27,33,48,.07);
  --shadow-lg: 0 2px 6px rgba(27,33,48,.05), 0 26px 60px rgba(27,33,48,.15);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.7 "Work Sans", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; margin: 0 0 .5em; color: var(--blue-deep); letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }
em.sub { display: block; font-size: .62em; margin-top: .25em; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--terra); }
::selection { background: var(--terra-pale); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.wide { max-width: 1120px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250,246,239,.86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(27,33,48,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; flex-wrap: wrap; transition: min-height .3s var(--ease); }
.scrolled .header-inner { min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 58px; height: auto; transition: transform .6s var(--ease); }@media (hover: hover) and (pointer: fine) { .logo:hover img { transform: rotate(-12deg); } }
.wordmark b { display: block; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.42rem; color: var(--blue-deep); letter-spacing: -.02em; line-height: 1; }
.wordmark i { font-weight: 400; color: var(--terra); }
.wordmark small { display: block; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 5px; }
.logo-light .wordmark b { color: #fff; }
.logo-light .wordmark i { color: #F2A98C; }
.logo-light .wordmark small { color: #9DA6B5; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }@media (hover: hover) and (pointer: fine) { .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); } }
.nav a[aria-current] { color: var(--terra-deep); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--terra); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid var(--terra); transition: transform .25s var(--ease), background .25s, box-shadow .25s; box-shadow: 0 8px 22px rgba(181,70,42,.28); }@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); background: var(--terra-deep); border-color: var(--terra-deep); box-shadow: 0 12px 28px rgba(142,50,25,.32); } }
.btn:active { transform: translateY(0) scale(.98); }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); box-shadow: none; backdrop-filter: blur(6px); }@media (hover: hover) and (pointer: fine) { .btn-glass:hover { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: none; } }
.btn-light { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: none; }@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--sand); border-color: var(--sand); box-shadow: none; } }
.btn-small { padding: 10px 20px; font-size: .9rem; margin-top: 20px; background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: none; }@media (hover: hover) and (pointer: fine) { .btn-small:hover { background: var(--blue); border-color: var(--blue); box-shadow: none; } }
.btn-amazon { background: transparent; color: var(--blue-deep); border: 1.5px solid var(--blue-deep); font-size: .9rem; padding: 10px 18px; box-shadow: none; justify-content: center; }
.btn-amazon::after { content: "→"; transition: transform .25s var(--ease); }@media (hover: hover) and (pointer: fine) { .btn-amazon:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); box-shadow: none; } }@media (hover: hover) and (pointer: fine) { .btn-amazon:hover::after { transform: translateX(4px); } }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--blue-deep); }
.link-arrow em { font-style: normal; display: inline-block; transition: transform .25s var(--ease); color: var(--terra); }@media (hover: hover) and (pointer: fine) { .link-arrow:hover em { transform: translateX(5px); } }

.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #F5C6B2; margin-bottom: 14px; }
.eyebrow.dark { color: var(--terra); margin-bottom: 8px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 660px; }

/* ---------- motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0ms) + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--blue-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 16s var(--ease) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,22,40,.9) 0%, rgba(11,22,40,.6) 42%, rgba(11,22,40,.08) 100%), linear-gradient(0deg, rgba(11,22,40,.7), rgba(11,22,40,0) 50%); }
.hero-inner { position: relative; padding-top: 110px; padding-bottom: 130px; width: 100%; }
.hero h1 { color: #fff; max-width: 780px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { color: #F4B59C; }
.hero p { font-size: 1.2rem; max-width: 560px; color: rgba(255,255,255,.9); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 32px; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.78); }
.hero-stats b { display: block; font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; }

/* category tiles overlapping the hero */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: -74px; position: relative; z-index: 2; }
.cat-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }@media (hover: hover) and (pointer: fine) { .cat-tile:hover img { transform: scale(1.07); } }
.cat-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,22,40,.82), rgba(11,22,40,.05) 65%); }
.cat-label { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600; line-height: 1.1; display: flex; flex-direction: column; }
.cat-label small { font-family: "Work Sans", sans-serif; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #F5C6B2; margin-bottom: 6px; }
.cat-label em { position: absolute; right: 0; bottom: 2px; font-style: normal; font-size: 1.3rem; transition: transform .35s var(--ease); }@media (hover: hover) and (pointer: fine) { .cat-tile:hover .cat-label em { transform: translateX(6px); } }

/* manifesto */
.manifesto { padding-top: 96px; text-align: center; }
.manifesto-quote { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; color: var(--blue-deep); max-width: 900px; margin: 0 auto 56px; letter-spacing: -.01em; }
.manifesto-quote em { color: var(--terra); }
.manifesto-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; border-top: 1px solid var(--line); padding-top: 36px; }
.manifesto-cols h3 { font-size: 1.15rem; margin-bottom: 8px; }
.manifesto-cols p { margin: 0; color: var(--muted); font-size: .96rem; }

/* feature */
.feature { padding-top: 96px; }
.feature-card { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--paper); border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: box-shadow .4s; }@media (hover: hover) and (pointer: fine) { .feature-card:hover { box-shadow: var(--shadow-lg); } }
.feature-media { overflow: hidden; min-height: 400px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }@media (hover: hover) and (pointer: fine) { .feature-card:hover .feature-media img { transform: scale(1.05); } }
.feature-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-body p { color: var(--muted); margin: 0 0 18px; }
.feature-facts { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 22px; color: var(--muted); font-size: .92rem; }
.feature-facts b { color: var(--blue-deep); font-family: "Fraunces", serif; font-size: 1.15rem; }

.ornament { display: flex; align-items: center; gap: 18px; max-width: 420px; margin: 96px auto 0; padding: 0 28px; }
.ornament span { flex: 1; height: 1px; background: var(--line); }
.ornament img { opacity: .9; }

/* lanes + cards */
.lane { padding-top: 72px; }
.lane-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.lane-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 30px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sand); display: grid; place-items: center; box-shadow: var(--shadow); transition: box-shadow .4s, transform .4s var(--ease); }@media (hover: hover) and (pointer: fine) { .card:hover .card-media { box-shadow: var(--shadow-lg); transform: translateY(-4px); } }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }@media (hover: hover) and (pointer: fine) { .card:hover .card-media img { transform: scale(1.06); } }
.card-illo { width: 46%; color: var(--terra); opacity: .9; transition: transform .6s var(--ease); }
.card-illo svg { width: 100%; height: auto; }@media (hover: hover) and (pointer: fine) { .card:hover .card-illo { transform: scale(1.06) rotate(-3deg); } }
.card-guides .card-illo { color: var(--olive); }
.chip { position: absolute; left: 14px; top: 14px; background: rgba(255,253,249,.94); color: var(--blue-deep); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card-traditional .chip { color: var(--terra-deep); }
.card-guides .chip { color: var(--olive); }
.card-body { padding: 18px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; transition: color .25s; }@media (hover: hover) and (pointer: fine) { .card:hover h3 { color: var(--terra); } }
.card-body p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card-meta { margin-top: auto; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }

/* band */
.band { background: var(--blue-deep); color: #D3DEEE; margin: 110px 0 0; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); pointer-events: none; }
.band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.band h2 { color: #fff; }
.band p { margin: 0 0 30px; font-size: 1.06rem; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.35; transition: background .3s, transform .35s var(--ease); }
.mini svg { width: 48px; height: 48px; color: #F4B59C; }@media (hover: hover) and (pointer: fine) { .mini:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); } }

/* page hero */
.page-hero { padding: 72px 0 40px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.listing-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; transition: all .25s; }@media (hover: hover) and (pointer: fine) { .filters a.on, .filters a:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; } }
.search input { font: inherit; font-size: .95rem; width: min(340px, 100%); padding: 11px 18px 11px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235E6574' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5L17 17'/%3E%3C/svg%3E") 16px center no-repeat; color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s; }
.search input:focus { border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-pale); }
.no-results { color: var(--muted); text-align: center; padding: 40px 0; }
.disclosure-inline { font-size: .92rem; color: var(--muted); max-width: 720px; }

/* ---------- post ---------- */
.post-hero { padding: 64px 0 36px; }
.crumbs { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.crumbs a { color: var(--terra); text-decoration: none; }
.crumbs span { color: var(--line); margin: 0 6px; }
.facts { display: inline-flex; flex-wrap: wrap; justify-content: center; margin-top: 24px; background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.facts div { padding: 13px 24px; display: flex; flex-direction: column; min-width: 104px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts span { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.facts strong { font-size: 1.12rem; color: var(--blue-deep); font-family: "Fraunces", serif; font-weight: 600; }
.post-figure { margin: 8px 0 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-illo { aspect-ratio: 16 / 7; background: var(--sand); display: grid; place-items: center; color: var(--terra); box-shadow: none; }
.post-illo svg { width: min(220px, 40%); height: auto; }

.prose { padding-top: 48px; padding-bottom: 24px; font-size: 1.07rem; }
.prose > p:first-child::first-letter { font-family: "Fraunces", serif; float: left; font-size: 3.8em; line-height: .88; padding: 6px 12px 0 0; color: var(--terra); font-weight: 600; }
.prose h2 { margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose ol li::marker { color: var(--terra); font-weight: 700; font-family: "Fraunces", serif; }
#ingredients + ul { list-style: none; background: var(--paper); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); columns: 2; column-gap: 36px; }
#ingredients + ul li { break-inside: avoid; padding-left: 22px; position: relative; }
#ingredients + ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--terra); }
#method + ol { counter-reset: step; list-style: none; padding-left: 0; }
#method + ol li { counter-increment: step; position: relative; padding: 2px 0 20px 60px; margin: 0; }
#method + ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; }
#method + ol li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.tip { background: var(--olive-pale); border-radius: 16px; padding: 18px 22px 18px 54px; margin: 1.6em 0; position: relative; }
.tip::before { content: "!"; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--olive); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
code { background: var(--blue-pale); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 20px 0; }
.prose .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; margin: 20px 0; box-shadow: var(--shadow); transition: box-shadow .35s, transform .35s var(--ease); }
.product-grid .product-card { margin: 0; }@media (hover: hover) and (pointer: fine) { .product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); } }
.product-icon { height: 150px; display: grid; place-items: center; background: var(--sand); color: var(--terra); }
.product-bs .product-icon { background: var(--blue-pale); color: var(--blue); }
.product-icon svg { width: 76px; height: 76px; transition: transform .6s var(--ease); }@media (hover: hover) and (pointer: fine) { .product-card:hover .product-icon svg { transform: scale(1.1) rotate(-4deg); } }
.prose > .product-card { flex-direction: row; align-items: stretch; }
.prose > .product-card .product-icon { width: 150px; height: auto; flex: none; }
.prose > .product-card .btn-amazon { align-self: center; white-space: nowrap; margin-right: 22px; }
.product-body { padding: 20px 22px 6px; flex: 1; }
.product-body h4 { margin: 8px 0 6px; font-size: 1.14rem; }
.product-body p { margin: 0 0 8px; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.product-body .look-for { color: var(--ink); font-size: .88rem; }
.product-card .btn-amazon { margin: 8px 22px 22px; }
.badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-pt { background: var(--terra-pale); color: var(--terra-deep); }
.badge-bs { background: var(--blue-pale); color: var(--blue-deep); }
.used-in { font-size: .82rem !important; }
.kit { margin-top: 64px; padding: 36px; background: var(--sand); border-radius: 28px; }
.kit h2 { margin-top: 0; }
.kit .product-card { box-shadow: none; }
.kit .product-icon { background: var(--cream); }
.kit-note { font-size: .9rem; color: var(--muted); }
.shop-section { margin-bottom: 72px; scroll-margin-top: 110px; }
.lede-sm { color: var(--muted); max-width: 700px; }

.related { padding: 72px 0 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A9B1BF; margin-top: 120px; padding-top: 64px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; }
.footer-blurb { max-width: 340px; margin-top: 18px; }
.footer-grid h4 { color: #fff; font-family: "Work Sans", sans-serif; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-grid div > a:not(.logo) { display: block; text-decoration: none; margin-bottom: 9px; opacity: .85; transition: opacity .2s, transform .25s var(--ease); }@media (hover: hover) and (pointer: fine) { .footer-grid div > a:not(.logo):hover { opacity: 1; transform: translateX(3px); } }
.footer-legal { border-top: 1px solid #333A48; margin-top: 48px; padding-top: 22px; padding-bottom: 36px; font-size: .84rem; }
.footer-legal p { margin: 4px 0; }

@media (max-width: 960px) {
  .manifesto-cols { grid-template-columns: 1fr; gap: 24px; }
  .cat-tiles { gap: 14px; margin-top: -60px; }
  .cat-tile { aspect-ratio: 4 / 5; }
  .cat-label { font-size: 1.25rem; left: 16px; right: 16px; }
  .feature-card, .band-inner { grid-template-columns: 1fr; }
  .feature-media { min-height: 260px; }
  .feature-body { padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header { position: static; }
  .header-inner { min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 4px; font-size: .9rem; }
  .nav a::after { left: 4px; right: 4px; }
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 620px; }
  .hero-inner { padding-top: 70px; padding-bottom: 100px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,22,40,.94) 20%, rgba(11,22,40,.45) 100%); }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 1.5rem; }
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile { aspect-ratio: 16 / 8; }
  .minis { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 10px 14px; min-width: 76px; }
  #ingredients + ul { columns: 1; padding: 20px; }
  .post-figure { border-radius: 18px; }
  .kit { padding: 24px 16px; }
  .prose > .product-card { flex-direction: column; }
  .prose > .product-card .product-icon { width: auto; height: 120px; }
  .prose > .product-card .btn-amazon { align-self: stretch; margin: 8px 22px 22px; }
  .listing-tools, .search input { width: 100%; }
}

/* =====================================================================
   Round 3 — flow, UI and motion
   ===================================================================== */

/* ---------- page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.site-header { view-transition-name: site-header; }
.post-figure { view-transition-name: hero-img; }
::view-transition-group(hero-img) { animation-duration: .6s; animation-timing-function: cubic-bezier(.3, .8, .2, 1); }
::view-transition-old(hero-img), ::view-transition-new(hero-img) { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- hero: parallax wrapper, word reveal ---------- */
.hero-media { position: absolute; left: 0; right: 0; top: -4%; height: 112%; will-change: transform; }
.hero-media .hero-img { position: absolute; inset: 0; }
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 180ms); }
@keyframes word { to { opacity: 1; transform: none; } }

/* ---------- ribbon of dish names ---------- */
.ribbon { overflow: hidden; margin-top: 72px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }@media (hover: hover) and (pointer: fine) { .ribbon:hover .ribbon-track { animation-play-state: paused; } }
.ribbon span { font-family: "Fraunces", serif; font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--blue-deep); white-space: nowrap; }
.ribbon span:nth-of-type(3n+2) { color: var(--terra); }
.ribbon img { width: 40px; height: auto; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
.manifesto { padding-top: 80px; }

/* ---------- header: mobile menu, progress ---------- */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--blue-deep); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; display: none; }
.post-page .progress { display: block; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--terra), #E08A5F); transform: scaleX(0); transform-origin: left; }

/* ---------- back to top, toast ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue-deep); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s; }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--terra); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- recipe page: two columns + tools ---------- */
.post-body { display: grid; grid-template-columns: minmax(0, 760px) 250px; justify-content: center; gap: 64px; align-items: start; }
.post-body .prose { min-width: 0; }
.tools { position: sticky; top: 104px; padding-top: 48px; }
.tools-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.tools-title { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tools-jumps { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tools-jumps a, .tools-actions button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 .95rem "Work Sans", sans-serif; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; transition: background .2s, color .2s; }
.tools-jumps a svg, .tools-actions svg { width: 18px; height: 18px; flex: none; color: var(--terra); }@media (hover: hover) and (pointer: fine) { .tools-jumps a:hover, .tools-actions button:hover { background: var(--sand); } }
.tools-jumps a.on { background: var(--terra-pale); color: var(--terra-deep); font-weight: 600; }
.tools-actions { display: flex; flex-direction: column; gap: 2px; }
.tools-actions button.on { background: var(--blue-deep); color: #fff; }
.tools-actions button.on svg { color: #F4B59C; }
.tools-hint { font-size: .8rem; color: var(--muted); margin: 14px 4px 0; line-height: 1.5; }

/* tick-off lists */
.tickable > li { cursor: pointer; border-radius: 10px; transition: color .25s, opacity .25s; outline: none; }
.tickable > li:focus-visible { box-shadow: 0 0 0 3px var(--terra-pale); }
#ingredients + ul.tickable li::before { transition: background .25s, border-color .25s, transform .3s var(--ease); }@media (hover: hover) and (pointer: fine) { #ingredients + ul.tickable li:hover::before { transform: scale(1.25); } }
#ingredients + ul.tickable li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--terra); opacity: .7; }
#ingredients + ul.tickable li.done::before { background: var(--terra); border-color: var(--terra); }
#method + ol.tickable li::before { transition: background .3s, transform .3s var(--ease); }@media (hover: hover) and (pointer: fine) { #method + ol.tickable li:hover::before { transform: scale(1.08); } }
#method + ol.tickable li.done { color: var(--muted); }
#method + ol.tickable li.done::before { content: "✓"; background: var(--olive); }
.reset-ticks { display: block; margin: 0 0 8px auto; background: none; border: 0; color: var(--muted); font: 500 .85rem "Work Sans", sans-serif; text-decoration: underline; cursor: pointer; }
.cooking .prose { font-size: 1.16rem; }

/* ---------- shop bar ---------- */
.shop-page .page-hero { margin-bottom: 0; border-bottom: 0; }
.shop-bar { position: sticky; top: 64px; z-index: 20; background: rgba(250,246,239,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.shop-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.shop-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }@media (hover: hover) and (pointer: fine) { .shop-nav a:hover { background: var(--sand); } }
.shop-nav a.on { background: var(--blue-deep); color: #fff; }
.shop-filters { display: flex; gap: 10px; align-items: center; flex: none; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 500 .85rem "Work Sans", sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.seg button.on { background: var(--paper); color: var(--blue-deep); box-shadow: 0 2px 8px rgba(27,33,48,.08); }
.shop-filters .search input { width: 210px; padding-top: 9px; padding-bottom: 9px; }
.shop-section[hidden], .product-card[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .post-body { grid-template-columns: minmax(0, 760px); }
  .tools { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; padding: 0; z-index: 35; }
  .tools-card { padding: 6px; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 4px; background: rgba(255,253,249,.96); backdrop-filter: blur(10px); }
  .tools-title, .tools-hint { display: none; }
  .tools-jumps, .tools-actions { flex-direction: row; margin: 0; padding: 0; border: 0; flex: 1; gap: 2px; }
  .tools-jumps { border-right: 1px solid var(--line); padding-right: 4px; }
  .tools-jumps a, .tools-actions button { flex-direction: column; gap: 3px; justify-content: center; padding: 7px 4px; font-size: .68rem; text-align: center; }
  .post-page .to-top { bottom: 92px; }
  .post-page .toast { bottom: 96px; }
  .post-page .site-footer { padding-bottom: 80px; }
  .shop-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .shop-filters { justify-content: space-between; }
  .shop-filters .search { flex: 1; }
  .shop-filters .search input { width: 100%; }
}
@media (max-width: 900px) {
  .site-header { position: sticky; }
  .header-inner { min-height: 64px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; }
  .wordmark small { display: none; }
  .logo img { width: 50px; height: auto; }
  .wordmark b { font-size: 1.25rem; }
  .menu-btn { display: block; z-index: 2; }
  .nav { position: fixed; inset: 64px 0 auto 0; height: calc(100dvh - 64px); flex-direction: column; justify-content: flex-start; gap: 0; padding: 18px 20px 40px; background: var(--cream); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open { overflow: hidden; }
  .nav a { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 600; color: var(--blue-deep); padding: 14px 4px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .menu-open .nav a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .nav a::after { display: none; }
  .shop-bar { top: 64px; }
  .seg button { padding: 7px 10px; }
}
@media (max-width: 600px) {
  .nav { width: auto; justify-content: flex-start; }
  .nav a { padding: 14px 4px; font-size: 1.8rem; }
  .ribbon { margin-top: 56px; padding: 16px 0; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .tools, .kit, .related, .to-top, .toast, .btn, .reset-ticks, .post-figure { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .post-hero { padding: 0; }
  .post-body { display: block; }
  .prose { padding: 0; }
  #ingredients + ul, .facts { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
}
.shop-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.tools, .to-top { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.menu-open .tools, .menu-open .to-top { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* =====================================================================
   Round 4 — patterns from the top recipe sites
   ===================================================================== */

/* byline */
.byline { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.byline b { color: var(--ink); font-weight: 600; }
.byline img { width: 40px; height: auto; }

/* ---------- recipe card ---------- */
.recipe-card { margin: 56px 0; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); scroll-margin-top: 96px; }
.rc-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 28px 22px; align-items: center; background: linear-gradient(180deg, var(--sand), var(--paper)); }
.rc-thumb { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--cream); display: grid; place-items: center; color: var(--terra); box-shadow: var(--shadow); }
.rc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rc-thumb svg { width: 58%; height: auto; }
.rc-title h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.rc-title p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-actions a, .rc-actions button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .85rem "Work Sans", sans-serif; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.rc-actions svg { width: 16px; height: 16px; color: var(--terra); }@media (hover: hover) and (pointer: fine) { .rc-actions a:hover, .rc-actions button:hover { border-color: var(--terra); transform: translateY(-1px); } }
.rc-actions button.on { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.rc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rc-facts div { padding: 14px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.rc-facts div:last-child { border-right: 0; }
.rc-facts span { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.rc-facts strong { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; color: var(--blue-deep); }
.rc-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; }
.rc-ing { padding: 28px; background: var(--cream); border-right: 1px solid var(--line); }
.rc-method { padding: 28px 30px; }
.rc-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rc-sub h3 { margin: 0; font-size: 1.4rem; scroll-margin-top: 110px; }
.units { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.units button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: 600 .78rem "Work Sans", sans-serif; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.units button.on { background: var(--blue-deep); color: #fff; }
.scaler { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; font-size: .9rem; color: var(--muted); }
.scaler button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--sand); color: var(--blue-deep); font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s var(--ease); }@media (hover: hover) and (pointer: fine) { .scaler button:hover { background: var(--terra-pale); transform: scale(1.08); } }
.scaler output { min-width: 26px; text-align: center; font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; color: var(--blue-deep); }
.scaler span { padding: 0 10px 0 4px; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { position: relative; padding: 9px 4px 9px 30px; border-bottom: 1px dashed var(--line); cursor: pointer; transition: color .25s, opacity .25s; outline: none; }
.ing-list li:last-child { border-bottom: 0; }
.ing-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--terra); transition: background .25s, transform .3s var(--ease); }
.ing-list li.done { color: var(--muted); opacity: .65; text-decoration: line-through; text-decoration-color: var(--terra); }
.ing-list li.done::before { background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat; transform: scale(1.05); }
.ing-list .q { font-weight: 700; color: var(--blue-deep); border-radius: 4px; }
.q.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: var(--terra-pale); } 100% { background: transparent; } }
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 22px 56px; cursor: pointer; transition: color .25s; outline: none; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 600; transition: background .3s, transform .3s var(--ease); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 44px; bottom: 6px; width: 1px; background: var(--line); }@media (hover: hover) and (pointer: fine) { .steps li:hover::before { transform: scale(1.08); } }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--olive); }
.tick-list li:focus-visible { box-shadow: 0 0 0 3px var(--terra-pale); border-radius: 8px; }
.steps .t, .prose .t { white-space: nowrap; }
.rc-notes { margin-top: 8px; padding: 18px 20px; background: var(--olive-pale); border-radius: 16px; }
.rc-notes h4 { margin: 0 0 6px; font-family: "Work Sans", sans-serif; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.rc-notes p, .rc-notes .tip { margin: 0; padding: 0; background: none; font-size: .95rem; }
.rc-notes .tip::before { display: none; }
.rc-ing .tip { margin-top: 14px; font-size: .92rem; }
.rc-foot { margin: 0; padding: 14px 28px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); background: var(--cream); }
.recipe-card .reset-ticks { margin-top: 4px; }

/* FAQ */
.faq { margin-top: 64px; scroll-margin-top: 100px; }
.faq h2 { margin-top: 0; }
.faq-item { background: var(--paper); border-radius: 16px; margin: 10px 0; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.12rem; color: var(--blue-deep); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-family: "Work Sans", sans-serif; color: var(--terra); transition: transform .3s var(--ease), background .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--terra-pale); }
.faq-item div { padding: 0 22px 20px; color: var(--muted); }

/* filed under + prev/next */
.filed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.filed span { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.filed a { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: all .2s; }@media (hover: hover) and (pointer: fine) { .filed a:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); } }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }@media (hover: hover) and (pointer: fine) { .pn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.pn small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.pn b { font-family: "Fraunces", serif; font-weight: 600; color: var(--blue-deep); font-size: 1.08rem; line-height: 1.25; }
.pn-next { text-align: right; }

/* sidebar TOC */
.tools-toc { display: flex; flex-direction: column; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tools-toc a { padding: 6px 10px; border-left: 2px solid var(--line); font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }@media (hover: hover) and (pointer: fine) { .tools-toc a:hover { color: var(--ink); } }
.tools-toc a.on { color: var(--terra-deep); border-color: var(--terra); font-weight: 600; }
.tools-toc:empty { display: none; }
.tj-main { background: var(--blue-deep) !important; color: #fff !important; }
.tj-main svg { color: #F4B59C !important; }

/* ---------- home: collection bubbles, quick scroller, regions, about ---------- */
.bubbles { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px 30px; padding-top: 72px; }
.bubble { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; width: 112px; }
.bubble i { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: block; box-shadow: var(--shadow); outline: 3px solid var(--paper); outline-offset: -3px; transition: transform .4s var(--ease), box-shadow .4s; }
.bubble i img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }@media (hover: hover) and (pointer: fine) { .bubble:hover i { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }@media (hover: hover) and (pointer: fine) { .bubble:hover i img { transform: scale(1.1); } }
.bubble span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); text-align: center; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.region { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }@media (hover: hover) and (pointer: fine) { .region:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.region b { display: block; font-family: "Fraunces", serif; font-size: 1.45rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 6px; }
.region p { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.region small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.region::after { content: "→"; position: absolute; right: 22px; top: 26px; color: var(--terra); font-size: 1.2rem; transition: transform .3s var(--ease); }@media (hover: hover) and (pointer: fine) { .region:hover::after { transform: translateX(5px); } }
.hello { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding: 48px; margin-top: 96px; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); }
.hello img { width: 240px; height: auto; }
.hello h2 { margin-bottom: 12px; }
.hello p { color: var(--muted); margin: 0 0 14px; }
.hello .sig { font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; color: var(--terra); }

@media (max-width: 960px) {
  .regions { grid-template-columns: 1fr 1fr; }
  .scroller { grid-auto-columns: minmax(250px, 42%); }
  .hello { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .hello img { width: 160px; height: auto; margin: 0 auto; }
}
@media (max-width: 760px) {
  .rc-head { grid-template-columns: 1fr; padding: 20px; }
  .rc-thumb { aspect-ratio: 16 / 9; }
  .rc-body { grid-template-columns: 1fr; }
  .rc-ing { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }
  .rc-method { padding: 22px 18px; }
  .rc-facts div { padding: 12px 14px; }
  .prevnext { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: 78%; }
  .bubbles { gap: 18px 14px; padding-top: 56px; }
  .bubble { width: 86px; }
  .bubble i { width: 80px; height: 80px; }
  .bubble span { font-size: .68rem; }
}

/* print only the recipe card */
@media print {
  .print-card main > *:not(.post), .print-card .post-hero, .print-card .post-figure, .print-card .related,
  .print-card .prose > *:not(.recipe-card) { display: none !important; }
  .recipe-card { box-shadow: none; border: 1px solid #bbb; margin: 0; }
  .rc-actions, .rc-foot, .units, .scaler button, .reset-ticks { display: none !important; }
  .rc-body { grid-template-columns: 1fr 1.3fr; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

.filters-sub { margin-top: 14px; }
.filters-sub a { background: transparent; font-size: .85rem; padding: 6px 13px; }

.scaler { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; padding: 6px 6px 6px 14px; border-radius: 14px; }
.sc-label { font-size: .9rem; color: var(--muted); }
.sc-label output { font-size: 1.1rem; }
.mult { display: inline-flex; gap: 2px; }
.mult button { width: auto; height: auto; padding: 5px 11px; border-radius: 999px; background: none; font: 700 .8rem "Work Sans", sans-serif; color: var(--muted); }
.mult button.on { background: var(--blue-deep); color: #fff; }@media (hover: hover) and (pointer: fine) { .mult button:hover { transform: none; } }
/* stacked recipe card (like the top recipe sites) */
.recipe-card { container-type: inline-size; }
.rc-body { grid-template-columns: 1fr; }
.rc-ing { border-right: 0; border-bottom: 1px solid var(--line); }
@container (min-width: 620px) {
  .ing-list { columns: 2; column-gap: 28px; }
  .ing-list li { break-inside: avoid; }
}
@media (max-width: 1100px) {
  .tools-toc { display: none; }
  .tj-main { background: var(--blue-deep) !important; }
  .post-page .to-top { bottom: 96px; right: 16px; }
}

/* =====================================================================
   Blog
   ===================================================================== */
.blog-hero h1 em { font-style: italic; font-weight: 400; color: var(--terra); }
.blog-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; margin-bottom: 48px; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow .4s; }@media (hover: hover) and (pointer: fine) { .blog-lead:hover { box-shadow: var(--shadow-lg); } }
.bl-media { min-height: 380px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.bl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }@media (hover: hover) and (pointer: fine) { .blog-lead:hover .bl-media img { transform: scale(1.04); } }
.bl-media .card-illo { width: 34%; }
.bl-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.bl-body h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bl-body p { color: var(--muted); margin: 0 0 22px; }
.card-blog .chip { color: var(--olive); }
.card-blog .card-illo { color: var(--olive); }

/* home: magazine row */
.mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.mag > .card-big .card-media { aspect-ratio: 4 / 3.4; }
.mag > .card-big h3 { font-size: 1.7rem; }
.mag-side { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mag-side .card-body p { display: none; }
.mag-side .card-body h3 { font-size: 1.05rem; }

/* blog posts read like articles */
.blog-post .prose > p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.blog-post .prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

@media (max-width: 960px) {
  .blog-lead, .mag { grid-template-columns: 1fr; }
  .bl-media { min-height: 240px; }
  .bl-body { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .mag-side { grid-template-columns: 1fr; }
  .mag-side .card-body p { display: block; }
}

/* =====================================================================
   Portugal Lifestyle Pro — language corner
   ===================================================================== */
.phone { position: relative; width: 220px; aspect-ratio: 560 / 1215; border-radius: 34px; background: #1B2130; padding: 7px; box-shadow: 0 30px 60px rgba(15,44,82,.28), inset 0 0 0 2px #3A4152; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; display: block; }
.phone-tilt { transform: rotate(-4deg); }
.phone-tilt-r { transform: rotate(4deg); }
.phone-sm { width: 150px; border-radius: 26px; padding: 5px; }
.phone-sm img { border-radius: 21px; }

.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }@media (hover: hover) and (pointer: fine) { .store:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.25); } }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; font: 600 1.02rem/1.1 "Work Sans", sans-serif; }
.store small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.store-light .store { background: #fff; color: #111; }

/* Say it in Portuguese */
.say { display: grid; grid-template-columns: 1fr 250px; gap: 36px; margin: 56px 0; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, var(--blue-pale), var(--paper) 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.say::before { content: "“"; position: absolute; right: 230px; top: -40px; font-family: "Fraunces", serif; font-size: 14rem; color: var(--blue); opacity: .05; line-height: 1; pointer-events: none; }
.say-dish { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.say-how { margin: 4px 0 18px; }
.pron { font-family: "Fraunces", serif; font-style: italic; color: var(--terra); }
.say-words { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.say-words li { display: flex; flex-direction: column; padding: 10px 14px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }
.say-words b { color: var(--blue-deep); font-size: 1.02rem; }
.say-words .pron { font-size: .9rem; }
.say-words .mean { font-size: .85rem; color: var(--muted); }
.say-phrase { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--terra); background: var(--paper); border-radius: 0 12px 12px 0; display: flex; flex-direction: column; }
.say-phrase .eyebrow { margin-bottom: 4px; }
.say-phrase b { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--blue-deep); font-weight: 600; }
.say-phrase .mean { font-size: .88rem; color: var(--muted); }
.say-app { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.say-app .phone { width: 170px; }
.say-app-copy p { font-size: .9rem; color: var(--muted); margin: 0; }
.say-app .stores { justify-content: center; }
.say-app .store { padding: 6px 12px 6px 9px; }
.say-app .store span { font-size: .88rem; }
.say-more { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--blue-deep); text-decoration: none; }

/* phrasebook + app card in articles */
.phrasebook { display: grid; grid-template-columns: 1fr 190px; gap: 32px; align-items: center; margin: 48px 0; padding: 30px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.phrasebook h3 { margin: 0 0 14px; }
.phrasebook .phrases { grid-template-columns: 1fr; }
.phrasebook .phrases li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; box-shadow: none; background: var(--cream); }
.phrasebook .phrases .mean { flex-basis: 100%; }
.phrasebook .phone { width: 180px; }
.pb-note { font-size: .92rem; color: var(--muted); margin: 18px 0 0; }
.app-card { display: flex; gap: 24px; align-items: center; margin: 40px 0; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--terra-pale), var(--paper)); border: 1px solid var(--line); }
.app-card h4 { margin: 4px 0 6px; font-size: 1.3rem; }
.app-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* homepage band */
.learn { margin-top: 110px; background: linear-gradient(140deg, var(--terra) 0%, #9E3A20 100%); color: #FBE3D8; overflow: hidden; position: relative; }
.learn::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 70px rgba(255,255,255,.03); }
.learn-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.learn h2 { color: #fff; }
.learn h2 em { color: #FFD9C7; }
.learn p { font-size: 1.05rem; }
.learn-points { list-style: none; padding: 0; margin: 18px 0 8px; }
.learn-points li { padding-left: 28px; position: relative; margin-bottom: 8px; color: #fff; }
.learn-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .72rem; }
.learn-phones { position: relative; height: 470px; }
.learn-phones .phone { position: absolute; width: 210px; transition: transform .8s var(--ease); }
.learn-phones .p1 { left: 4%; top: 50px; transform: rotate(-8deg); }
.learn-phones .p2 { left: 34%; top: 0; z-index: 2; }
.learn-phones .p3 { left: 64%; top: 60px; transform: rotate(8deg); }@media (hover: hover) and (pointer: fine) { .learn-phones:hover .p1 { transform: rotate(-11deg) translateX(-10px); } }@media (hover: hover) and (pointer: fine) { .learn-phones:hover .p3 { transform: rotate(11deg) translateX(10px); } }@media (hover: hover) and (pointer: fine) { .learn-phones:hover .p2 { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .learn-inner { grid-template-columns: 1fr; }
  .learn-phones { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .learn-phones .phone { width: 180px; }
}
@media (max-width: 760px) {
  .say, .phrasebook { grid-template-columns: 1fr; padding: 22px 18px; }
  .say::before { display: none; }
  .say-words { grid-template-columns: 1fr; }
  .phrasebook .phone { display: none; }
  .app-card { flex-direction: column; text-align: center; }
  .app-card .stores { justify-content: center; }
  .learn-phones { height: 330px; }
  .learn-phones .phone { width: 135px; border-radius: 24px; padding: 5px; }
  .learn-phones .phone img { border-radius: 20px; }
  .learn-phones .p2 { left: 31%; }
}
@media print { .say, .phrasebook, .app-card { display: none !important; } }
.prose .say-words { padding-left: 0; }
.prose .say-dish { margin-top: 0; }
.prose .phrasebook h3 { margin-top: 0; }

/* ---------- product serving-idea photos ---------- */
.product-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }@media (hover: hover) and (pointer: fine) { .product-card:hover .product-photo img { transform: scale(1.05); } }
.product-photo figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(250, 246, 239, .9); color: var(--muted); }
.prose > .product-card .product-photo { width: 220px; aspect-ratio: auto; flex: none; }
@media (max-width: 600px) {
  .prose > .product-card .product-photo { width: auto; aspect-ratio: 4 / 3; }
}
.product-line { padding: 0; overflow: hidden; height: auto; aspect-ratio: 4 / 3; }
.product-line img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }@media (hover: hover) and (pointer: fine) { .product-card:hover .product-line img { transform: scale(1.06) rotate(-1.5deg); } }
.prose > .product-card .product-line { width: 220px; aspect-ratio: auto; }
@media (max-width: 600px) { .prose > .product-card .product-line { width: auto; height: auto; } }

/* ---------- iPhone / iPad ---------- */
html { -webkit-tap-highlight-color: rgba(181, 70, 42, .12); }
@media (pointer: coarse) { input, select, textarea, .search input, .shop-filters .search input { font-size: 16px; } }
.to-top { bottom: calc(22px + env(safe-area-inset-bottom)); right: calc(22px + env(safe-area-inset-right)); }
.toast { bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (max-width: 1100px) {
  .post-page .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tools { bottom: calc(12px + env(safe-area-inset-bottom)); left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); }
  .post-page .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .post-page .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) { .post-page .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); } }
/* touch targets: Apple's 44pt minimum on touch screens */
@media (pointer: coarse) {
  .units button, .mult button, .seg button { min-height: 44px; min-width: 44px; }
  .rc-actions a, .rc-actions button, .filters a, .filed a, .shop-nav a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .reset-ticks, .say-more, .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-grid div > a { min-height: 44px; display: flex; align-items: center; }
  .store { min-height: 44px; }
}
/* recipe header facts: tidy 2x2 grid on phones instead of a ragged wrap */
@media (max-width: 600px) {
  .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); width: 100%; max-width: 360px; }
  .facts div { background: var(--paper); border-right: 0; min-width: 0; align-items: center; }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.logo-light img { filter: brightness(1.45) saturate(1.1); }
.ornament img { width: 52px; height: auto; }
