@font-face {
  font-family: Geist;
  src: url(assets/Geist.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f1f1e9;
  --sage: #b6c8b4;
  --line: #c3d2bc29;
  --gutter: clamp(18px, 5.5vw, 90px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 19% 52%, #23302a60, transparent 49%),
              radial-gradient(ellipse at 84% 48%, #3a302035, transparent 48%), #10130f;
  color: var(--paper);
  font-family: Geist, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #e7efc7; outline-offset: 4px; }
h1, h2, p { margin: 0; }

.skip { position: absolute; top: 0; left: 0; z-index: 10; padding: 12px; background: #202720; transform: translateY(-120%); }
.skip:focus { transform: none; }

body > header, body > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.word { font-size: clamp(20px, 2.1vw, 32px); font-weight: 700; letter-spacing: -.078em; }
.word span { color: var(--sage); }
.back { font-size: 13px; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 1550px; margin-inline: auto; padding: clamp(36px, 4.55vw, 74px) var(--gutter); }
.heading { max-width: 68ch; }
h1 { font-size: clamp(55px, 7.1vw, 110px); font-weight: 420; line-height: 1; letter-spacing: -.078em; }
h1 em { color: #dbe3cf; font: italic 400 1.06em/.98 Baskerville, Georgia, serif; letter-spacing: -.059em; }
.heading p { margin-top: 14px; color: #c1c9bf; font-size: clamp(14px, 1.18vw, 18px); line-height: 1.5; }

.editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.7vw, 44px);
  margin-top: clamp(27px, 3vw, 49px);
}

.editions article { --tint: 176 215 204; min-width: 0; scroll-margin-top: 22px; }
#color { --tint: 227 200 156; }

.plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.66;
  border-radius: clamp(19px, 1.75vw, 26px);
  background: #18221f;
  box-shadow: 0 12px 31px -15px #030705c4;
}

#color .plate { background: #292820; }

.plate-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.plate-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  transform-origin: 50% 52%;
}

#color .plate-link img { object-position: 50% 49%; transform-origin: 47% 50%; }

/* The edge catches the light over the photograph. The price sits in its own glass surface. */
.plate::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, #f3fff70b, transparent 36%, transparent 67%, #05080525);
  box-shadow: inset 0 1px 1px #f4fff35e, inset 1px 0 0 #ecfff21a, inset -1px -1px 0 #eadfce38;
}

.plate-link:focus-visible { outline-offset: -5px; }

.price-glass {
  position: absolute;
  right: clamp(11px, 1.15vw, 18px);
  bottom: clamp(11px, 1.15vw, 18px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px 8px 7px 16px;
  border: 1px solid rgb(var(--tint) / .56);
  border-radius: 100px;
  color: #fffdf7;
  background: radial-gradient(95% 115% at 18% -27%, rgb(var(--tint) / .46), transparent 72%),
              linear-gradient(134deg, #20312cc9, #10201dbd 62%, #294339bb);
  box-shadow: inset 0 1px 1px #fffff78f, inset 0 -1px 2px rgb(var(--tint) / .28),
              0 4px 12px #050a075c;
  backdrop-filter: blur(15px) saturate(1.45);
  -webkit-backdrop-filter: blur(15px) saturate(1.45);
}

#color .price-glass {
  background: radial-gradient(95% 115% at 18% -27%, rgb(var(--tint) / .53), transparent 72%),
              linear-gradient(134deg, #413b2cc9, #241f19ba 65%, #493e2dbd);
}

.price-amount {
  font-size: clamp(19px, 1.48vw, 24px);
  font-weight: 540;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.044em;
  text-shadow: 0 1px 2px #03070466;
}

.price-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border: 1px solid rgb(var(--tint) / .33);
  border-radius: 50%;
  color: #fffdf6;
  background: linear-gradient(150deg, rgb(var(--tint) / .22), rgb(var(--tint) / .055));
  box-shadow: inset 0 1px 0 #ffffff29;
  font: 440 15px/1 Geist, sans-serif;
}

.caption { padding: clamp(16px, 1.6vw, 24px) 2px 0; }
.product-line {
  color: rgb(var(--tint) / .86);
  font: 540 10px/1.25 Geist, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.caption h2 { margin: 6px 0 9px; font: 400 clamp(35px, 3.65vw, 58px)/1.04 Baskerville, Georgia, serif; letter-spacing: -.04em; }
.caption h2 span { color: rgb(var(--tint)); }
.description { max-width: 48ch; color: #c7cfc4; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.5; }
.tool-actions { margin-top: 17px; }

.tool-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgb(var(--tint) / .29);
  border-radius: 100px;
  color: #e4eae0;
  background: linear-gradient(150deg, rgb(var(--tint) / .12), rgb(var(--tint) / .035) 68%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / .15);
  font-size: 13px;
  font-weight: 520;
}

.tool-actions .button span { color: rgb(var(--tint)); }
.tool-actions .button:hover, .price-glass:hover { border-color: rgb(var(--tint) / .85); }
body > footer { margin-top: 15px; border-top: 1px solid var(--line); border-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .plate-link img { transition: transform .78s cubic-bezier(.2,.72,.23,1); }
  .price-glass, .price-arrow, .tool-actions .button { transition: transform .32s ease, border-color .25s ease; }
  article:focus-within .plate-link img { transform: scale(1.042); }
  .plate-link:active img { transform: scale(1.055); }
  .price-glass:active, .tool-actions .button:active { transform: scale(.975); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  article:hover .plate-link img { transform: scale(1.042); }
  .price-glass:hover { transform: translateY(-1px); }
  .price-glass:hover .price-arrow { transform: translate(1px, -1px); }
}

@media (max-width: 700px) {
  .editions { grid-template-columns: minmax(0, 1fr); gap: 43px; }
  body > header, body > footer { padding-block: 16px; }
  .heading p { max-width: 33ch; }
  .plate { aspect-ratio: 1.59; }
  .price-glass { min-height: 44px; gap: 9px; padding: 6px 7px 6px 13px; }
  .price-arrow { width: 27px; height: 27px; }
}

@media (forced-colors: active) {
  .price-glass, .tool-actions .button { border-color: ButtonText; background: Canvas; color: LinkText; }
  .price-arrow { color: LinkText; }
}
