@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --paper: #f5f0e8;
  --light: #f5f0e7;
  --sample: #f4eee3;
  --ink: #211c19;
  --secondary: #544a40;
  --iron: #251e19;
  --oxblood: #341813;
  --metal: #cbbba6;
  --signal: #a01220;
  --signal-hover: #81121e;
  --rule: #b6a696;
  --margin: clamp(20px, 3.12vw, 70px);
  --ease: cubic-bezier(.23, .75, .25, 1);
  font: 500 16px/1.55 Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a, summary { touch-action: manipulation; -webkit-tap-highlight-color: #a0122030; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
::selection { background: var(--signal); color: var(--light); }
[id] { scroll-margin-top: 14px; }
.skip-link {
  position: fixed;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--light);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.wrap, .header-inner { max-width: 1570px; margin-inline: auto; padding-inline: var(--margin); }
.header { border-bottom: 1px solid #ab998950; background: var(--light); }
.header-inner {
  min-height: 81px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: max(var(--margin), env(safe-area-inset-left)) max(var(--margin), env(safe-area-inset-right));
}
.brand { display: block; flex: none; width: 231px; }
.header .brand { margin-left: -23px; }
.header nav, .footer nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 43px); }
.header nav a, .footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.header nav a:hover, .footer nav a:hover { text-decoration: underline; }
.header nav a:last-child { border-bottom: 2px solid var(--signal); }

.intro { padding-block: 22px 28px; }
.intro h1 { font-size: clamp(43px, 4.25vw, 67px); font-weight: 800; }
.intro p { margin-top: 8px; color: var(--secondary); font-size: clamp(15px, 1.58vw, 22px); }

