/* florentinoaudio.com — the owner's cream theme (docs/MARCA.md): ivory, ink, crimson, champagne gold, smoked glass.
   One bold element: the brass rack on the home page. Everything else stays quiet. */
:root {
  --ivory: #F4EFE4; --paper: #FFFCF7; --sand: #DCD1BF; --line: #D7C8B3;
  --ink: #302B25; --muted: #786F63; --bronze: #806743; --gold: #C8A665; --gold-light: #E7D3A6;
  --red: #B12539; --red-deep: #8C2432; --glass: #15191D; --glass-2: #1E2329;
  --display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --text: "Jost", "Avenir Next", "Avenir", system-ui, sans-serif;
  --radius: 6px; --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.62 var(--text);
  background: linear-gradient(180deg, var(--paper) 0, var(--ivory) 520px) var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.16rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---- header ---------------------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter); background: rgba(250, 246, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; color: var(--ink); flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark .hex { width: 38px; height: auto; }
.wm-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-name { font: 500 15px/1 var(--text); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.wm-lab { display: flex; align-items: center; gap: 7px; margin-top: 6px; font: 500 9.5px/1 var(--text); letter-spacing: .42em;
  text-transform: uppercase; color: var(--bronze); margin-right: -.42em; }
.wm-lab::before, .wm-lab::after { content: ""; width: 16px; height: 1px; background: var(--gold); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a, .top-tools a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--red); }
.top-tools { display: flex; align-items: center; gap: 18px; padding-left: 22px; border-left: 1px solid var(--line); }
.top-tools .lang { color: var(--muted); font-weight: 400; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 11px; background: var(--red); color: #fff8ef; font-size: 12.5px; font-weight: 600; }

/* ---- buttons ---------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--bronze); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 500 15.5px/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--gold); background: #fff; color: var(--ink); }
.btn.primary { background: var(--red); border-color: var(--red-deep); color: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 rgba(48,43,37,.15); }
.btn.primary:hover { background: var(--red-deep); color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.add.is-added { background: transparent; border-color: var(--line); color: var(--bronze); }
.link { color: var(--ink); font-weight: 500; text-decoration-color: var(--gold); }
.link.light { color: var(--gold-light); }
.price { font-weight: 500; color: var(--bronze); font-variant-numeric: tabular-nums; }
.price.big { display: block; font: 400 2.6rem/1 var(--display); color: var(--ink); margin-bottom: 14px; }
.was { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(120,111,99,.6); }

/* ---- layout blocks ---------------------------------------------------------------------------------- */
main > section, .page-head, .shelf, .product, .more, .bundle-grid { max-width: var(--wrap); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px !important; }
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 20px; }

/* ---- hero: the rack ----------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 90px); }
.hero h1 { max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.formats { font-size: 14.5px; color: var(--muted); max-width: 46ch; }
.rack {
  position: relative; margin: 0; height: clamp(420px, 64vh, 660px); overflow: hidden; border-radius: 10px;
  padding: 16px 50px 0; background: radial-gradient(120% 70% at 50% 0%, #262c33 0%, var(--glass) 70%);
  box-shadow: 0 30px 60px -30px rgba(48, 43, 37, .55), inset 0 0 0 1px rgba(200, 166, 101, .35);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.rack::before, .rack::after {   /* brass rails with their mounting holes */
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px;
  background:
    radial-gradient(circle at 50% 22px, #121417 0 4.5px, #4d4232 5px 6px, transparent 6.5px) 0 0 / 100% 44px,
    linear-gradient(90deg, #6d5636 0%, #c9ad74 30%, #ecd8a8 46%, #b29462 64%, #6a5333 100%);
}
.rack::before { left: 8px; } .rack::after { right: 8px; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.units img { width: 100%; border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.55); }
.units a { display: block; }
.units li { animation: slot .75s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i) * 120ms + 120ms); }
@keyframes slot { from { transform: translateX(34px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- the collection ---------------------------------------------------------------------------------- */
.shelf { padding-top: 24px; padding-bottom: 40px; }
.shelf-head { max-width: 64ch; margin-bottom: 18px; }
.shelf-head p { color: var(--muted); }
.family { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.family-name { font-size: 1.7rem; position: sticky; top: 96px; align-self: start; color: var(--bronze); }
.family-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.plug { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 48px; }
.plug > * { min-width: 0; }
/* Faceplates differ in height: in each row they sit on one line (subgrid, bottom-aligned), so names and buttons
   line up without reserving space a row does not need. */
.plug-plate { display: block; align-self: end; }
.plug-plate img { width: 100%; border-radius: var(--radius);
  box-shadow: 0 14px 28px -16px rgba(48, 43, 37, .55), 0 0 0 1px rgba(128, 103, 67, .18); transition: transform .2s; }
.plug-plate:hover img { transform: translateY(-2px); }
.plug-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.plug-name { font-size: 1.45rem; margin: 0; }
.plug-name a { color: var(--ink); text-decoration: none; }
.plug-name a:hover { color: var(--red); }
.plug-tag { color: var(--muted); margin: 6px 0 14px; }
.plug-actions { display: flex; align-items: center; gap: 18px; align-self: start; }
.plug-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.jump a { color: var(--bronze); font-weight: 500; text-decoration: none; }
.jump a:hover { color: var(--red); }

/* ---- dark bands (the faceplates' smoked glass) ------------------------------------------------------- */
.band, .film { max-width: none !important; background: linear-gradient(180deg, var(--glass-2), var(--glass)); color: #EDE4D3; }
.band-inner, .film-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band h2, .film h2 { color: var(--gold-light); }
.band p, .film p { color: #CFC3AE; }
.band .big { display: block; font: 400 clamp(3.2rem, 6vw, 5rem)/1 var(--display); color: var(--gold); }
.band .was { display: block; margin: 8px 0 22px; color: #9C907C; }
.band-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.band .btn.add { background: var(--red); border-color: var(--red-deep); color: #fff8ef; }
.band .btn.add:hover { background: var(--red-deep); }
.band .btn.add.is-added { background: transparent; border-color: rgba(200, 166, 101, .5); color: var(--gold-light); }
.film video { width: 100%; height: auto; margin-top: 18px; border-radius: 8px; background: #000;
  box-shadow: 0 0 0 1px rgba(200, 166, 101, .35), 0 30px 60px -30px #000; }

/* ---- steps and features ------------------------------------------------------------------------------ */
.how { padding-top: clamp(48px, 7vw, 90px); padding-bottom: 30px; }
.how ol { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.how li { counter-increment: s; border-top: 1px solid var(--gold); padding-top: 18px; }
.how li::before { content: counter(s); display: block; font: 400 2.8rem/1 var(--display); color: var(--gold); margin-bottom: 12px; }
.how h3 { font-size: 1.35rem; }
.how p { color: var(--muted); }
.common { padding-top: 40px; padding-bottom: clamp(56px, 8vw, 100px); }
.common dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 36px; margin: 22px 0 0; }
.common dt { font-weight: 600; }
.common dd { margin: 2px 0 0; color: var(--muted); }

/* ---- product page ------------------------------------------------------------------------------------ */
.product { padding-top: 26px; padding-bottom: 30px; }
.crumb { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.product-plate { margin: 0 0 40px; }
.product-plate img { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px -32px rgba(48, 43, 37, .6), 0 0 0 1px rgba(128, 103, 67, .2); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-main h2 { font-size: 1.5rem; margin-top: 1.6em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 11px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .45em; padding-left: .3em; }
.steps li::marker { font-family: var(--display); color: var(--bronze); }
.buy { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.buy .btn { width: 100%; }
.buy h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.in-bundle { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; }
.ideal { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ideal li { border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 14.5px; }
.req { padding-left: 1.1em; margin: 0; font-size: 14.5px; color: var(--muted); }
.gallery { margin-top: 48px; }
.gallery > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery img { border-radius: var(--radius); box-shadow: 0 12px 26px -16px rgba(48, 43, 37, .55); }
.more { padding-top: 30px; padding-bottom: 80px; border-top: 1px solid var(--line); margin-top: 30px; }

/* ---- bundle ------------------------------------------------------------------------------------------ */
.bundle-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.bundle-buy .price.big { margin: 0; }
.bundle-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; padding-top: 30px; padding-bottom: 90px; margin: 0 auto; }
.bundle-grid a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.bundle-grid img { border-radius: 4px; box-shadow: 0 10px 20px -14px rgba(48, 43, 37, .6); margin-bottom: 6px; }
.bundle-grid .was { font-weight: 400; font-size: 14px; }

/* ---- cart, thanks, forms ------------------------------------------------------------------------------- */
.cart, .thanks, .downloads, .faq, .legal { padding-bottom: 90px; }
.cart-line { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 4px; }
.cart-line h2 { font-size: 1.25rem; margin: 0 0 4px; }
.cart-line button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14.5px; padding: 0; }
.cart-total { display: flex; justify-content: space-between; font: 400 1.6rem/1 var(--display); margin: 26px 0 14px; max-width: none; }
.cart-hint, .note { font-size: 14.5px; color: var(--muted); }
.note { margin-top: 12px; }
.msg { min-height: 1.4em; font-weight: 500; }
.msg.bad { color: var(--red); }
.keyrow { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 12px; }
.keyrow h2 { font-size: 1.2rem; margin: 0 0 8px; }
.keyrow .key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.keyrow code { flex: 1 1 280px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; color: var(--ink);
  background: var(--ivory); border-radius: 4px; padding: 8px 10px; }
.keyrow .btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.order-number { font: 400 1.3rem/1.3 var(--display); }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.dl-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dl-card .btn { min-width: 230px; }
.dl-card p { margin: 0; color: var(--muted); }
.downloads h2, .thanks h2 { font-size: 1.45rem; margin-top: 1.6em; }
.first { padding-left: 1.1em; }
.first li { margin-bottom: .7em; }
.form { display: grid; gap: 18px; padding-bottom: 90px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form .btn { justify-self: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.legal h2 { font-size: 1.35rem; margin-top: 1.5em; }

/* ---- footer ------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 14px; font-family: var(--display); font-size: 1.1rem; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--red); }
.rights { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 30px; color: var(--muted); font-size: 13.5px; }

/* ---- smaller screens ---------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .family { grid-template-columns: 1fr; gap: 18px; }
  .family-name { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .buy { position: static; }
  .bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .common dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 0; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; padding: 8px 0 10px; }
  .top-tools { margin-left: auto; padding-left: 0; border-left: 0; }
  .rack { height: 380px; padding: 12px 40px 0; }
  .rack::before, .rack::after { width: 26px; }
  .family-items, .how ol, .band-inner, .common dl, .gallery > div { grid-template-columns: 1fr; }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 90px minmax(0, 1fr); }
  .cart-line .price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .units li { animation: none; }
  .plug-plate img, .btn { transition: none; }
}
