@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111510;
  --panel: #1b2219;
  --text: #f1ecdc;
  --muted: #c2c4b2;
  --gold: #e0bf85;
  --line: #3b4131;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: var(--sans);
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

h1, h2, h3, h4, p { margin: 0; }

.shell {
  width: min(100% - var(--gutter) * 2, 80rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  background: #131811;
  border-bottom: 1px solid var(--line);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.brand-mark {
  color: var(--gold);
  font-size: 1.65rem;
  line-height: 1;
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav a:hover, .brand:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #151b12;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 30%;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #151b12 0%, #151b12e8 9%, #151b1260 28%, transparent 53%),
    linear-gradient(0deg, #151b126b, transparent 45%);
}

.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(33rem, 44vw, 43rem);
  padding-block: clamp(3.5rem, 6.5vw, 7rem);
}

.hero-copy { max-width: 36rem; }

.label {
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.hero-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}

h1, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
}

h1 {
  font-size: clamp(4.15rem, 7.1vw, 7.1rem);
  letter-spacing: -.045em;
  line-height: .85;
}

h1 em {
  display: block;
  margin-top: .09em;
  color: var(--gold);
  font-weight: inherit;
}

.hero-description {
  max-width: 30ch;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: .55rem 1.25rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1b2117;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--text);
  border-color: var(--text);
}

.work { padding-block: clamp(3.5rem, 7vw, 6rem); }

.work-label {
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.product-group { margin-top: 1.7rem; }

.product-group + .product-group {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-bottom: 1.7rem;
}

.group-heading h3 {
  font-size: clamp(2.6rem, 5.1vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.group-heading p { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: 1rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.35rem, 3.2vw, 2.6rem);
  background: var(--panel);
  border: 1px solid var(--line);
}

.product h4 {
  margin-top: .55rem;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.product-description {
  max-width: 44ch;
  margin-top: .85rem;
  color: var(--muted);
}

.features {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.features li {
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}

.features strong { font-weight: 650; }

.features p {
  max-width: 50ch;
  margin-top: .2rem;
  color: var(--muted);
}

.product-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
  color: var(--gold);
  font-weight: 650;
  text-underline-offset: .25em;
}

.product-link:hover { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #131811;
}

.footer-inner {
  display: flex;
  align-items: center;
  min-height: 5rem;
  gap: .65rem;
  color: var(--muted);
}

.footer-inner .brand-mark { font-size: 1.25rem; }

@media (max-width: 52rem) {
  .hero-art { left: 21%; }
  .hero-copy { max-width: 31rem; }
  h1 { font-size: clamp(3.5rem, 9vw, 5.6rem); }
}

@media (max-width: 38rem) {
  .masthead { min-height: 4.25rem; }

  .hero { display: flex; flex-direction: column; }

  .hero-art {
    position: relative;
    inset: auto;
    order: 1;
    height: min(75vw, 23rem);
    margin-top: -1.75rem;
  }

  .hero-art img { object-position: center 42%; }

  .hero-art::after {
    background: linear-gradient(180deg, #151b12 0%, #151b1200 31%);
  }

  .hero-inner {
    min-height: 0;
    padding-block: 3rem 1rem;
  }

  h1 { font-size: clamp(3rem, 11vw, 4.65rem); }
}
