/* Belforte — site styles
   Colours are taken from the logo: black, Belforte red and the off-white of FORTE. */

@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/prata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/jost-latin-wght-normal.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: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/jost-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #000;
  --ink: #1d1b1a;
  --stone: #f0ece9;
  --paper: #fff;
  --red: #b61f0c;
  --red-dark: #941907;
  --muted: #6c6662;
  --line: #ddd7d3;
  --on-dark: #cfc8c3;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.button { display: inline-block; background: var(--red); color: #fff; border: 1px solid var(--red); padding: 12px 22px;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; border-radius: 2px; cursor: pointer; transition: background .15s; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: transparent; color: var(--red); border-color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.more { font-weight: 500; }

/* header */
.site-header { background: var(--black); color: var(--stone); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 76px; flex-wrap: wrap; }
.brand img { width: 200px; height: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.menu a { color: var(--stone); text-decoration: none; font-weight: 500; letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: var(--red); }
.menu a[aria-current] { border-bottom-color: var(--red); }

/* hero: the collection as a rack of standing slabs */
.hero { position: relative; background: var(--black); padding: 0; }
.rack { display: flex; gap: 3px; height: clamp(440px, 74vh, 700px); padding: 0 3px 3px; }
.slab { position: relative; flex: 1 1 0; min-width: 0; background: #333 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset -10px 0 18px -12px rgba(0,0,0,.45);
  transition: flex-grow .45s ease; text-decoration: none; }
.slab span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: var(--black); color: var(--stone);
  font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.rack:hover .slab:hover, .slab:focus-visible { flex-grow: 3.2; }
.slab:hover span, .slab:focus-visible span { opacity: 1; }
.slab:focus-visible { outline-offset: -4px; }
.hero-panel { position: absolute; left: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); bottom: 56px; width: min(560px, calc(100% - 48px));
  background: var(--black); color: var(--stone); padding: 40px 44px 36px; }
