/*
 * azulejo: trufas-magicas.com
 * 1. Concept: a Mediterranean tile wall set with Spanish editorial type. Product-first: the home page opens like a
 *    magazine cover on an ultramarine band, with one featured truffle, then a strain chooser from mild to strong.
 * 2. Type: Ibarra Real Nova (after the 18th-century Madrid printer Joaquín Ibarra) for titles and reading text;
 *    Archivo (Omnibus-Type, Buenos Aires) for labels, navigation, tables and product data.
 * 3. Palette: white #ffffff, ultramarine #1b2c8f, deep ultramarine #121d63, ink #161a33, one ochre accent #c8861a
 *    (fills and markers only, never body text), tile tint #eaeef8.
 * 4. Layout signature: full-bleed ultramarine cover/title bands; a tiled chooser grid with a five-cell strength meter;
 *    the guide as an azulejo wall of numbered tiles; chapter chips under each article band.
 * 5. Detail: a small hand-drawn tile motif used only as a frieze between sections; product cards as glazed tiles
 *    with an ultramarine label strip.
 */

@font-face{font-family:'Ibarra Real Nova';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/ibarra-400-700-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:'Ibarra Real Nova';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/ibarra-400-700-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:'Ibarra Real Nova';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/ibarra-italic-400-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:'Ibarra Real Nova';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/ibarra-italic-400-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:'Archivo';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/archivo-500-700-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:'Archivo';font-style:normal;font-weight:500 700;font-display:swap;src:url(fonts/archivo-500-700-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}

:root {
  --white: #ffffff;
  --paper: #f7f6f1;
  --tint: #eaeef8;
  --ultra: #1b2c8f;
  --deep: #121d63;
  --ink: #161a33;
  --ink-2: #474c68;
  --ochre: #c8861a;
  --ochre-light: #f1c779;
  --rule: rgba(27, 44, 143, .2);
  --serif: 'Ibarra Real Nova', 'Iowan Old Style', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='%23fff'/%3E%3Cg fill='%23c8861a'%3E%3Ccircle cx='0' cy='0' r='4.5'/%3E%3Ccircle cx='28' cy='0' r='4.5'/%3E%3Ccircle cx='0' cy='28' r='4.5'/%3E%3Ccircle cx='28' cy='28' r='4.5'/%3E%3C/g%3E%3Cpath d='M14 4C16 9 19 12 24 14C19 16 16 19 14 24C12 19 9 16 4 14C9 12 12 9 14 4Z' fill='%231b2c8f'/%3E%3Ccircle cx='14' cy='14' r='2.4' fill='%23fff'/%3E%3C/svg%3E");
  --tile-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='%23121d63'/%3E%3Cg fill='%23c8861a'%3E%3Ccircle cx='0' cy='0' r='4.5'/%3E%3Ccircle cx='28' cy='0' r='4.5'/%3E%3Ccircle cx='0' cy='28' r='4.5'/%3E%3Ccircle cx='28' cy='28' r='4.5'/%3E%3C/g%3E%3Cpath d='M14 4C16 9 19 12 24 14C19 16 16 19 14 24C12 19 9 16 4 14C9 12 12 9 14 4Z' fill='%23fff'/%3E%3Ccircle cx='14' cy='14' r='2.4' fill='%23121d63'/%3E%3C/svg%3E");
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ultra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

/* top bar */
.top { background: var(--white); border-bottom: 3px solid var(--ultra); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ultra); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-weight: 700; font-size: 1.45rem; letter-spacing: -.005em; line-height: 1; }
.primary { display: none; }
.primary a, .menu a, .langs a { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.primary a { padding: 6px 0; border-bottom: 2px solid transparent; }
.primary a:hover, .primary a[aria-current] { color: var(--ultra); border-bottom-color: var(--ochre); }
.langs { display: flex; gap: 10px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--ultra); padding: 9px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--white); border: 2px solid var(--ultra); min-width: 230px; display: grid; }
.menu nav a { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.menu nav a[aria-current] { background: var(--tint); color: var(--ultra); }
@media (min-width: 1000px) {
  .primary { display: flex; gap: 20px; }
  .menu { display: none; }
}

/* shared */
.kicker { font-family: var(--sans); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.frieze { height: 28px; background: var(--tile) repeat-x left center; background-size: 28px 28px; border-top: 1px solid var(--ultra); border-bottom: 1px solid var(--ultra); }
.frieze-dark { background-image: var(--tile-dark); border-color: var(--deep); }
.section-head { display: grid; gap: 4px 40px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; color: var(--ultra); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 860px) { .section-head { grid-template-columns: auto 1fr; align-items: end; } }

.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter-cell { width: 14px; height: 9px; border: 1px solid currentColor; }
.meter-cell.is-on { background: var(--ochre); border-color: var(--ochre); }

/* cover (home) */
.cover { background: var(--ultra); color: var(--white); padding: 40px 0 48px; }
.cover-grid { display: grid; gap: 32px; align-items: center; }
.cover .kicker { color: var(--ochre-light); }
.cover h1 { margin: 0; font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.9rem); line-height: .98; letter-spacing: -.015em; max-width: 14ch; }
.cover-lead { margin: 20px 0 0; font-size: 1.3rem; line-height: 1.45; max-width: 36ch; color: #dfe4f6; }
.cover-feature { display: grid; grid-template-columns: 1fr; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 10px 10px 0 var(--deep); position: relative; max-width: 440px; width: 100%; justify-self: center; }
.cover-feature-label { position: absolute; top: 0; left: 0; background: var(--ochre); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; }
.cover-feature-img { display: block; aspect-ratio: 1; padding: 28px 28px 0; }
.cover-feature-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cover-feature-body { display: grid; gap: 8px; padding: 16px 22px 20px; border-top: 1px solid var(--rule); }
.cover-feature-name { font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--ultra); }
.cover-feature:hover .cover-feature-name { text-decoration: underline; text-underline-offset: 4px; }
.cover-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.cover-feature-meta .meter { color: var(--ultra); }
.cover-feature-meta .price { color: var(--ink); font-size: 1rem; }
@media (min-width: 860px) {
  .cover { padding: 64px 0 72px; }
  .cover-grid { grid-template-columns: 7fr 5fr; gap: 56px; }
  .cover-feature { justify-self: end; }
}

/* chooser */
.chooser { padding: 48px 0 56px; }
.axis { display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ultra); }
.chooser-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.chooser-grid li { background: var(--white); }
.chooser-grid a { display: grid; gap: 8px; padding: 14px 14px 16px; height: 100%; text-decoration: none; color: var(--ink); }
.chooser-grid a:hover { background: var(--tint); }
.chooser-img { display: block; aspect-ratio: 1; }
.chooser-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chooser-name { font-size: 1.3rem; font-weight: 700; line-height: 1.1; color: var(--ultra); }
.chooser-level { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--sans); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.chooser-level .meter { color: var(--ultra); }
@media (max-width: 639px) {
  .chooser-grid a { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 12px; }
  .chooser-img { grid-row: 1 / 3; width: 72px; }
  .chooser-name { align-self: end; }
  .chooser-level { align-self: start; }
}
@media (min-width: 640px) { .chooser-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .chooser-grid { grid-template-columns: repeat(8, 1fr); } .chooser-name { font-size: 1.15rem; } }

