:root {
  color-scheme: light;
  --paper: #f9f7f3;
  --ink: #151318;
  --pink: #df0150;
  --heading: "Ferrite Core DX", Michroma, sans-serif;
  --hero-heading-size: clamp(2.1rem, 4.65vw, 6rem);
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
  --ease: cubic-bezier(.2,.75,.2,1);
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 5.4vw, 5.2rem); line-height: 1.03; }
section[id] { scroll-margin-top: 1rem; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 5; padding: .75rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--paper) 58%, var(--pink) 58%);
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.85rem, 2vw, 1.5rem) var(--gutter);
}
.site-header img { width: clamp(6rem, 10vw, 9rem); height: auto; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .3rem;
  border-radius: 100vw;
  background: #f0eeed;
}
.site-header nav a {
  padding: .65rem clamp(.52rem, 1.5vw, 1.35rem);
  border-radius: inherit;
  color: #545158;
  font-size: clamp(.82rem, 1.3vw, 1rem);
  font-weight: 750;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-header nav a:hover { background: #e7e3e4; color: var(--ink); }
.site-header nav a[aria-current] { background: #e8dce1; color: #a6003c; }

.hero-copy { padding: 6.5rem 0 4rem var(--gutter); position: relative; z-index: 1; }
.hero-copy h1 {
  font-size: var(--hero-heading-size);
  -webkit-text-stroke: .025em currentColor;
  line-height: .99;
}
.hero-line { display: block; width: fit-content; }
.hero-line--pink { color: var(--pink); }
.hero-copy p { max-width: 28ch; margin: 1.35rem 0 1.65rem; font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.45; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 750;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.button:hover { background-color: var(--pink); border-color: var(--pink); color: white; box-shadow: 0 4px 12px #15131826; }
.button--light, .button--feature {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
}
.button--light:hover, .button--feature:hover {
  background-color: #f4dbe4;
  border-color: transparent;
  color: var(--ink);
}
.button--light:focus-visible, .button--feature:focus-visible { outline-color: var(--paper); }
.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(75%, 91rem);
  overflow: hidden;
}
[data-hero-pending] .hero-art { visibility: hidden; }
.hero-art img { width: 100%; height: auto; transform: translateY(var(--drift, 0px)); }

.catalogue h2 { font-size: var(--hero-heading-size); }
.catalogue { padding: clamp(3.8rem, 9vw, 9rem) var(--gutter); }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head p { margin-top: 1rem; line-height: 1.5; max-width: 38ch; }
.text-link { font-weight: 750; text-underline-offset: .3em; }
.text-link:hover { color: var(--pink); }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1.15rem, 2.5vw, 2.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.products a { display: grid; align-content: start; gap: .6rem; color: inherit; text-decoration: none; }
.products a:hover .product-title { text-decoration: underline; text-underline-offset: .2em; }
.product-image { aspect-ratio: 1; overflow: hidden; background: #eee8e5; border-bottom: .25rem solid var(--pink); }
.product-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.products a:hover .product-photo { transform: scale(1.06); }
.product-title { font: 400 .93rem/1.55 Michroma, Helvetica, Arial, sans-serif; }
.price { color: #a6003c; font-weight: 700; }
.shop-status {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid #e5dce0;
  border-inline-start: .25rem solid var(--pink);
  background: #fff;
}
.shop-status p { margin: 0 0 .7rem; line-height: 1.5; }

.feature {
  background:
    linear-gradient(90deg, #15131826 0%, #15131838 30%, var(--ink) 58%),
    url("../images/oblivion-sky.jpg") left 42% / cover no-repeat var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.feature figure {
  --oblivion-rise: 2.3rem;
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 31rem;
  clip-path: inset(-4rem 0 0);
}
.feature img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  /* The first 20.75% of the masked photograph is transparent. */
  height: calc((100% + var(--oblivion-rise)) / .7925);
  transform: translateX(-50%);
}
.feature-copy { padding: clamp(3rem, 8vw, 8rem) var(--gutter); align-self: center; }
.feature-copy p { max-width: 40ch; margin-top: 1.4rem; font-size: 1.08rem; line-height: 1.65; }
.feature-copy .button { margin-top: 1.6rem; }

.visit {
  padding: clamp(4rem, 9vw, 9rem) var(--gutter);
  color: white;
  background: var(--pink);
  text-align: center;
}
.visit-logo { width: clamp(5rem, 9vw, 8rem); height: auto; margin: 0 auto 1.5rem; }
.visit p { margin: 1rem auto 1.6rem; line-height: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: enter .75s var(--ease) both; }
  .hero-copy p { animation-delay: .09s; }
  .hero-copy .button { animation-delay: .17s; }
  .hero-art { animation: ride-in 1.25s var(--ease) both; }
  [data-reveal].is-pending { opacity: 0; translate: 0 2rem; }
  [data-reveal].is-visible { transition: opacity .7s var(--ease), translate .7s var(--ease); }
  .products li { animation: enter .6s var(--ease) both; animation-delay: calc(var(--card-index, 0) * 75ms); }
  @keyframes enter { from { opacity: 0; translate: 0 1.4rem; } to { opacity: 1; translate: 0 0; } }
  @keyframes ride-in { from { opacity: 0; translate: 4% 7%; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 52rem) {
  :root { --hero-heading-size: clamp(1.75rem, 8vw, 3.75rem); }
  .hero {
    --mobile-art-height: clamp(16rem, 85vw, 25rem);
    min-height: 100svh;
    grid-template-rows: auto auto minmax(var(--mobile-art-height), 1fr);
  }
  .hero::before {
    --pink-rise: clamp(17rem, 109vw, 34rem);
    inset: auto 0 0 auto;
    width: var(--pink-rise);
    height: var(--pink-rise);
    background: var(--pink);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
  }
  .site-header { position: relative; }
  .hero-copy { padding: clamp(1.75rem, 6vw, 3.25rem) var(--gutter) .75rem; }
  .hero-copy p { margin-block: 1rem 1.2rem; }
  .hero-art {
    position: relative;
    align-self: stretch;
    width: 100%;
  }
  .hero-art img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(128%, 38rem);
    max-width: none;
  }
  .feature { grid-template-columns: 1fr; background: var(--ink); }
  .feature figure { --oblivion-rise: 1rem; min-height: 0; height: min(91vw, 31rem); }
  .feature figure::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(var(--ink), #15131826 65%),
      url("../images/oblivion-sky.jpg") center / cover no-repeat;
  }
  .feature-copy { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::after, *::before { animation: none !important; transition: none !important; }
}

@media (max-width: 23rem) {
  .site-header { gap: .5rem; }
  .site-header img { width: 5rem; }
  .site-header nav a { padding-inline: .45rem; }
}

.site-notes {
  padding: 1rem var(--gutter);
  background: #000;
  color: #aaa3a8;
  text-align: center;
}
.fan-note {
  max-width: 68ch;
  margin: 0 auto .65rem;
  font-size: .82rem;
  line-height: 1.5;
}

.photo-credits {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: center;
  font-size: .75rem;
  line-height: 1.5;
}
.photo-credits span { font-weight: 700; }
.photo-credits a { text-underline-offset: .2em; }
