/*
 * delft (hollandiatruffles.com)
 * 1. Concept: a Dutch tulip field painted on Delft-blue tiles; a shop window on a canal street.
 * 2. Type: Bodoni Moda (display, high-contrast serif, real italic for the pull quote) + Schibsted Grotesk (text, labels).
 * 3. Palette: porcelain #f7f8fc, glaze #e6ebf6, cobalt #1d3a8f, ink #101a3c, one tulip red #b8202f.
 * 4. Layout: full-bleed tile painting as hero with a title cartouche and a shop-window product tile inside it;
 *    alternating full-width bands (white / glaze), a CSS strength scale, a solid cobalt pull-quote band,
 *    chapters as numbered square tiles. Pages: low painted strip, cartouche title, tile-rail contents.
 * 5. Detail: every frame is a tile with a double cobalt rule and small diamond corner marks.
 */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/bodoni-moda-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/bodoni-moda-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(fonts/bodoni-moda-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(fonts/bodoni-moda-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --porcelain: #f7f8fc;
  --white: #ffffff;
  --glaze: #e6ebf6;
  --cobalt: #1d3a8f;
  --cobalt-deep: #142b6e;
  --ink: #101a3c;
  --muted: #4a5578;
  --tulip: #b8202f;
  --rule: #c5cfe6;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--porcelain); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tulip); }
:focus-visible { outline: 3px solid var(--tulip); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cobalt); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
main { flex: 1 0 auto; }

/* ---------- top bar ---------- */
.bar { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.bar-in { max-width: 76rem; margin: 0 auto; padding: .6rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--cobalt); font: 600 1.3rem/1 var(--serif); letter-spacing: .01em; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cobalt); border-bottom-color: var(--rule); }
.nav a[aria-current] { color: var(--cobalt); border-bottom-color: var(--tulip); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); border: 1px solid var(--cobalt); padding: .45rem .8rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--cobalt); color: #fff; }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(19rem, calc(100vw - 2 * var(--gutter))); background: var(--white); border: 1px solid var(--cobalt); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--cobalt); padding: .4rem 0; }
.menu nav a { display: flex; gap: .8rem; align-items: baseline; padding: .6rem 1rem; color: var(--ink); text-decoration: none; }
.menu nav a span { font: 600 .85rem/1 var(--serif); color: var(--tulip); min-width: 2rem; }
.menu nav a[aria-current] { background: var(--glaze); }

/* ---------- shared: cartouche (a tile with double rule and corner diamonds) ---------- */
.cartouche { position: relative; background: var(--white); border: 1px solid var(--cobalt); box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--cobalt); padding: 1.6rem 1.4rem 1.3rem; }
.cartouche::before, .cartouche::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--cobalt); transform: rotate(45deg); top: 12px; left: 12px; }
.cartouche::after { left: auto; right: 12px; }
.eyebrow { margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tulip); padding-left: 1rem; }
.cartouche h1 { margin: 0; font: 500 clamp(2rem, 7vw, 3.6rem)/1.04 var(--serif); color: var(--cobalt); letter-spacing: -.01em; }
.stamp { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- home hero: full-bleed tile painting ---------- */
.hero { position: relative; background: var(--glaze); }
.hero-img { width: 100%; height: 46vh; min-height: 260px; object-fit: cover; object-position: 30% 88%; }
.hero-in { position: relative; padding: 0 var(--gutter) 2rem; margin-top: -1.5rem; display: grid; gap: 1.2rem; }
.window { background: var(--white); border: 1px solid var(--cobalt); padding: .9rem; }
.window-label { margin: 0 0 .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }

/* ---------- product: framed tile ---------- */
.ware { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; text-decoration: none; color: var(--ink); background: var(--white); }
.ware-tile { display: block; padding: 5px; border: 1px solid var(--cobalt); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--cobalt); background: var(--white); }
.ware-tile img { aspect-ratio: 1; object-fit: contain; width: 100%; padding: 4px; }
.ware-text { display: grid; gap: .3rem; }
.ware-name { font: 600 1.05rem/1.2 var(--serif); color: var(--cobalt); }
.ware-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .85rem; }
.ware-price { font-weight: 700; color: var(--tulip); }
.ware-shop { color: var(--muted); }
.ware-go { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.ware:hover .ware-name { color: var(--tulip); }
.ware.is-single .ware-go::after { content: " \2192"; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1.6rem 0; }
.products .ware { grid-template-columns: 1fr; align-items: start; border: 1px solid var(--rule); padding: .8rem; }
.products .ware-tile { max-width: 14rem; }
.product-feature { margin: 1.6rem 0; }
.product-feature .ware { border: 1px solid var(--rule); padding: .9rem; grid-template-columns: 120px 1fr; }

/* ---------- home bands ---------- */
.band { padding: 2.6rem var(--gutter); }
.band-in { max-width: var(--measure); margin: 0 auto; }
.band-lead { background: var(--porcelain); padding-top: 1rem; }
.band-lead .band-in > p:first-child { font: 400 1.2rem/1.5 var(--serif); color: var(--ink); }
.band-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-glaze { background: var(--glaze); }
.band-tiles .band-in { max-width: 70rem; }
.band-tiles h2 { max-width: var(--measure); }
.band-tiles ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); counter-reset: tile; }
.band-tiles li { counter-increment: tile; position: relative; background: var(--white); border: 1px solid var(--cobalt); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--rule); padding: 2.4rem 1.2rem 1.2rem; margin: 0; }
.band-tiles li::before { content: counter(tile, upper-roman); position: absolute; top: .8rem; left: 1.2rem; font: 600 .9rem/1 var(--serif); color: var(--tulip); }
.band-tiles li strong { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--cobalt); margin-bottom: .2rem; }