.hero-panel h1 { color: #fff; margin-bottom: .45em; }
.hero-panel p { color: var(--on-dark); }
.hero-panel .button.ghost { color: var(--stone); }

/* sections */
section { padding: 96px 0; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.supply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.supply-grid figure { margin: 0; }
.supply-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.supply-grid figcaption { padding-top: 18px; border-top: 3px solid var(--ink); margin-top: 18px; font-size: 1rem; color: var(--ink); }
.supply-grid figcaption p { color: var(--muted); margin: 0; }

.source { background: var(--stone); }
.source-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.source-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.source-text { max-width: 560px; }

.family-row { display: grid; grid-template-columns: 170px 1fr 110px; align-items: center; gap: 24px; padding: 22px 0;
  border-top: 1px solid var(--line); text-decoration: none; }
.family-row:last-child { border-bottom: 1px solid var(--line); }
.family-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.family-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.family-swatches img { width: 76px; height: 76px; object-fit: cover; transition: transform .2s; }
.family-count { color: var(--muted); text-align: right; }
.family-row:hover .family-name { color: var(--red); }
.family-row:hover .family-swatches img { transform: translateY(-3px); }

.cta-band { background: var(--black); color: var(--stone); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: var(--on-dark); max-width: 620px; margin: 0; }

/* footer */
.site-footer { background: var(--black); color: var(--on-dark); border-top: 1px solid #262322; padding: 64px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr; gap: 40px; }
.footer-logo { width: 180px; margin-bottom: 18px; }
.site-footer h2 { font: 500 .95rem/1.4 var(--sans); color: #8f8884; margin: 0 0 10px; letter-spacing: .02em; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #262322; font-size: .88rem; color: #8f8884; }
.footer-base p { margin: 0; }

/* inner pages */
.page-head { background: var(--stone); padding: 64px 0 40px; }
.page-head h1 { margin-bottom: .3em; }
.lead { font-size: 1.2rem; max-width: 700px; color: #48423f; margin: 0; }
.page-body { padding: 56px 24px 96px; }
.page-body > p, .page-body > ul, .page-body > h2 { max-width: 70ch; }
.page-body h2 { margin-top: 1.4em; }
.split { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: start; }
.split > div > p { max-width: 64ch; }
.split h2:first-child { margin-top: 0; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.tall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.fairs { padding: 48px 0 16px; border-top: 1px solid var(--line); margin-top: 56px; }
.fair-list { list-style: none; padding: 0; margin: 32px 0; max-width: 900px; }
.fair-list li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.fair-list h3 { margin-bottom: .3em; }
.fair-list p { margin: 0; color: var(--muted); }
.fair-date { font-weight: 500; padding-top: 3px; }
.wide-figure { max-width: 900px; }

/* collection */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter a { text-decoration: none; padding: 7px 16px; border: 1px solid #c9c2bd; border-radius: 2px; font-weight: 500; background: var(--paper); }
.filter a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.filter a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter a.on span { color: #b8b1ac; }
.collection { padding-top: 24px; padding-bottom: 96px; }
.family { padding: 40px 0 8px; }
.family h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 24px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 18px; }
.card { display: block; text-decoration: none; }
.card-img { display: block; overflow: hidden; background: var(--stone); }
.card-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-name { display: block; font-family: var(--serif); font-size: 1.3rem; margin-top: 14px; line-height: 1.2; }
.cards.small .card-name { font-size: 1.1rem; margin-top: 10px; }
.card-text { display: block; color: var(--muted); font-size: .96rem; margin-top: 4px; }
.card:hover .card-name { color: var(--red); }
.collection-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.collection .page-body { padding: 0; }

/* marble page */
.marble { padding-top: 28px; padding-bottom: 80px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.marble-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.gallery-main { display: block; background: var(--stone); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-caption { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; outline: 2px solid transparent; outline-offset: 2px; }
.thumbs a[aria-current] { outline-color: var(--red); }
.thumbs img { width: 76px; height: 76px; object-fit: cover; }
.marble-text { position: sticky; top: 24px; }
.marble-text h1 { margin-bottom: .4em; }
.facts { margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.related { padding: 72px 0 24px; }
.prevnext { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 48px; }
.prevnext a { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.prevnext a[rel=next] { text-align: right; }
.prevnext span { display: block; font: 400 .88rem var(--sans); color: var(--muted); }
.lightbox { border: 0; padding: 0; background: var(--black); max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; }
.lb-close { position: absolute; top: 6px; right: 10px; background: var(--black); color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.enquiry fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.enquiry legend { font-weight: 500; margin-bottom: 10px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px; }
.pick label, .chips label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 5px 10px 5px 5px; cursor: pointer; border-radius: 2px; font-size: .97rem; }
.pick img { width: 38px; height: 38px; object-fit: cover; }
.pick input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick label:has(input:checked), .chips label:has(input:checked) { border-color: var(--red); background: var(--stone); box-shadow: inset 0 0 0 1px var(--red); }
.pick label:has(input:focus-visible), .chips label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { padding: 8px 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.enquiry label.full, .fields label { display: block; font-weight: 500; font-size: .95rem; }
.enquiry input[type=text], .enquiry textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 1rem/1.4 var(--sans);
  color: var(--ink); border: 1px solid #bdb6b1; border-radius: 2px; background: var(--paper); }
.enquiry input[type=text]:focus, .enquiry textarea:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 0; }
.contact-card { background: var(--stone); padding: 32px; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card img { margin-top: 24px; width: 100%; }

/* small screens */
@media (max-width: 900px) {
  .supply-grid { grid-template-columns: 1fr; gap: 40px; }
  .source-grid, .split, .marble-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .source-grid img { aspect-ratio: 4 / 3; }
  .marble-text { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .brand img { width: 160px; }
  .menu ul { gap: 22px; }
  .rack { height: 46vh; min-height: 300px; gap: 2px; padding: 0 2px 2px; }
  .hero-panel { position: static; width: auto; padding: 28px 16px 36px; }
  section { padding: 64px 0; }
  .family-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .family-swatches { grid-column: 1 / -1; order: 3; }
  .family-swatches img { width: 52px; height: 52px; }
  .fair-list li { grid-template-columns: 1fr; gap: 4px; }
  .fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .page-head { padding: 44px 0 32px; }
  .page-body { padding: 40px 16px 72px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .card-name { font-size: 1.1rem; }
  .card-text { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
