@font-face {
  font-family: "Tenor Sans";
  src: url("/assets/fonts/tenor-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #000;
  --ink-soft: #595959;
  --paper: #fff;
  --mist: #f5f5f5;
  --rule: #e8e8e1;
  --bar: #0f0f0f;
  --display: "Tenor Sans", Optima, Candara, "Gill Sans", sans-serif;
  --text: "Outfit", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --measure: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 18px/1.6 var(--text);
  letter-spacing: 0.025em;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

strong, b { font-weight: 600; }

ul.site-footer__social, nav ul, .guide-list, .guide-cards, .product-cards, .product__points {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong { font-weight: 400; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 8px 12px;
  background: var(--paper);
  z-index: 1;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px var(--gutter) 16px;
}

.wordmark {
  display: block;
  width: 5ch;
  font: 400 32px/1 var(--display);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header ul {
  display: flex;
  gap: 28px;
  font: 400 15px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-header ul a { text-decoration: none; }
.site-header ul a:hover { text-decoration: underline; }

.site-banner {
  margin: 0;
  padding: 10px var(--gutter);
  background: var(--bar);
  color: #fff;
  font-size: clamp(11.5px, 3.1vw, 14px);
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
}

/* Page furniture */
.page-title, .prose, .article-end, .guide-cards, .product, .product__points, .home-section {
  padding-inline: var(--gutter);
}

.page-title {
  max-width: 920px;
  margin: 0 auto;
  padding-block: 48px 32px;
  text-align: center;
}
.page-title h1 { font-size: clamp(30px, 5.2vw, 40px); }
.page-title time {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}

time { font-variant-numeric: tabular-nums; }

/* Long-form text */
.prose {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose li > p { margin: 0; }
.prose h1 { font-size: clamp(28px, 4vw, 36px); }
.prose h2 { margin: 2em 0 0.7em; font-size: clamp(24px, 4vw, 28px); }
.prose h3 { margin: 1.9em 0 0.7em; font-size: clamp(21px, 3.4vw, 24px); }
.prose h4, .prose h5, .prose h6 { margin: 1.7em 0 0.6em; font-size: 19px; }
.prose img { margin: 1.6em auto; }
.prose a[href^="mailto:"] { white-space: nowrap; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--rule); }
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}
.prose th, .prose td {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}

.article-end {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}
.article-end p { margin: 0 0 8px; }

.policy-note {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--measure);
  margin: 0 auto 36px;
  padding: 16px 20px;
  background: var(--mist);
  font-size: 16px;
  line-height: 1.5;
}
.legal-text { font-size: 17px; }

/* Home */
.closed {
  display: grid;
  grid-template-columns: 1fr;
}
.closed__text { padding: 28px var(--gutter) 8px; }
.closed__text h1 { font-size: clamp(38px, 10.5vw, 68px); line-height: 1.02; }
.closed__text p { margin: 18px 0 0; font-size: 19px; line-height: 1.55; }
.closed__photo {
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}

.home-section {
  max-width: calc(860px + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 56px;
}
.home-section h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 4vw, 30px);
  text-align: center;
}

.guide-list { border-top: 1px solid var(--rule); }
.guide-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.guide-list a { flex: 1 1 22em; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list time { color: var(--ink-soft); font-size: 15px; white-space: nowrap; }

.product-cards { display: grid; gap: 24px; }
.product-cards a { display: block; text-decoration: none; text-align: center; }
.product-cards a:hover span { text-decoration: underline; }
.product-cards span {
  display: block;
  margin-top: 12px;
  font: 400 18px/1.25 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Learn */
.guide-cards {
  display: grid;
  gap: 24px;
  max-width: calc(1160px + 2 * var(--gutter));
  margin: 0 auto;
}
.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}
.guide-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-card time { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 14px; }
.guide-card__title { font-size: 18px; line-height: 1.35; text-decoration: none; }
.guide-card__title:hover { text-decoration: underline; }

/* Product */
.product {
  display: grid;
  gap: 28px;
  max-width: calc(1160px + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 28px;
}
.product__gallery { min-width: 0; }
/* On phones the extra photos scroll sideways so the name and status stay near the top. */
.product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.product__thumbs img { flex: 0 0 42%; min-width: 0; scroll-snap-align: start; }
.prose.product__text { max-width: none; margin: 0; padding-inline: 0; }
.prose .product__status {
  margin: 14px 0 22px;
  padding: 12px 0;
  border-block: 1px solid var(--rule);
  font-weight: 400;
}
.product__points {
  display: grid;
  gap: 28px;
  max-width: calc(1160px + 2 * var(--gutter));
  margin: 56px auto 0;
  text-align: center;
}
.product__points h3 { margin-bottom: 10px; font-size: 20px; }
.product__points p { margin: 0; font-size: 16px; line-height: 1.5; }
.product__points strong { font-weight: 300; }
.product__faq { margin-top: 24px; }

/* Footer */
.site-footer {
  display: grid;
  gap: 14px;
  margin-top: 72px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  text-align: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.not-found { text-align: center; }

@media (min-width: 600px) {
  .product-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product__points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
  .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
  .guide-card { display: block; }
  .guide-card > a { display: block; margin-bottom: 12px; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .product__thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .closed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .closed__text {
    align-self: center;
    justify-self: end;
    max-width: 620px;
    padding: 48px 56px 48px 40px;
  }
  .closed__photo { order: 0; height: 560px; aspect-ratio: auto; object-position: 50% 45%; }
}