.deck {
  width: min(1580px, 100% - 26px);
  padding: clamp(8px, 1.4vw, 22px);
  margin-inline: auto;
  display: grid;
  gap: clamp(7px, 1.1vw, 17px);
  background: var(--iron) url("assets/cast-iron.jpg") center / cover no-repeat;
  border: 1px solid #171311;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #efc49a4a, 0 4px 11px #271d1924;
  overflow-anchor: none;
}
.door {
  min-width: 0;
  border: 1px solid #93806c;
  border-radius: 10px;
  background: var(--metal);
  color: var(--ink);
}
.door > summary {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.65fr) minmax(0, .64fr) 42px;
  gap: clamp(12px, 2.5vw, 38px);
  align-items: center;
  min-height: clamp(88px, 8.3vw, 125px);
  padding: 9px clamp(12px, 2.1vw, 32px) 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.door > summary:focus-visible { outline-color: #fbc998; outline-offset: 2px; }
.door:not([open]) > summary:hover { background: #dfd1bf; }
.door-window, .door-sample { height: clamp(66px, 6.5vw, 97px); min-width: 0; }
.door-window { overflow: hidden; border-radius: 6px; background: #35231e; box-shadow: 0 0 0 1px #685341; }
.door-window img { height: 100%; object-fit: cover; }
.door-fish .door-window img { object-position: center 56%; }
.door-pizza .door-window img { object-position: center 56%; }
.door-title { display: block; font-size: clamp(24px, 2.45vw, 39px); font-weight: 800; line-height: 1.14; letter-spacing: -.035em; }
.door-note { display: block; margin-top: 5px; color: #493b30; font-size: 14px; font-weight: 700; }
.door-sample.art { isolation: auto; }
.door-sample { border-left: 1px solid #9a8876; }
.chevron { display: inline-block; width: 10px; height: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.door > summary > .chevron { place-self: center; color: var(--signal); }
.door[open] { color: var(--light); background: var(--oxblood); border-color: #8b5d46; }
.door[open] > summary { grid-template-columns: minmax(0, 1fr) 42px; min-height: 64px; padding: 10px clamp(14px, 2.3vw, 34px); }
.door[open] > summary:hover { background: #4b211b; }
.door[open] .door-window, .door[open] .door-sample, .door[open] .door-note { display: none; }
.door[open] > summary > .chevron { color: #f0b5a5; transform: rotate(-45deg); margin-top: 6px; }
.door[open] .door-title { font-size: clamp(24px, 2.35vw, 37px); }

.chamber {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.38fr);
  min-height: clamp(286px, 24vw, 382px);
  border-top: 1px solid #9c674d;
  border-radius: 0 0 9px 9px;
  overflow: hidden;
}
.specimen { display: grid; align-content: center; gap: 15px; padding: 17px clamp(15px, 2.25vw, 34px) 21px; }
.specimen-photo { height: clamp(112px, 13vw, 198px); overflow: hidden; background: var(--sample); border-radius: 5px; }
.art { display: grid; place-items: center; overflow: hidden; isolation: isolate; position: relative; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(var(--photo-scale, 1)); }
.art-burger { --photo-scale: 2.95; }
.art-fish { --photo-scale: 2.15; }
.art-slotted { --photo-scale: 1.6; }
.door-sample.art-pizza { --photo-scale: .94; }
.specimen-info { min-width: 0; }
.specimen-info h2 { font-size: clamp(21px, 2.08vw, 32px); line-height: 1.12; }
.specimen-info p { margin-top: 5px; color: #ead1bf; font-size: clamp(13px, 1.14vw, 17px); }
.specimen-info p span { margin-inline: 2px; }
.button {
  min-height: 45px;
  margin-top: 13px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--signal);
  color: #fffaf4;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}
.button:hover { background: var(--signal-hover); }
.button:focus-visible { outline-color: #fbc998; }
.button .chevron { width: 8px; height: 8px; }
.scene { position: relative; min-height: 100%; background: #2b211e; border-left: 1px solid #885644; }
.scene img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 54%; }
.door-fish .scene img { object-position: center 56%; }
.scene figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin-left: 8px;
  padding: 5px 8px;
  border-radius: 2px;
  color: #f9eee3;
  background: #271e19eb;
  font-size: 11px;
  line-height: 1.3;
}
.scene figcaption span { padding-inline: 2px; }
.door[open][data-transition] .scene img { animation: door-reveal 310ms var(--ease) both; }
@keyframes door-reveal {
  from { clip-path: inset(0 0 15% 0); opacity: .75; }
  to { clip-path: inset(0); opacity: 1; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 64px; gap: 8px; }
  .brand { width: clamp(116px, 37vw, 185px); }
  .header .brand { margin-left: calc(var(--margin) * -.45); }
  .header nav { gap: 12px; }
  .header nav a { max-width: 95px; font-size: 12px; line-height: 1.25; }
  .intro { padding-block: 19px 17px; }
  .intro h1 { font-size: clamp(32px, 8.1vw, 53px); }
  .intro p { margin-top: 5px; line-height: 1.4; }
  .deck { width: calc(100% - 20px); border-radius: 10px; }
  .door, .door > summary { border-radius: 6px; }
  .door > summary {
    grid-template-columns: minmax(53px, .46fr) minmax(0, 1fr) minmax(47px, .43fr) 14px;
    gap: 8px;
    min-height: 66px;
    padding: 6px 9px 6px 6px;
  }
  .door-window, .door-sample { height: 48px; }
  .door-window { border-radius: 3px; }
  .door-title { font-size: clamp(15px, 4.13vw, 25px); letter-spacing: -.026em; }
  .door-note { display: none; }
  .door[open] > summary { grid-template-columns: minmax(0, 1fr) 14px; min-height: 47px; padding: 7px 12px; }
  .door[open] .door-title { font-size: clamp(18px, 5vw, 29px); }
  .door > summary > .chevron { width: 7px; height: 7px; }
  .chamber {
    border-radius: 0 0 5px 5px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .scene { grid-row: 1; min-height: 0; height: clamp(140px, 43vw, 250px); border: 0; }
  .scene figcaption { right: 6px; bottom: 6px; padding: 4px 6px; font-size: 10px; }
  .specimen {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px;
  }
  .specimen-photo { height: clamp(92px, 28vw, 143px); }
  .specimen-info h2 { font-size: clamp(16px, 4.5vw, 25px); }
  .specimen-info p { font-size: 12px; line-height: 1.3; }
  .specimen-info p span { margin-inline: 0; }
  .button { margin-top: 8px; min-height: 44px; padding: 8px 10px; font-size: 12px; gap: 8px; }
  .specimen-photo.art-burger { --photo-scale: 1.9; }
  .specimen-photo.art-fish { --photo-scale: 1.6; }
  .door-sample.art-burger { --photo-scale: 2.25; }
  .door-sample.art-fish { --photo-scale: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .door[open][data-transition] .scene img { animation: none; }
}

/* Catalogue */
.catalog { padding-block: clamp(55px, 5.7vw, 92px) clamp(56px, 6.6vw, 105px); }
.catalog-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 2px solid var(--ink);
}
.catalog-intro h2 { font-size: clamp(36px, 4vw, 58px); }
.catalog-index { display: flex; flex-wrap: wrap; gap: 2px clamp(15px, 2.4vw, 37px); }
.catalog-index a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.catalog-index a:hover { color: var(--signal); text-decoration: underline; }
.family {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3.4fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.family:target .family-intro h3 { color: var(--signal); }
.family-intro h3 { font-size: clamp(22px, 2.4vw, 34px); }
.family-intro p { max-width: 29ch; margin-top: 10px; color: var(--secondary); font-size: 15px; }
.family-products { min-width: 0; }
.product {
  border-top: 1px solid var(--rule);
  scroll-margin-top: 20px;
}
.product:last-child { border-bottom: 1px solid var(--rule); }
.product > summary {
  display: grid;
  grid-template-columns: minmax(76px, .85fr) minmax(0, 1.8fr) minmax(0, .9fr) 66px;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 9px 6px 9px 0;
  list-style: none;
  cursor: pointer;
}
.product > summary:hover, .product:target > summary { background: #e9e0d2; }
.product-photo { height: 87px; border-radius: 3px; background: var(--sample); }
.product-photo.art-burger { --photo-scale: 2.1; }
.product-photo.art-fish { --photo-scale: 1.7; }
.product-photo.art-slotted { --photo-scale: 1.45; }
.product-photo.art-pizza, .product-photo.art-pizza-solid { --photo-scale: .93; }
.product-name { font-size: clamp(16px, 1.55vw, 23px); font-weight: 800; line-height: 1.23; letter-spacing: -.023em; }
.product-material { display: block; margin-top: 4px; color: var(--secondary); font-size: 13px; line-height: 1.35; letter-spacing: 0; font-weight: 600; }
.product-measure { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.product-toggle { display: inline-flex; justify-content: end; align-items: center; gap: 7px; color: var(--signal); font-weight: 800; font-size: 13px; }
.product-toggle .chevron { width: 7px; height: 7px; transform: rotate(135deg); margin-top: -4px; }
.product[open] .product-toggle .chevron { transform: rotate(-45deg); margin-top: 3px; }
.product:not([open]) .when-open, .product[open] .when-closed { display: none; }
.product-detail {
  padding: 17px max(10px, 2%) 20px;
  background: var(--light);
  border-top: 1px solid var(--rule);
}
.product-detail p { margin-bottom: 14px; font-size: 14px; }
.product-detail dl { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 14px; }
.product-detail dt { color: var(--secondary); font-size: 12px; }
.product-detail dd { font-weight: 800; font-variant-numeric: tabular-nums; }

.footer {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: #211b17;
  color: var(--light);
}
.footer::before {
  content: "";
  display: block;
  height: 16px;
  background: var(--iron) url("assets/cast-iron.jpg") center / cover no-repeat;
  border-block: 1px solid #826856;
}
.footer a:focus-visible { outline-color: #fbc998; }
.copyright { border-top: 1px solid #b4a08d; padding-top: 15px; color: #eddfcd; font-size: 12px; }
@media (max-width: 760px) {
  .catalog { padding-block: 45px 52px; }
  .catalog-intro { display: block; padding-bottom: 8px; }
  .catalog-index { margin-top: 8px; }
  .family { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .family-intro p { max-width: 41ch; margin-top: 5px; font-size: 14px; }
  .product > summary {
    grid-template-columns: 73px minmax(0, 1fr) 50px;
    gap: 5px 10px;
    min-height: 89px;
  }
  .product-photo { grid-row: 1 / span 2; align-self: stretch; height: auto; min-height: 69px; }
  .product-name { grid-column: 2; align-self: end; font-size: 15px; }
  .product-measure { grid-column: 2; align-self: start; font-size: 12px; }
  .product-toggle { grid-column: 3; grid-row: 1 / span 2; gap: 5px; font-size: 12px; }
  .product-photo.art-burger { --photo-scale: 1.55; }
  .product-photo.art-fish { --photo-scale: 1.43; }
  .product-photo.art-slotted { --photo-scale: 1.15; }
  .product-detail dl { gap: 8px 15px; }
  .footer nav { gap: 12px; }
  .footer nav a { font-size: 12px; }
}
