/*
Theme Name: Habitavie
Theme URI: https://habitavie.com/
Description: Lightweight block theme for Habitavie — calm, readable, mobile first. No jQuery, no page builder, self-hosted fonts.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: habitavie
*/

/* ---- Base ---- */
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }
:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
img { height: auto; }

/* ---- Logo ---- */
.hv-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.hv-logo__mark { width: 2.4rem; height: 2.4rem; flex: none; transition: transform .3s ease; }
.hv-logo:hover .hv-logo__mark { transform: rotate(-8deg) scale(1.04); }
.hv-logo__text { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
.hv-logo__text em { font-style: italic; color: var(--wp--preset--color--primary); }
.hv-logo:hover { color: var(--wp--preset--color--ink); text-decoration: none; }
.hv-footer .hv-logo__mark { width: 2.1rem; height: 2.1rem; }
@media (prefers-reduced-motion: reduce) { .hv-logo__mark { transition: none; } }

/* ---- Header ---- */
.hv-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.hv-header .wp-block-site-title a { text-decoration: none; letter-spacing: -.01em; }
.hv-nav { display: flex; align-items: center; gap: 1rem; }
.hv-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.hv-desktop-only .hv-menu ul { flex-wrap: nowrap; white-space: nowrap; gap: .25rem 1.1rem; }
.hv-menu a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; padding: .5rem 0; display: inline-block; }
.hv-menu a:hover, .hv-menu .current-menu-item > a { color: var(--wp--preset--color--primary); text-decoration: underline; }

/* Mobile menu: CSS-only disclosure (no JavaScript). */
.hv-burger { display: none; }
@media (max-width: 1079px) {
  .hv-burger { display: block; }
  .hv-burger > summary { list-style: none; cursor: pointer; padding: .5rem .75rem; border: 1px solid var(--wp--preset--color--line); border-radius: .5rem; font-weight: 600; }
  .hv-burger > summary::-webkit-details-marker { display: none; }
  .hv-burger[open] .hv-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--line); padding: .5rem 1.25rem 1rem; z-index: 20; }
  .hv-burger .hv-menu ul { flex-direction: column; gap: 0; }
  .hv-burger .hv-menu a { padding: .75rem 0; }
  .hv-desktop-only { display: none; }
  .hv-header { position: relative; }
}

/* ---- Language switcher ---- */
.hv-lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.hv-lang a { display: inline-block; padding: .35rem .5rem; border-radius: .4rem; text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--wp--preset--color--muted); text-transform: uppercase; }
.hv-lang a:hover { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }
.hv-lang a[aria-current="true"] { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--soft); }

/* ---- Photos ---- */
.hv-hero { display: grid; gap: 2rem; align-items: center; padding-block: var(--wp--preset--spacing--50); }
.hv-hero h1 { margin: 0; }
.hv-hero__img { margin: 0; }
.hv-hero__img img, .hv-hero-img img { width: 100%; height: auto; border-radius: .9rem; display: block; }
.hv-hero__img img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .hv-hero { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hv-hero-img { margin-block: 1.25rem .25rem; }
.hv-credit { font-size: .8rem; color: var(--wp--preset--color--muted); margin: 0 0 1.5rem; }
.hv-credit a { color: inherit; }
.hv-card-img { margin: 0 0 .75rem; }
.hv-card-img img { width: 100%; height: auto; border-radius: .6rem; display: block; }

/* ---- Cards (home + archives) ---- */
.hv-cats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.hv-cat { background: var(--wp--preset--color--surface); border-radius: .9rem; padding: 1.5rem; }
.hv-cat h2 { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--large); }
.hv-cat h2 a { text-decoration: none; color: var(--wp--preset--color--ink); }
.hv-cat p { margin: 0 0 1rem; color: var(--wp--preset--color--muted); }
.hv-cat ul { margin: 0; padding-left: 1.1rem; }
.hv-cat li { margin: .35rem 0; }
.hv-cat .hv-more { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* ---- Footer ---- */
.hv-footer { border-top: 1px solid var(--wp--preset--color--line); }
.hv-footer .hv-menu ul { flex-direction: column; gap: .15rem; }
.hv-footer .hv-menu a { font-weight: 400; padding: .3rem 0; color: var(--wp--preset--color--muted); }
.hv-footer .hv-menu a:hover { color: var(--wp--preset--color--ink); }
.hv-disclaimer { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); max-width: 48rem; }

