@font-face {
  font-family: House;
  src: url("fonts/house-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: House;
  src: url("fonts/house-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100b0e;
  --ivory: #f7ecdd;
  --muted: #d8bebc;
  --rule: #f7ecdd45;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  --serif: House, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 1rem/1.55 Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: .35rem;
  padding: .75rem var(--gutter);
  font-size: .875rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-header a,
.site-footer a { display: inline-block; padding: .5rem 0; text-decoration: none; }

.site-header a:hover,
.site-footer a:hover { text-decoration: underline; }

.site-footer { color: var(--muted); border-top: 1px solid var(--rule); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: clamp(3rem, 10vh, 8rem) var(--gutter) clamp(2rem, 7vh, 4.5rem);
  overflow: hidden;
}

.hero--landing { min-height: max(30rem, 80svh); }
.hero--archive { min-height: max(31rem, 76svh); }

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #10090dcf, #10090d28 82%),
    linear-gradient(0deg, #100b0e 0%, #100b0e05 66%),
    #260c17 url("brands/reign-velvet.webp") center 45% / cover no-repeat;
  animation: opening-light 1.15s ease-out both;
}

.hero--archive::before {
  background-position: center, center, center 65%;
}

.hero-inner {
  width: 100%;
  animation: opening-title .85s .12s ease-out both;
}

.masthead,
.archive-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .78;
}

.masthead { font-size: clamp(5.25rem, 20vw, 18rem); letter-spacing: -.075em; }

.masthead span {
  display: block;
  margin: 1.75rem 0 0 .2rem;
  font: .875rem/1.4 Arial, sans-serif;
  letter-spacing: .55em;
  text-transform: uppercase;
}

.archive-title { font-size: clamp(4rem, 13vw, 11rem); letter-spacing: -.07em; }
.archive-title strong { font-weight: 400; }
.archive-title em { color: #edbabc; font-weight: 400; }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.hero-bottom p { max-width: 29ch; margin: 0; color: var(--muted); }

.button {
  display: inline-block;
  padding: .8rem 1.2rem;
  border: 1px solid #e5c5c2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.button:hover { background: var(--ivory); color: var(--ink); }

.issue-section { padding: clamp(3rem, 8vw, 7rem) var(--gutter); }

.issue-section h2 {
  margin: 0 0 1.5rem;
  font: clamp(2.5rem, 6vw, 5rem)/1 var(--serif);
  letter-spacing: -.04em;
}

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

.issue {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.issue--featured { grid-column: 1 / -1; }

.issue--forthcoming .issue-info {
  padding: clamp(1.4rem, 6vw, 4.5rem);
  background: linear-gradient(112deg, #311019, #1d0e16 70%, #251018);
  border: 1px solid var(--rule);
}

.issue img { display: block; width: 100%; height: auto; }

.issue-info h3 { margin: .9rem 0; font: clamp(2rem, 5vw, 4.25rem)/1.04 var(--serif); }
.issue-info p { margin: 0; color: var(--muted); }
.issue-info .label { font-size: .875rem; letter-spacing: .18em; text-transform: uppercase; }

@media (min-width: 46rem) {
  .issue--featured:has(img) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); }
}

@media (max-width: 36rem) {
  .site-header { letter-spacing: .08em; }
  .hero::before {
    background-position: center, center, 67% center;
  }
  .hero-bottom { align-items: start; flex-direction: column; }
}

@keyframes opening-light {
  from { opacity: .4; }
  to { opacity: 1; }
}

@keyframes opening-title {
  from { opacity: 0; transform: translateY(.55rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