/* strength scale, built in CSS */
.scale { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.4rem var(--gutter); }
.scale-in { max-width: 56rem; margin: 0 auto; }
.scale h2 { margin: 0 0 1.4rem; font: 500 1.7rem/1.15 var(--serif); color: var(--cobalt); }
.scale-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; align-items: end; }
.step { display: grid; gap: .35rem; }
.step-bar { display: block; border: 1px solid var(--cobalt); background: var(--glaze); }
.step-1 .step-bar { height: 2.4rem; }
.step-2 .step-bar { height: 4.8rem; }
.step-3 .step-bar { height: 7.2rem; }
.step.is-on .step-bar { background: var(--tulip); border-color: var(--tulip); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--tulip); }
.step-label { font: 600 1.05rem/1.2 var(--serif); color: var(--cobalt); }
.step.is-on .step-label { color: var(--tulip); }
.step-strains { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.scale-note { margin: 1.2rem 0 0; font-size: .82rem; color: var(--muted); border-left: 3px solid var(--tulip); padding-left: .8rem; }

/* pull quote band */
.pull { background: var(--cobalt); color: #fff; padding: 3.2rem var(--gutter); }
.pull-in { max-width: 52rem; margin: 0 auto; font: italic 400 clamp(1.5rem, 4.6vw, 2.5rem)/1.3 var(--serif); }
.pull-in p { margin: 0; }
.pull-in::before { content: ""; display: block; width: 12px; height: 12px; background: var(--tulip); transform: rotate(45deg); margin-bottom: 1.4rem; outline: 4px solid var(--cobalt); box-shadow: 0 0 0 5px #fff; }

/* chapter tiles */
.tiles { padding: 3rem var(--gutter) 3.4rem; background: var(--porcelain); }
.tiles-in { max-width: 76rem; margin: 0 auto; }
.tiles h2 { margin: 0 0 1.4rem; font: 500 1.9rem/1.15 var(--serif); color: var(--cobalt); }
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--cobalt); border-left: 1px solid var(--cobalt); }
.tile-grid li { border-right: 1px solid var(--cobalt); border-bottom: 1px solid var(--cobalt); background: var(--white); }
.tile { position: relative; display: grid; gap: .5rem; align-content: start; min-height: 15rem; padding: 1.4rem; text-decoration: none; color: var(--ink); }
.tile::before, .tile::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--cobalt); transform: rotate(45deg); top: 10px; right: 10px; }
.tile::after { top: auto; bottom: 10px; left: 10px; right: auto; }
.tile-no { font: 600 2.4rem/1 var(--serif); color: var(--tulip); }
.tile-name { font: 600 1.3rem/1.2 var(--serif); color: var(--cobalt); }
.tile-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.tile:hover { background: var(--glaze); }
.tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- pages ---------- */
.strip { background: var(--glaze); }
.strip-img { width: 100%; height: 26vh; min-height: 150px; object-fit: cover; object-position: 50% 82%; }
.sheet { max-width: 70rem; margin: 0 auto; padding: 0 var(--gutter) 3rem; }
.cartouche-page { margin-top: -3.5rem; max-width: 46rem; }
.sheet-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.rail { border: 1px solid var(--rule); background: var(--white); padding: 1rem 1.1rem; align-self: start; }
.rail-title { margin: 0 0 .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tulip); }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.rail li { counter-increment: rail; border-top: 1px solid var(--glaze); }
.rail li:first-child { border-top: 0; }
.rail a { display: grid; grid-template-columns: 1.6rem 1fr; padding: .45rem 0; font-size: .88rem; line-height: 1.35; text-decoration: none; color: var(--ink); }
.rail a::before { content: counter(rail); font: 600 .85rem/1.5 var(--serif); color: var(--cobalt); }
.rail a:hover { color: var(--cobalt); }
.next { display: grid; gap: .3rem; margin-top: 3rem; max-width: 46rem; padding: 1.3rem 1.4rem; text-decoration: none; background: var(--cobalt); color: #fff; font: 500 1.5rem/1.2 var(--serif); }
.next span { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c9d4f2; }
.next:hover { background: var(--cobalt-deep); color: #fff; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--tulip); }
.prose ol li::marker { color: var(--cobalt); font-weight: 600; }
.prose h2 { margin: 2.6rem 0 .9rem; font: 500 clamp(1.6rem, 4.4vw, 2.05rem)/1.15 var(--serif); color: var(--cobalt); scroll-margin-top: 1rem; }
.prose h2::before { content: ""; display: block; width: 10px; height: 10px; background: var(--tulip); transform: rotate(45deg); margin: 0 0 .9rem 2px; }
.prose h3 { margin: 1.8rem 0 .6rem; font: 600 1.2rem/1.25 var(--serif); color: var(--ink); }
.prose strong { font-weight: 650; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose code { font-size: .9em; background: var(--glaze); padding: .05rem .3rem; }
.prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.4rem; background: var(--cobalt); color: #fff; font: italic 400 1.3rem/1.4 var(--serif); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote a { color: #fff; }
.has-report h2 + p > em:only-child { display: block; font-style: normal; font-size: .82rem; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--rule); background: var(--white); padding: .5rem .8rem; }
.table { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--cobalt); background: var(--white); }
.table table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.45; }
.table th { text-align: left; font: 600 .74rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--cobalt); padding: .7rem .8rem; }
.table td { padding: .7rem .8rem; border-top: 1px solid var(--rule); vertical-align: top; }
.table td:first-child { font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.table tr:nth-child(even) td { background: var(--porcelain); }
.page .prose img[src*="mascot"] { width: 140px; }

/* ---------- footer ---------- */
.foot { background: var(--cobalt-deep); color: #e6ebf6; padding: 2.6rem var(--gutter) 3rem; font-size: .9rem; line-height: 1.55; }
.foot-in { max-width: 76rem; margin: 0 auto; display: grid; gap: 2rem; }
.foot a { color: #fff; }
.foot a:hover { color: #ffd9dd; }
.foot-brand img { width: 56px; height: 56px; background: #fff; padding: 4px; }
.foot-name { margin: .8rem 0 .4rem; font: 600 1.3rem/1.2 var(--serif); color: #fff; }
.foot-note { margin: 0; max-width: 30rem; }
.foot-pub { display: grid; grid-template-columns: 96px 1fr; gap: .4rem 1rem; align-items: start; }
.foot-pub .mascot { grid-row: span 2; width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; }
.foot-pub p { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-content: start; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-img { height: 58vh; }
  .hero-in { margin-top: -7rem; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: end; max-width: 76rem; margin-left: auto; margin-right: auto; }
  .cartouche { padding: 2.2rem 2rem 1.6rem; }
  .band { padding: 3.6rem var(--gutter); }
  .band-lead { padding-top: 1.4rem; }
  .band-lead .band-in > p:first-child { font-size: 1.55rem; }
  .scale-steps { gap: 1rem; }
  .step-1 .step-bar { height: 3rem; }
  .step-2 .step-bar { height: 6rem; }
  .step-3 .step-bar { height: 9rem; }
  .pull { padding: 5rem var(--gutter); }
  .foot-in { grid-template-columns: 1.2fr 1.4fr 1fr; }
}

@media (min-width: 1040px) {
  .nav { display: flex; }
  .menu { display: none; }
  /* the painting fills the first screen; title and shop window sit inside it */
  .hero { min-height: 78vh; display: grid; }
  .hero-img { position: absolute; inset: 0; height: 100%; object-position: 50% 60%; }
  .hero-in { margin-top: 0; width: 100%; padding: 4.5rem var(--gutter) 3rem; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr) 19rem; align-items: start; align-content: space-between; grid-template-rows: 1fr; }
  .cartouche { grid-column: 1; align-self: start; }
  .window { grid-column: 3; align-self: end; box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--cobalt); padding: 1.1rem; }
  .window .ware { grid-template-columns: 1fr; }
  .window .ware-tile { max-width: 100%; }
  .band-lead { padding-top: 3.6rem; }
  .strip-img { height: 30vh; }
  .sheet-grid { grid-template-columns: 15rem minmax(0, var(--measure)); gap: 3.5rem; }
  .rail { position: sticky; top: 1rem; }
  .sheet-grid > .prose:only-child { grid-column: 2; }
  .cartouche-page { margin-top: -4.5rem; margin-left: 18.5rem; }
  .next { margin-left: 18.5rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