/* ---- Article boxes (filled in Phase 2) ---- */
.hv-box { border-radius: .8rem; padding: 1.25rem 1.5rem; margin-block: 2rem; }
.hv-box--takeaways { background: var(--wp--preset--color--soft); }
.hv-box--doctor { background: var(--wp--preset--color--warm); border-left: 4px solid var(--wp--preset--color--accent); }
.hv-box > :first-child { margin-top: 0; }
.hv-box > :last-child { margin-bottom: 0; }

/* Article elements (format: docs/article-spec.md) */
.hv-short { font-size: var(--wp--preset--font-size--large); line-height: 1.5; border-left: 4px solid var(--wp--preset--color--primary); padding-left: 1rem; }
.hv-table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); margin-block: 1.5rem; display: block; overflow-x: auto; }
.hv-table th, .hv-table td { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.hv-table th { background: var(--wp--preset--color--surface); }
.hv-checklist { list-style: none; padding-left: 0; }
.hv-checklist li { padding-left: 2rem; position: relative; margin: .5rem 0; }
.hv-checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--wp--preset--color--primary); border-radius: .25rem; }
.hv-routine li { margin: .6rem 0; }
.hv-sources { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); overflow-wrap: anywhere; }
.hv-sources li { margin: .4rem 0; }
sup a { text-decoration: none; font-weight: 600; }

