@font-face {
  font-family: Jost;
  src: url("assets/jost-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url("assets/jost-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --night: #071e20;
  --ink: #102c2e;
  --paper: #fcfbf7;
  --mint: #bcf2dc;
  --inset: clamp(20px, 5vw, 82px);
  font-family: Jost, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ec8c36; outline-offset: 4px; }
.wrap { width: min(1360px, calc(100% - var(--inset) * 2)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 12px; top: 10px; padding: 10px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead, .cover { background: var(--night); color: #fafbf4; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid #ffffff30; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(25px, 2.4vw, 37px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.brand img { width: clamp(24px, 2.1vw, 32px); height: auto; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); }
nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.external { border: 1px solid #97ada7; border-radius: 100px; padding-inline: 20px; }
.cover, .ending { position: relative; isolation: isolate; overflow: hidden; }
.ending-art { position: absolute; inset: 0; z-index: -2; }
picture img { width: 100%; height: 100%; object-fit: cover; }
.cover-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 48px);
  align-items: center;
  min-height: clamp(365px, 35vw, 625px);
}
.cover-art {
  display: block;
  width: min(1220px, calc(100% + max(var(--inset), (100vw - 1360px) / 2)));
  mask-image: linear-gradient(90deg, transparent, black 4%, black 97%, transparent),
              linear-gradient(180deg, transparent, black 8%, black 94%, transparent);
  mask-composite: intersect;
}
.cover-art img { height: auto; }
.ending::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; }
.ending-inner { display: flex; align-items: center; }
.cover-copy { padding-block: 34px 46px; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: clamp(75px, 8.2vw, 130px); line-height: .96; letter-spacing: -.055em; }
h1 span { color: var(--mint); font-weight: 400; font-size: .86em; }
.cover-copy p, .ending-copy p { margin-block: 20px 24px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; }
.cover-copy p { color: #e0ece9; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px 23px 13px; min-height: 46px; border-radius: 100px; font-size: 16px; line-height: 1.3; font-weight: 500; color: white; background: var(--ink); }
.button:hover { background: #225356; }
.button-mint, .ending-box .button { background: var(--mint); color: var(--night); }
.button-mint:hover, .ending-box .button:hover { background: #deffef; }
.collection { padding-block: clamp(40px, 4.3vw, 72px) clamp(44px, 4.7vw, 80px); }
.collection h2 { font-size: clamp(42px, 4.5vw, 76px); line-height: 1.05; letter-spacing: -.05em; margin-bottom: clamp(18px, 2.1vw, 34px); }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.65vw, 26px); }
.product { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #dce5df; }
.categories h3 { font-size: clamp(21px, 2.12vw, 35px); letter-spacing: -.045em; line-height: 1.14; margin-block: 15px 6px; }
.category-card h3 { display: flex; align-items: center; justify-content: space-between; gap: .45em; }
.category-card h3::after {
  content: ""; flex: none; width: .32em; height: .32em; margin-right: .18em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
.category-card:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: .15em; }
.categories p { font-size: 17px; line-height: 1.43; color: #455850; max-width: 36ch; }
.ending { --scene-height: clamp(390px, 31.5vw, 570px); background: #f3efe6; }
.ending-art { left: auto; width: min(85%, calc(2.25 * var(--scene-height))); mask-image: linear-gradient(90deg, transparent, black 22%); }
.ending::after { background: linear-gradient(90deg, #f3efe6ee 0%, #f3efe6be 27%, transparent 55%); }
.ending-box { background: var(--night); color: #f7faf4; }
.ending-box::after { background: linear-gradient(90deg, #051b1ff5, #051b1fc4 29%, transparent 60%); }
.ending-inner { min-height: var(--scene-height); }
.ending-copy { width: 36%; max-width: 470px; padding-block: 40px; }
.ending h2 { font-size: clamp(49px, 5.2vw, 88px); line-height: .99; letter-spacing: -.054em; }
.ending-copy p { max-width: 33ch; }
.footer { background: var(--night); color: #d7e9e1; }
.contacts {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
  padding-block: clamp(32px, 3.2vw, 52px);
  border-bottom: 1px solid #ffffff30;
}
.contacts h2 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.contact-details { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 20px; font-style: normal; }
.contact-details p { color: #bbd0c8; font-size: 15px; line-height: 1.4; }
.contact-details a { max-width: 100%; color: var(--mint); font-size: clamp(19px, 1.85vw, 30px); line-height: 1.24; letter-spacing: -.02em; overflow-wrap: anywhere; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 65px; gap: 16px; font-size: 16px; }
@media (min-width: 761px) and (max-width: 1050px) {
  .cover-inner { min-height: 365px; }
  .ending { --scene-height: 340px; }
  .ending-copy { width: 42%; }
}
@media (max-width: 760px) {
  .masthead-inner { min-height: 65px; }
  .brand { gap: 7px; font-size: clamp(21px, 5.5vw, 30px); }
  .brand img { width: 23px; }
  .section-link { display: none; }
  .masthead-inner { column-gap: 8px; }
  .masthead nav { gap: 9px; }
  .contact-link { font-size: 14px; }
  .external { font-size: 14px; padding-inline: 12px; }
  .ending { display: flex; flex-direction: column; }
  .cover-inner { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-height: 0; }
  .ending-inner { min-height: 0; }
  .cover-copy { padding: 30px var(--inset) 0; }
  h1 { font-size: clamp(69px, 15vw, 97px); }
  .cover-copy p { margin-block: 14px 18px; max-width: 29ch; }
  .wide-only { display: none; }
  .ending::after { content: none; }
  .ending-art { position: relative; z-index: 0; display: block; width: 100%; left: auto; }
  .cover-art { width: 100%; mask-image: linear-gradient(180deg, transparent, black 9%); }
  .categories { grid-template-columns: 1fr; gap: 28px; }
  .product { aspect-ratio: 1.65; }
  .categories h3 { font-size: 26px; margin-block: 10px 4px; }
  .categories p { max-width: 45ch; font-size: 16px; }
  .ending-art { mask-image: none; }
  .ending-art img { height: auto; }
  .ending-inner { order: 1; }
  .ending-copy { width: 100%; padding-block: 27px 32px; }
  .ending h2 { font-size: clamp(38px, 8.7vw, 61px); }
  .ending h2 br { display: none; }
  .ending-copy p { margin-block: 12px 18px; }
  .footer-inner { min-height: 60px; }
  .contacts { grid-template-columns: 1fr; gap: 18px; }
  .contact-details { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
}
@media (max-width: 480px) {
  .masthead .external { display: none; }
  .contact-link { padding-inline: 16px; border: 1px solid #97ada7; border-radius: 100px; }
}
@media (max-width: 355px) {
  :root { --inset: 15px; }
  .masthead-inner { gap: 6px; }
  .brand { font-size: 20px; }
  .external { padding-inline: 9px; }
}
@media print {
  .cover, .ending { print-color-adjust: exact; }
  .categories article, .ending { break-inside: avoid; }
}
