@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #1c2b23;
  --ink-muted: #4e6056;
  --forest: #14201b;
  --light: #faf7ef;
  --light-muted: #c2cfc5;
  --mint: #bedbc7;
  --line: #cfd7cd;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
main:focus { outline: none; }

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

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-170%);
}

.skip-link:focus { transform: none; }

.masthead, .hero-region { background: var(--forest); color: var(--light); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
  border-bottom: 1px solid #34443b;
}

.brand { display: inline-block; flex: 0 0 auto; }
.brand img { width: 10.625rem; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.3vw, 1.8rem); }
.site-nav a, .site-footer a { font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover, a[aria-current="page"] { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.button-outline { border-color: #73867a; }
.button-outline:hover { background: #2b4034; text-decoration: none; }
.button-primary { background: var(--mint); color: #16281e; padding: 0.85rem 1.35rem; }
.button-primary:hover { background: #d4e8da; }
.button-primary:focus-visible { outline-color: var(--light); }
.button-dark { background: var(--forest); color: var(--light); }
.button-dark:hover { background: #304639; }
.button-dark:focus-visible { outline-color: var(--forest); }

.hero-region { background: radial-gradient(ellipse at 79% 41%, #2a4434 0, var(--forest) 63%); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: center;
  padding-block: clamp(4.4rem, 9vw, 8rem) clamp(4.5rem, 8vw, 7rem);
}

.beta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  color: var(--mint);
  font-size: 0.875rem;
  font-weight: 600;
}

.beta-label::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--mint); }

h1, h2, h3, .product-title, .product-card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 { font-size: clamp(3.35rem, 6.35vw, 6rem); line-height: 0.94; letter-spacing: -0.032em; }
.hero h1 em { color: var(--mint); }
.hero-copy > p:not(.beta-label) { max-width: 26rem; margin: 1.55rem 0 1.8rem; color: var(--light-muted); font-size: clamp(1rem, 1.45vw, 1.125rem); line-height: 1.65; }

.product-preview { margin: 0; min-width: 0; }
.product-window {
  overflow: hidden;
  border: 1px solid #536a5d;
  border-radius: 1.15rem;
  background: #17241d;
  box-shadow: 0 1.6rem 4.5rem #07140dbd;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #3e5145;
}

.product-nav { display: flex; gap: 0.9rem; font-size: 0.8125rem; font-weight: 600; }
.product-nav span { color: #adbdaf; }
.product-body { padding: clamp(1.05rem, 2.1vw, 1.7rem); }
.product-date, .product-label { margin: 0; color: #bdcfc3; font-size: 0.8125rem; font-weight: 600; }
.product-title { margin: 0.35rem 0 0.95rem; font-size: clamp(2rem, 3.25vw, 3rem); line-height: 1; }
.product-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(0.9rem, 1.6vw, 1.25rem);
  border: 1px solid #536b5d;
  border-radius: 0.8rem;
  background: #263a2f;
}

.product-card-title { margin: 0.28rem 0 0.25rem; font-size: clamp(1.5rem, 2.25vw, 2.15rem); line-height: 1.03; }
.product-card-detail { margin: 0; color: var(--light-muted); font-size: 0.875rem; }
.product-action {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 2rem;
  background: var(--mint);
  color: #14251b;
  font-size: 0.8125rem;
  font-weight: 700;
}

.product-calendar {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.25rem 0.45rem;
  padding-left: 1rem;
  border-left: 1px solid #526b5b;
  color: #c5d4c9;
  font-size: 0.8125rem;
  text-align: center;
}

.product-calendar span:nth-child(even) { display: grid; min-width: 1.7rem; min-height: 1.7rem; place-items: center; }
.selected-day { border-radius: 0.4rem; background: #afceb8; color: #16281e; font-weight: 700; }
.product-deadline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid #3d5345;
  border-radius: 0.7rem;
  background: #1e2f26;
}

.deadline-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.42rem;
  background: #354c3e;
}

.deadline-icon::before { content: ""; width: 0.95rem; height: 0.9rem; border: 1px solid var(--mint); border-top-width: 4px; border-radius: 0.15rem; }
.product-deadline-title { margin: 0.14rem 0 0; color: var(--light); font-size: 0.9375rem; font-weight: 600; }
.due-time { color: var(--light-muted); font-size: 0.8125rem; white-space: nowrap; }
.product-preview figcaption { margin: 0.85rem 0 0; color: var(--light-muted); font-size: 0.8125rem; text-align: right; }

.how-it-works { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); align-items: end; gap: 1.4rem; margin-bottom: 2.45rem; }
.section-intro h2, .reading-page h1, .support-page h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); line-height: 0.99; letter-spacing: -0.025em; }
.section-intro > p, .feature > p { margin: 0; color: var(--ink-muted); line-height: 1.68; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.feature { padding: 1.45rem clamp(1rem, 2.7vw, 2rem) 1.6rem; border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature:last-child { padding-right: 0; }
.feature h3 { margin-bottom: 0.45rem; font-size: clamp(1.65rem, 2.6vw, 2.15rem); line-height: 1; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.site-footer .brand img { width: 9.0625rem; }
.site-footer p { margin: 0; font-size: 0.875rem; }

.reading-page, .support-page { padding-block: clamp(2.75rem, 7vw, 5rem); }
.reading-page { max-width: 48rem; }
.reading-page h1, .support-page h1 { margin: 0 0 2rem; }
.reading-page section { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.reading-page h2, .support-topics h2 { font-size: clamp(1.8rem, 3.5vw, 2.45rem); line-height: 1.05; }
.reading-page p, .support-page p { color: var(--ink-muted); line-height: 1.72; }
.reading-page p { margin: 0.65rem 0 0; }
.reading-page p a, .support-page p a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.support-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.page-lead { margin: 0 0 1.35rem; max-width: 26rem; font-size: 1.125rem; }
.support-page .support-address { margin: 0.65rem 0; }
.support-page .support-note { max-width: 29rem; }
.support-topics h2 { margin-bottom: 0.95rem; }
.support-topics details { border-top: 1px solid var(--line); }
.support-topics details:last-child { border-bottom: 1px solid var(--line); }
.support-topics summary { padding-block: 0.95rem; cursor: pointer; font-weight: 600; line-height: 1.4; }
.support-topics details p { margin: 0 0 1rem; }

@media (max-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem; }
  .hero h1 { font-size: clamp(3.4rem, 9vw, 5.5rem); }
  .product-preview { width: min(100%, 34rem); }
}

@media (max-width: 39rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.35rem; }
  .site-header .brand img { width: clamp(6.2rem, 33vw, 8.4rem); }
  .site-nav { gap: 0.75rem; }
  .site-nav .how-link { display: none; }
  .site-nav .button { padding-inline: 0.85rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.9rem); }
  .hero-copy > p:not(.beta-label) { margin-block: 1.2rem 1.5rem; }
  .beta-label { margin-bottom: 1rem; }
  .product-nav { gap: 0.46rem; }
  .product-header { padding-inline: 0.85rem; }
  .product-header img { width: 5.6rem; }
  .product-calendar { padding-left: 0.55rem; }
  .product-deadline { grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.65rem; }
  .due-time { grid-column: 2; }
  .section-intro, .features, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .section-intro { gap: 0.75rem; margin-bottom: 1.5rem; }
  .feature { padding-inline: 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .site-footer { align-items: flex-start; }
}