/* Article layout: reading column + desktop sidebar */
.hv-article-grid { display: block; }
.hv-article { max-width: 44rem; margin-inline: auto; }
.hv-sidebar { display: none; }
@media (min-width: 1100px) {
  .hv-article-grid { display: grid; grid-template-columns: minmax(0, 44rem) 300px; gap: 3rem; justify-content: center; }
  .hv-article { margin: 0; }
  .hv-sidebar { display: block; }
  .hv-sidebar .hv-ad { position: sticky; top: 2rem; }
}
.hv-crumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.hv-crumbs a { color: var(--wp--preset--color--muted); }
.hv-byline { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.hv-byline strong { font-weight: 600; color: var(--wp--preset--color--ink); }

/* Table of contents */
.hv-toc { border: 1px solid var(--wp--preset--color--line); border-radius: .8rem; padding: 1rem 1.25rem; margin-block: 1.5rem; }
.hv-toc__title { margin: 0 0 .25rem; font-weight: 700; }
.hv-toc ol { margin: 0; padding-left: 1.25rem; }
.hv-toc li { margin: .3rem 0; }

/* Ad slots: space reserved in advance so nothing jumps when the ad loads (CLS). */
.hv-ad { display: block; margin-block: 2rem; text-align: center; }
.hv-ad__label { display: block; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-bottom: .25rem; }
.hv-ad--intro, .hv-ad--mid, .hv-ad--end { min-height: 300px; }
.hv-ad--sidebar { min-height: 620px; margin-top: 0; }
.hv-ad--placeholder { background: repeating-linear-gradient(45deg, #EEE 0 10px, #F6F6F6 10px 20px); border-radius: .5rem; color: #888; }

/* Author box + related */
.hv-authorbox { background: var(--wp--preset--color--surface); }
.hv-authorbox__title { font-weight: 700; }
.hv-related ul { list-style: none; padding: 0; display: grid; gap: 1rem; }
.hv-related li { border-top: 1px solid var(--wp--preset--color--line); padding-top: .75rem; }
.hv-related li a { font-weight: 600; }
.hv-related li p { margin: .25rem 0 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Recipe card */
.hv-recipe { margin-block: 1.75rem 2.25rem; padding: clamp(1rem, 3vw, 1.75rem); background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 1.1rem; box-shadow: 0 10px 28px rgba(30, 39, 35, .06); }
.hv-recipe__meta { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .5rem; }
.hv-recipe__meta li { background: var(--wp--preset--color--soft); border-radius: .7rem; padding: .55rem .75rem; display: flex; flex-direction: column; }
.hv-recipe__meta span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); font-weight: 600; }
.hv-recipe__meta strong { font-size: 1.05rem; }
.hv-recipe__diet { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.hv-diet { font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: var(--wp--preset--color--warm); color: var(--wp--preset--color--accent); }
.hv-recipe__cols { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .hv-recipe__cols { grid-template-columns: .85fr 1.15fr; } }
.hv-recipe h2 { font-size: var(--wp--preset--font-size--large); margin: 0 0 .75rem; }
.hv-ingredients { list-style: none; padding: 0; margin: 0; }
.hv-ingredients li { padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dashed var(--wp--preset--color--line); position: relative; }
.hv-ingredients li::before { content: ""; position: absolute; left: 0; top: .85rem; width: .65rem; height: .65rem; border-radius: 50%; border: 2px solid var(--wp--preset--color--primary); }
.hv-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.hv-steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2.6rem; }
.hv-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-size: .9rem; }
.hv-recipe__tools { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin: 1rem 0 0; }
.hv-related-guide { background: var(--wp--preset--color--surface); border-radius: .8rem; padding: .9rem 1.1rem; }
@media print { .hv-recipe { box-shadow: none; } .hv-ad, .hv-toc, .hv-related, .hv-authorbox { display: none !important; } }

/* [MY INPUT] markers: visible only to logged-in editors, never to the public. */
.hv-myinput { display: none; }
body.logged-in .hv-myinput { display: block; background: #FFF3B0; border: 2px dashed #B5622E; padding: .75rem 1rem; border-radius: .5rem; font-weight: 600; }

/* Legal and editorial pages: comfortable reading width, no distractions. */
.hv-prose h2 { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .hv-header, .hv-footer, .hv-lang { display: none; } body { font-size: 12pt; } }

/* ==================================================================== */
/* Home page (v0.4): fluid layout, photo cards                          */
/* ==================================================================== */
.hv-home { --r: clamp(1rem, 1.6vw, 1.5rem); }
.hv-home h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin: 0; }

/* Hero */
.hv-hero2 { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 3.5rem); border-radius: calc(var(--r) * 1.4);
  background: radial-gradient(120% 140% at 0% 0%, var(--wp--preset--color--soft) 0%, var(--wp--preset--color--base) 55%, var(--wp--preset--color--warm) 100%); }
@media (min-width: 900px) { .hv-hero2 { grid-template-columns: 1.1fr .9fr; } }
.hv-hero2 h1 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.01em; }
.hv-hero2__sub { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--wp--preset--color--muted); max-width: 34rem; margin: 0 0 1.5rem; }
.hv-hero2__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.5rem; }
.hv-btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--wp--preset--color--primary); transition: transform .15s ease, box-shadow .15s ease; }
.hv-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(44, 102, 72, .25); color: #fff; text-decoration: none; }
.hv-btn--ghost { background: transparent; color: var(--wp--preset--color--primary); }
.hv-btn--ghost:hover { color: var(--wp--preset--color--primary); }
.hv-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hv-badges li { font-size: .9rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--wp--preset--color--line); }
.hv-badges span { color: var(--wp--preset--color--primary); }
.hv-hero2 .hv-hero__img { margin: 0; }
.hv-hero2 .hv-hero__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: 0 18px 40px rgba(30, 39, 35, .18); display: block; }

/* Sections */
.hv-sec { margin-top: clamp(3rem, 7vw, 5.5rem); }
.hv-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.hv-sec__head p { margin: 0; color: var(--wp--preset--color--muted); }

