@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap;
  src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap;
  src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

:root {
  --shelf: #e9eef3;      /* page: library steel-shelf grey-blue */
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --brand: #c2410c;      /* product.json main */
  --brand-dark: #9a330a;
  --cardstock: #fbfaf5;
  --rule: #bcd0e4;       /* ruled lines on the catalogue card */
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --typed: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shelf); color: var(--ink); font: 400 1.125rem/1.55 var(--sans); }

a { color: var(--brand-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.top, main, .foot { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.375rem; }
.top-contact { color: var(--ink); font-weight: 700; }

/* Hero: the headline on the left, the catalogue card (the one bold element) on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center;
  padding-top: 3.5rem; padding-bottom: 5rem; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.lede { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 1.25rem; max-width: 34em; }
.hero-actions { margin: 2rem 0 0; }
.button { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  padding: 0.8rem 1.4rem; border-radius: 6px; }
.button:hover { background: var(--brand-dark); color: #fff; }

.card { position: relative; margin: 0; min-height: 16.6rem; background-color: var(--cardstock);
  background-image: linear-gradient(var(--brand), var(--brand)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6rem - 1px), var(--rule) calc(1.6rem - 1px), var(--rule) 1.6rem);
  background-size: 100% 2px, 100% 100%;
  background-position: 0 2.25rem, 0 2.25rem;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 1px 0 rgba(29, 36, 51, 0.08), 0 18px 40px -18px rgba(29, 36, 51, 0.35);
  padding: 1rem 1.75rem 2.5rem 1.75rem; font: 400 0.98rem/1.6rem var(--typed); color: #26303f;
  transform: rotate(-1.5deg); }
.card-body p { margin: 0; }
.card-body .indent { text-indent: 1.5rem; }
.card-body b { font-weight: 700; }
.features-list { margin: 0; padding: 0; list-style: none; }
.features-list li { padding-left: 2ch; text-indent: -2ch; white-space: nowrap; }
.features-list li::before { content: "- "; color: var(--brand); }
.card-hole { position: absolute; left: 50%; bottom: 0.7rem; width: 1rem; height: 1rem; margin-left: -0.5rem;
  border-radius: 50%; background: var(--shelf); box-shadow: inset 0 1px 2px rgba(29, 36, 51, 0.25); }

.features { padding-top: 4rem; padding-bottom: 4rem; border-top: 1px solid #cfd8e2; }
.features h2, .contact h2 { margin: 0 0 2rem; font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.01em; }
.features dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; }
.features dt { font-weight: 700; font-size: 1.2rem; }
.features dd { margin: 0.4rem 0 0; color: var(--ink-soft); max-width: 32em; }

.contact { padding-top: 4rem; padding-bottom: 5rem; border-top: 1px solid #cfd8e2; }
.contact p { margin: 0; font-size: 1.25rem; max-width: 36em; }

/* the privacy policy page (#26) */
.policy { padding-top: 2.5rem; padding-bottom: 4rem; max-width: 48rem; margin-left: max(0px, calc((100vw - 72rem) / 2)); }
.policy h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.policy h2 { margin: 2.5rem 0 0.6rem; font-size: 1.4rem; line-height: 1.25; }
.policy p, .policy li { max-width: 40em; }
.policy p { margin: 0 0 1rem; }
.policy ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.policy li { margin-bottom: 0.5rem; }

.foot { padding-top: 1.5rem; padding-bottom: 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.foot p { margin: 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 1.5rem; padding-bottom: 3.5rem; }
  .card { transform: rotate(-1deg); max-width: 32rem; }
  .features dl { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .card { min-height: 0; margin: 0 -0.75rem; padding-left: 1rem; padding-right: 0.75rem; padding-top: 1rem; font-size: 0.86rem;
    background-position: 0 2.2rem, 0 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
