:root {
  color-scheme: light;
  --paper: #f7f2ed;
  --surface: #fffdfa;
  --ink: #261e1a;
  --muted: #655850;
  --accent: #785034;
  --line: #ded0c4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

.shell {
  width: min(100% - 3.5rem, 68rem);
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
}

.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding-block: 1rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }

.brand {
  color: var(--ink);
  font: 1.5rem/1.1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}

nav, .links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.15rem;
}

nav { font-size: 0.92rem; }
nav a, .links a { padding-block: 0.45rem; }

.intro { padding-block: clamp(1.8rem, 5.6vw, 4.2rem) clamp(1.3rem, 3vw, 2.1rem); }

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}

h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 5.7vw, 4.3rem);
  letter-spacing: -0.045em;
}

h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.02rem; }

.intro p,
.details p,
.terms p { margin-block-start: 0.8rem; }

.intro p {
  max-width: 52ch;
  color: var(--muted);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 2rem);
}

.collection {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 10rem;
  aspect-ratio: 1.9;
  overflow: hidden;
}

.cover img {
  position: absolute;
  z-index: -2;
  display: block;
}

.cover__text {
  padding: clamp(1.15rem, 3vw, 2.2rem);
}

.cover__text span {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
}

.cover h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  overflow-wrap: break-word;
}

.cover--certificate {
  background: #2c201b;
  color: #fff2e0;
}

.cover--certificate img {
  inset: 0 0 0 auto;
  width: 65%;
  height: 100%;
  object-fit: cover;
}

.cover--certificate::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #2c201b 32%, #2c201bed 49%, #2c201b13 79%);
  content: "";
}

.cover--certificate span { color: #f3cbad; }

.cover--subscription {
  background: #f9eee1;
  color: #35231a;
}

.cover--subscription img {
  inset: 50% 2% auto auto;
  width: 53%;
  max-height: 100%;
  object-fit: contain;
  transform: translateY(-50%);
}

.cover--subscription::after {
  position: absolute;
  z-index: -1;
  inset: 0.45rem;
  border: 1px solid #b89172;
  border-radius: 0.6rem;
  content: "";
}

.cover--subscription span { color: #725038; }

.prices {
  margin: 0;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.prices div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  padding-block: 0.73rem;
}

.prices div + div { border-top: 1px solid var(--line); }

.prices dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.details {
  display: grid;
  grid-template-columns: 1.26fr 1fr;
  gap: 1.4rem clamp(1.5rem, 5vw, 4.6rem);
  margin-block: clamp(2rem, 6vw, 4.1rem);
  scroll-margin: 1rem;
}

.details p { max-width: 56ch; }

.purchase {
  padding: 1.05rem 1.25rem;
  border-radius: 0.85rem;
  background: #eee4da;
}

.purchase p { margin-block: 0.4rem 0.8rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: #fffdfa;
  text-align: center;
  text-decoration: none;
}

.links { margin-block-start: 0.26rem; }

.seller {
  border-top: 1px solid var(--line);
  padding-block-start: 1.4rem;
}

.tax-id span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

address {
  margin-block-start: 0.45rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer { color: var(--muted); }

.terms {
  max-width: 46rem;
  padding-block: clamp(1.8rem, 5.8vw, 4.2rem);
}

.terms h2 { margin-block-start: 1.7rem; }

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .catalog, .details { grid-template-columns: minmax(0, 1fr); }
  .cover h2 { font-size: clamp(1.45rem, 6.4vw, 2.5rem); }
}