/* Category photo cards */
/* 1 → 2 → 4 columns: never an orphan card */
.hv-catgrid { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 560px) { .hv-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 560px) and (max-width: 1099px) { .hv-catcard:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1100px) { .hv-catgrid { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.hv-catcard { position: relative; display: block; overflow: hidden; border-radius: var(--r); min-height: clamp(16rem, 28vw, 21rem); color: #fff; text-decoration: none; background: var(--wp--preset--color--primary); isolation: isolate; }
.hv-catcard__img, .hv-catcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-catcard__img img { transition: transform .5s ease; }
.hv-catcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 28, 23, .92) 0%, rgba(18, 28, 23, .55) 45%, rgba(18, 28, 23, .05) 75%); z-index: 1; }
.hv-catcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.hv-catcard__name { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.15; }
.hv-catcard__count { align-self: flex-start; font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.hv-catcard__intro { font-size: .92rem; line-height: 1.45; opacity: .92; }
.hv-catcard:hover .hv-catcard__img img, .hv-catcard:focus-visible .hv-catcard__img img { transform: scale(1.06); }
.hv-catcard:hover, .hv-catcard:focus-visible { color: #fff; }

/* Pillar guides */
.hv-pillars { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .hv-pillars { grid-template-columns: repeat(2, 1fr); } }
.hv-pillar a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hv-pillar a:hover, .hv-pillar a:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 39, 35, .12); }
.hv-pillar__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wp--preset--color--surface); }
.hv-pillar__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-pillar__body { display: flex; flex-direction: column; gap: .5rem; padding: clamp(1rem, 2.5vw, 1.5rem); flex: 1; }
.hv-pillar__cat, .hv-card-cat, .hv-card-cat a { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--primary); text-decoration: none; }
.hv-pillar__title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.25; }
.hv-pillar__excerpt { color: var(--wp--preset--color--muted); font-size: .97rem; }
.hv-pillar__more { margin-top: auto; font-weight: 600; color: var(--wp--preset--color--primary); }

/* Latest articles */
.hv-latest .wp-block-post-template { gap: clamp(1rem, 2.5vw, 1.75rem); }
.hv-latest .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
@media (min-width: 600px) { .hv-latest .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 1000px) { .hv-latest .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, 1fr) !important; } }
.hv-latest .hv-card-img { overflow: hidden; border-radius: calc(var(--r) * .7); }
.hv-latest .hv-card-img img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.hv-latest li:hover .hv-card-img img { transform: scale(1.04); }
.hv-latest .wp-block-post-title { margin: .25rem 0 .4rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem) !important; }
.hv-latest .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.hv-latest .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.hv-latest .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: .95rem; }
.hv-latest .wp-block-post-excerpt__excerpt { margin: 0; }