/* guide tiles */
.guide { padding: 48px 0 56px; background: var(--paper); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; counter-reset: none; }
.tiles a { display: grid; align-content: start; gap: 10px; min-height: 100%; padding: 22px 22px 26px; text-decoration: none; background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.tiles li:nth-child(4n+1) a, .tiles li:nth-child(4n+4) a { background: var(--ultra); color: var(--white); border-color: var(--ultra); }
.tile-no { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--ochre); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: .8rem; }
.tile-title { font-size: 1.5rem; font-weight: 700; line-height: 1.12; }
.tiles li:nth-child(4n+2) .tile-title, .tiles li:nth-child(4n+3) .tile-title { color: var(--ultra); }
.tile-desc { font-size: 1.05rem; line-height: 1.45; opacity: .88; }
.tiles a:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .guide:not(.guide-next) .tiles li:first-child { grid-column: span 2; }
  .guide:not(.guide-next) .tiles li:first-child .tile-title { font-size: 2rem; max-width: 22ch; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .guide-next .tiles { grid-template-columns: repeat(3, 1fr); }
}
.next-title { margin: 0 0 20px; font-size: 1.9rem; color: var(--ultra); }

/* article band */
.band { background: var(--ultra); color: var(--white); padding: 36px 0 40px; }
.band-grid { display: grid; gap: 20px; align-items: start; }
.band-tile { display: block; width: 76px; height: 76px; background: var(--white); padding: 8px; box-shadow: 6px 6px 0 var(--deep); }
.band-tile img { width: 100%; height: 100%; display: block; }
.band .kicker { color: var(--ochre-light); margin-bottom: 10px; }
.band h1 { margin: 0; font-weight: 700; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 20ch; }
.band-lead { margin: 16px 0 0; font-size: 1.25rem; line-height: 1.45; color: #dfe4f6; max-width: 52ch; }
@media (min-width: 720px) {
  .band { padding: 56px 0 60px; }
  .band-grid { grid-template-columns: 112px 1fr; gap: 36px; }
  .band-tile { width: 112px; height: 112px; padding: 10px; }
}

.chips { background: var(--tint); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.chips-label { font-family: var(--sans); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.chips ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--rule); padding: 5px 12px 5px 5px; font-family: var(--sans); font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--ultra); color: var(--ultra); }
.chips a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--ultra); color: var(--white); font-size: .72rem; }