/* Method band */
.hv-method { margin-top: clamp(3rem, 7vw, 5.5rem); padding: clamp(1.5rem, 4.5vw, 3.5rem); border-radius: calc(var(--r) * 1.4); background: var(--wp--preset--color--primary); color: #fff; }
.hv-method h2 { color: #fff; margin-bottom: clamp(1rem, 2.5vw, 1.75rem) !important; }
.hv-method ol { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.hv-method li { display: flex; flex-direction: column; gap: .4rem; }
.hv-method__num { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--warm); color: var(--wp--preset--color--accent); font-weight: 700; }
.hv-method strong { font-size: 1.1rem; }
.hv-method p { margin: 0; opacity: .92; }
.hv-method a { color: #fff; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hv-catcard__img img, .hv-pillar a, .hv-btn, .hv-latest .hv-card-img img { transition: none !important; transform: none !important; }
}

/* ==================================================================== */
/* Home v0.5: "orbit" hero (light palette)                              */
/* Composition inspired by a plated-dish website concept: a plate in the */
/* centre, elements flying in and settling around it, dotted guides.     */
/* ==================================================================== */
.hv-ohero { position: relative; padding: clamp(2rem, 6vw, 5rem) var(--wp--style--root--padding-right, 1.25rem) clamp(5rem, 10vw, 7.5rem);
  background:
    radial-gradient(55% 75% at 82% 48%, var(--wp--preset--color--soft) 0%, rgba(230, 240, 233, 0) 70%),
    radial-gradient(45% 60% at 4% 0%, var(--wp--preset--color--warm) 0%, rgba(251, 239, 226, 0) 70%),
    var(--wp--preset--color--base);
  overflow: hidden; }
.hv-ohero__inner { max-width: 76rem; margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hv-ohero__inner { grid-template-columns: 1.05fr .95fr; } }
.hv-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.hv-eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; border-radius: 2px; }
.hv-ohero h1 { font-size: clamp(2.2rem, 1.15rem + 3.5vw, 3.9rem); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .6rem; }
.hv-ohero__script { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--wp--preset--color--accent); margin: 0 0 1.1rem; }
.hv-ohero__sub { font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); color: var(--wp--preset--color--muted); max-width: 33rem; margin: 0 0 1.75rem; }
.hv-ohero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* Orbit stage */
.hv-orbit { position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin-inline: auto; }
.hv-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--wp--preset--color--primary); stroke-width: .3; stroke-dasharray: .6 1.6; stroke-linecap: round; opacity: .55; animation: hv-fade 1s ease .9s both; }
.hv-orbit__plate { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 clamp(6px, 1.2vw, 12px) #fff, 0 0 0 calc(clamp(6px, 1.2vw, 12px) + 1px) var(--wp--preset--color--line), 0 28px 60px rgba(30, 39, 35, .18);
  animation: hv-plate 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hv-orbit__plate .hv-hero__img, .hv-orbit__plate .hv-hero__img img { margin: 0; width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; display: block; }
.hv-orbit__item { position: absolute; transform: translate(-50%, -50%); text-decoration: none; z-index: 2; animation: hv-fly .95s cubic-bezier(.2, .9, .25, 1.15) var(--d, 0s) both; }
.hv-orbit__item--1 { left: 13%; top: 15%; }
.hv-orbit__item--2 { left: 87%; top: 15%; }
.hv-orbit__item--3 { left: 13%; top: 85%; }
.hv-orbit__item--4 { left: 87%; top: 85%; }
.hv-orbit__float { display: flex; flex-direction: column; align-items: center; gap: .4rem; animation: hv-float 6s ease-in-out calc(var(--d, 0s) + 1.1s) infinite; }
.hv-orbit__item--2 .hv-orbit__float, .hv-orbit__item--3 .hv-orbit__float { animation-duration: 7s; animation-direction: reverse; }
.hv-orbit__icon { width: clamp(3.1rem, 6.5vw, 4.4rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--wp--preset--color--primary); border: 1px solid var(--wp--preset--color--line); box-shadow: 0 12px 26px rgba(30, 39, 35, .14); transition: transform .2s ease, color .2s ease; }
.hv-orbit__icon svg { width: 46%; height: 46%; }
.hv-orbit__item--2 .hv-orbit__icon, .hv-orbit__item--3 .hv-orbit__icon { color: var(--wp--preset--color--accent); }
.hv-orbit__label { font-size: clamp(.75rem, .7rem + .25vw, .9rem); font-weight: 700; color: var(--wp--preset--color--ink); background: rgba(255, 255, 255, .9); border: 1px solid var(--wp--preset--color--line); padding: .2rem .7rem; border-radius: 999px; white-space: nowrap; }
.hv-orbit__item:hover .hv-orbit__icon, .hv-orbit__item:focus-visible .hv-orbit__icon { transform: scale(1.1); color: var(--wp--preset--color--accent); }
@keyframes hv-fly { from { transform: translate(calc(-50% + var(--fx, 0)), calc(-50% + var(--fy, 0))) rotate(-35deg) scale(.45); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
@keyframes hv-float { 50% { transform: translateY(-8px); } }
@keyframes hv-plate { from { transform: scale(.9) rotate(-14deg); } to { transform: none; } }
@keyframes hv-fade { from { opacity: 0; } }

/* Feature boxes overlapping the hero */
.hv-features { list-style: none; padding: 0; position: relative; z-index: 3; max-width: 68rem; margin: calc(-1 * clamp(3rem, 7vw, 4.5rem)) auto 0 !important; display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .hv-features { grid-template-columns: repeat(3, 1fr); } }
.hv-feature { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 1.1rem; padding: 1.2rem 1.35rem; box-shadow: 0 16px 36px rgba(30, 39, 35, .10); }
.hv-feature__icon { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--primary); }
.hv-feature__icon svg { width: 1.3rem; height: 1.3rem; }
.hv-feature strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.1rem; margin-bottom: .2rem; }
.hv-feature span span { color: var(--wp--preset--color--muted); font-size: .93rem; line-height: 1.45; }

/* Soft reveal on scroll (modern browsers; content stays visible elsewhere) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hv-reveal { animation: hv-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
    @keyframes hv-reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

@media (max-width: 899px) {
  .hv-orbit { width: min(100%, 26rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-orbit__item, .hv-orbit__float, .hv-orbit__plate, .hv-orbit__lines { animation: none !important; }
}


/* ==================================================================== */
/* v0.9 "Ivoire": light and warm (owner: "clear new colors").           */
/* Ivory + espresso text, caramel and rose accents, gold details,       */
/* elegant display serif. Layout ideas from the reel are kept.          */
/* ==================================================================== */
:root { --hv-gold: #C9A35C; --hv-shadow: 0 18px 44px rgba(90, 60, 30, .12); }
::selection { background: #F3D9A8; color: var(--wp--preset--color--ink); }
h1, h2, h3, .hv-catcard__name, .hv-pillar__title, .hv-feature strong, .hv-logo__text { font-weight: 500; }

/* Header: ivory bar, gold hairline, sticky */
.hv-header { background: rgba(255, 252, 247, .92); border-bottom: 1px solid rgba(201, 163, 92, .35); position: sticky; top: 0; z-index: 30; }
@supports (backdrop-filter: blur(1px)) { .hv-header { backdrop-filter: blur(10px); } }
.hv-menu a { font-size: .95rem; letter-spacing: .04em; }
.hv-menu a:hover, .hv-menu .current-menu-item > a { color: var(--wp--preset--color--primary); text-decoration: none; }
.hv-desktop-only .hv-menu a { position: relative; }
.hv-desktop-only .hv-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--hv-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.hv-desktop-only .hv-menu a:hover::after, .hv-desktop-only .hv-menu .current-menu-item > a::after { transform: scaleX(1); }
.hv-logo__text { font-size: 1.55rem; letter-spacing: .01em; }
.hv-lang a[aria-current="true"] { color: #fff; background: var(--wp--preset--color--primary); }

/* Buttons */
.hv-btn { letter-spacing: .03em; }
.hv-btn:hover { box-shadow: 0 8px 22px rgba(154, 86, 41, .28); }
.hv-btn--ghost { border-color: rgba(154, 86, 41, .45); }

/* Hero: soft morning light (honey + blush) behind the plate */
.hv-ohero { background:
  radial-gradient(42% 62% at 76% 50%, #FBE3CF 0%, rgba(251, 227, 207, 0) 70%),
  radial-gradient(38% 55% at 6% 6%, #FFF1D6 0%, rgba(255, 241, 214, 0) 70%),
  var(--wp--preset--color--base); }
.hv-ohero h1 { font-size: clamp(2.3rem, 1.2rem + 3vw, 3.8rem); line-height: 1.06; letter-spacing: -.005em; }
.hv-eyebrow { color: var(--wp--preset--color--primary); letter-spacing: .28em; }
.hv-eyebrow::before { background: var(--hv-gold); }
.hv-ohero__script { color: var(--wp--preset--color--accent); }
.hv-orbit__lines { stroke: var(--hv-gold); opacity: .8; }
.hv-orbit__plate { box-shadow: 0 0 0 clamp(6px, 1.2vw, 12px) #fff, 0 0 0 calc(clamp(6px, 1.2vw, 12px) + 1px) rgba(201, 163, 92, .6), 0 28px 60px rgba(90, 60, 30, .18); }
.hv-orbit__icon { border-color: rgba(201, 163, 92, .55); }
.hv-orbit__item--2 .hv-orbit__icon, .hv-orbit__item--3 .hv-orbit__icon { color: var(--wp--preset--color--accent); }
.hv-orbit__label { border-color: rgba(201, 163, 92, .45); letter-spacing: .03em; }
.hv-orbit__item:hover .hv-orbit__icon, .hv-orbit__item:focus-visible .hv-orbit__icon { color: #fff; background: var(--wp--preset--color--primary); }

/* Feature boxes */
.hv-feature { border-color: rgba(201, 163, 92, .3); box-shadow: var(--hv-shadow); }
.hv-feature__icon { background: var(--wp--preset--color--warm); border: 1px solid rgba(201, 163, 92, .5); color: var(--wp--preset--color--primary); }

/* Section heads: short gold rule above the title */
.hv-sec__head h2 { position: relative; padding-top: 1rem; }
.hv-sec__head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 2px; background: var(--hv-gold); }

/* Cards */
.hv-catcard { background: var(--wp--preset--color--primary); }
.hv-catcard::after { background: linear-gradient(to top, rgba(43, 30, 20, .88) 0%, rgba(43, 30, 20, .5) 46%, rgba(43, 30, 20, .04) 76%); }
.hv-catcard__count { background: rgba(255, 255, 255, .22); }
.hv-pillar a:hover, .hv-pillar a:focus-visible { box-shadow: var(--hv-shadow); border-color: rgba(201, 163, 92, .6); }
.hv-pillar__cat, .hv-card-cat, .hv-card-cat a { letter-spacing: .16em; }

/* Method band: honey panel with a gold frame (no dark block) */
.hv-method { background: linear-gradient(135deg, #FFF3DC 0%, #FBEDE8 100%); color: var(--wp--preset--color--ink); border: 1px solid rgba(201, 163, 92, .45); }
.hv-method h2 { color: var(--wp--preset--color--ink); }
.hv-method__num { background: #fff; border: 1px solid var(--hv-gold); color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--serif); }
.hv-method a { color: var(--wp--preset--color--primary); }

/* Articles */
.hv-article .wp-block-post-title { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem); line-height: 1.1; }
.hv-article__body h2 { padding-top: 1rem; border-top: 1px solid rgba(201, 163, 92, .35); }
.hv-short { border-left-color: var(--hv-gold); }
.hv-box--takeaways { border: 1px solid rgba(178, 71, 95, .15); }
.hv-toc { border-color: rgba(201, 163, 92, .45); background: #fff; }
.hv-checklist li::before { border-color: var(--hv-gold); }
.hv-hero__img img, .hv-hero-img img { border-radius: .6rem; }

/* Recipe card */
.hv-recipe { border-color: rgba(201, 163, 92, .4); box-shadow: var(--hv-shadow); }
.hv-recipe__meta li { background: var(--wp--preset--color--warm); }
.hv-recipe__meta strong { color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: 1.15rem; }
.hv-diet { background: var(--wp--preset--color--soft); color: var(--wp--preset--color--accent); }
.hv-ingredients li::before { border-color: var(--hv-gold); }
.hv-steps li::before { background: #fff; border: 1px solid var(--hv-gold); color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--serif); }

/* Footer: sand with a gold hairline */
.hv-footer { border-top: 1px solid rgba(201, 163, 92, .4); }

@media (prefers-reduced-motion: reduce) { .hv-desktop-only .hv-menu a::after { transition: none; } }
.hv-box h2, .hv-recipe h2 { border-top: 0 !important; padding-top: 0 !important; }
.wp-site-blocks > main.hv-home { margin-top: 0; }

/* ==================================================================== */
/* v1.0 typography: Literata (titles) + DM Sans (text), self-hosted      */
/* ==================================================================== */
@font-face { font-family: "HV Serif"; src: url(assets/fonts/literata.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HV Serif"; src: url(assets/fonts/literata-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HV Sans"; src: url(assets/fonts/dmsans.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HV Sans"; src: url(assets/fonts/dmsans-bold.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
/* Fallbacks sized like the web fonts, so text does not jump when they arrive. */
@font-face { font-family: "HV Serif Fallback"; src: local("Georgia"); size-adjust: 92%; }
@font-face { font-family: "HV Sans Fallback"; src: local("Arial"); size-adjust: 103%; }
h1, h2, h3, .hv-catcard__name, .hv-pillar__title, .hv-logo__text { font-weight: 400; text-wrap: balance; }
.hv-ohero h1, .hv-article .wp-block-post-title { letter-spacing: -.02em; }
.hv-ohero h1 { font-size: clamp(2.4rem, 1.2rem + 3.3vw, 4.1rem); line-height: 1.05; }
.hv-ohero__script { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); }
.hv-home h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem); }
.hv-logo__text { font-size: 1.7rem; letter-spacing: -.01em; }
/* Small titles read better in the sans. */
.hv-feature strong, .hv-article__body h3, .hv-recipe__meta strong, .hv-steps li::before, .hv-method__num { font-family: var(--wp--preset--font-family--system); font-weight: 700; letter-spacing: 0; }
.hv-feature strong { font-size: 1.02rem; }
.hv-article__body h3 { font-size: 1.2rem; }
.hv-menu a, .hv-eyebrow, .hv-pillar__cat, .hv-card-cat, .hv-card-cat a, .hv-btn, .hv-pillar__more { font-weight: 700; }
.hv-menu a { letter-spacing: .01em; font-size: .94rem; }
.hv-eyebrow { font-size: .76rem; letter-spacing: .2em; }
.hv-footer .hv-menu a { font-weight: 400; }
h1, h2, h3 { word-spacing: .06em; }
.hv-ohero h1, .hv-article .wp-block-post-title { letter-spacing: -.012em; }
.hv-feature > span:last-child { line-height: 1.45; }
/* Phones: the logo, menu and all four languages fit on one line. */
@media (max-width: 480px) {
  .hv-logo { gap: .4rem; }
  .hv-logo__mark { width: 1.9rem; height: 1.9rem; }
  .hv-logo__text { font-size: 1.3rem; }
  .hv-nav.hv-nav { gap: .35rem; }
  .hv-header > .wp-block-group { gap: .4rem; }
  .hv-burger > summary { padding: .3rem .5rem; font-size: .9rem; }
}

/* Language menu: one globe button, list in a panel */
.hv-lang, .hv-lang details { position: relative; }
.hv-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .25rem .8rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 700; color: var(--wp--preset--color--ink); }
.hv-lang summary::-webkit-details-marker { display: none; }
.hv-lang summary:hover, .hv-lang details[open] summary { border-color: var(--hv-gold); color: var(--wp--preset--color--primary); }
.hv-lang summary > svg:first-child { color: var(--wp--preset--color--primary); }
.hv-lang__chev { transition: transform .2s ease; }
.hv-lang details[open] .hv-lang__chev { transform: rotate(180deg); }
.hv-lang ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; display: flex; flex-direction: column; gap: .15rem; min-width: 12rem; padding: .4rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: .9rem; box-shadow: var(--hv-shadow); }
.hv-lang a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: .6rem; font-size: .95rem; font-weight: 400; text-transform: none; color: var(--wp--preset--color--ink); }
.hv-lang a:hover { background: var(--wp--preset--color--surface); }
.hv-lang a[aria-current="true"] { background: var(--wp--preset--color--warm); color: var(--wp--preset--color--primary); font-weight: 700; }
.hv-lang__code { width: 1.6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--wp--preset--color--primary); }
.hv-footer .hv-lang ul { top: auto; bottom: calc(100% + .5rem); }
.hv-footer, .hv-footer .hv-lang { overflow: visible; }
@media (max-width: 480px) { .hv-lang summary { padding: .25rem .6rem; min-height: 2.4rem; } .hv-burger > summary { min-height: 2.4rem; display: flex; align-items: center; } .hv-nav.hv-nav { gap: .5rem; } }
@media (prefers-reduced-motion: reduce) { .hv-lang__chev { transition: none; } }
@media (max-width: 781px) { .hv-footer .hv-lang ul { right: auto; left: 0; } }