/* prose */
@media (min-width: 1000px) {
  .is-page .prose, .chips .wrap > * { margin-left: 148px; }
}
.prose { max-width: 42rem; padding: 40px 0 56px; font-size: 1.25rem; line-height: 1.62; }
.essentials .prose { padding-top: 56px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .table { margin: 0 0 1.05em; }
.prose h2 { font-size: clamp(1.65rem, 3.4vw, 2.1rem); line-height: 1.12; color: var(--ultra); margin: 1.9em 0 .55em; padding-top: 22px; position: relative; scroll-margin-top: 16px; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 6px; background: var(--ochre); box-shadow: 26px 0 0 var(--ultra); }
.prose h3 { font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--ink); margin: 1.5em 0 .35em; scroll-margin-top: 16px; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .35em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--ultra); transform: rotate(45deg); }
.prose ol { padding-left: 1.4em; }
.prose ol li { margin-bottom: .35em; padding-left: 4px; }
.prose ol li::marker { font-family: var(--sans); font-weight: 700; font-size: .9em; color: var(--ultra); }
.prose strong { font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--ochre); background: var(--tint); padding: 16px 20px; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 28px; background: var(--tile) repeat-x left center; background-size: 28px 28px; margin: 2.2em 0; }
.prose code { font-family: var(--sans); font-size: .85em; background: var(--tint); padding: 1px 5px; }
.prose figure img { display: block; }
.table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .92rem; line-height: 1.4; }
.prose th { background: var(--ultra); color: var(--white); text-align: left; font-weight: 700; padding: 10px 12px; font-size: .8rem; letter-spacing: .03em; }
.prose td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; font-weight: 500; }
.prose tbody tr:nth-child(even) td { background: var(--paper); }

/* products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.4em 0 1.6em; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product-feature { margin: 1.4em 0 1.6em; }
.ptile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--white); border: 1px solid var(--rule); background: var(--white); }
.ptile-img { display: block; aspect-ratio: 1; padding: 12px; }
.ptile-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ptile-label { display: grid; align-content: space-between; gap: 8px; background: var(--ultra); padding: 10px 12px 12px; }
.ptile-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.ptile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-family: var(--sans); font-size: .76rem; font-weight: 600; }
.ptile-price { color: var(--ochre-light); font-size: .9rem; }
.ptile:hover .ptile-name { text-decoration: underline; text-underline-offset: 3px; }
.ptile.is-single { grid-template-columns: 44% 1fr; grid-template-rows: auto; max-width: 520px; }
.ptile.is-single .ptile-label { align-content: end; padding: 16px; }
.ptile.is-single .ptile-name { font-size: 1.35rem; }

/* footer */
.foot { background: var(--deep); color: #e3e7f7; font-family: var(--sans); font-size: .9rem; line-height: 1.55; }
.foot a { color: var(--white); }
.foot-grid { display: grid; gap: 24px; padding: 36px var(--gutter) 44px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 88px; height: 88px; flex: none; background: var(--white); padding: 6px; }
.foot-brand p { margin: 0; }
.foot-disclaimer { margin: 0; max-width: 60ch; color: #c9d0ee; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-nav a { text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.foot-nav a:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.1fr 1fr; align-items: start; column-gap: 56px; }
  .foot-nav { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .top, .foot, .chips, .frieze, .guide-next { display: none; } .band, .cover { background: none; color: var(--ink); } }
