:root {
  color-scheme: light;
  --background: #f8faf5;
  --ink: #18352d;
  --muted: #4b6157;
  --primary: #155d4b;
  --line: #ccd9cc;
  --mint: #e5eee2;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-inline-size: 100%; }
p, h1, h2, h3, figure { margin: 0; }

:focus-visible {
  outline: 3px solid #007b65;
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto var(--gutter);
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-120%);
}

.skip:focus { transform: translateY(.5rem); }

.site-header, .footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  min-height: 4.75rem;
  flex-wrap: wrap;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: .25rem clamp(.75rem, 3vw, 2rem); flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .9375rem; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.063em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.35rem, 6.5vw, 6.5rem); line-height: .96; }
h2 { font-size: clamp(2.45rem, 4.5vw, 4.15rem); line-height: 1.03; }
.intro { max-width: 32ch; margin: 1.65rem 0 1.8rem; font-size: clamp(1.0625rem, 1.55vw, 1.25rem); line-height: 1.65; color: var(--muted); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.375rem;
  padding: .75rem 1.5rem;
  border-radius: .65rem;
  color: white;
  background: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #104a3b; }
.button-note { margin-top: .8rem; font-size: .9375rem; color: var(--muted); }

.hero-visual {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-items: end;
  min-height: clamp(23rem, 37vw, 36rem);
  padding: 1.5rem 11% 2.5rem 1rem;
  border-radius: 1.375rem;
  background: #91a082;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% 50%;
  border-radius: inherit;
}

.guide-preview {
  width: min(62%, 15rem);
  padding: .65rem;
  border: 1px solid white;
  border-radius: 1.25rem;
  background: #f8fcfa;
  box-shadow: 0 1.3rem 2.75rem #1026184a, 0 .2rem .5rem #10261838;
}

.preview-heading, .preview-footer {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .25rem .65rem;
  font-size: .875rem;
  font-weight: 700;
}

.guide-frame {
  width: 100%;
  height: auto;
  border: 1px solid #e5ece6;
  border-radius: .7rem;
}

.preview-footer { align-items: baseline; justify-content: space-between; padding: .55rem .25rem .2rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.preview-timer { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--ink); }

figcaption {
  position: absolute;
  inset: auto 1rem .875rem auto;
  padding: .3rem .625rem;
  border-radius: .35rem;
  background: #19332a;
  color: #fff;
  font-size: .8125rem;
}

.routine { background: var(--mint); }
.routine-layout, .help { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.75rem, 6vw, 6.75rem); padding-block: clamp(3rem, 7vw, 6rem); }
.routine-heading p, .help-heading p { max-width: 33ch; margin-top: 1rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }

.routine-steps { margin: 0; padding: 0; list-style: none; }
.routine-steps li { padding: 1rem 0; border-top: 1px solid #b8cbb9; }
.routine-steps li:first-child { padding-top: .25rem; border-top: 0; }
.routine-steps li:last-child { padding-bottom: 0; }
h3, summary { font-size: 1.0625rem; font-weight: 700; }
.routine-steps p, .help-content p { margin-top: .3rem; color: var(--muted); line-height: 1.6; }

.help-content details { border-bottom: 1px solid var(--line); }
.help-content summary { padding: .95rem .25rem; cursor: pointer; }
.help-content summary::marker { color: var(--primary); }
.help-content summary:hover { color: var(--primary); }
.help-content details p { margin: 0 0 1rem; }
.help-content a { color: var(--primary); text-underline-offset: .16em; }
.privacy { margin-top: 1.5rem; }
#help, #how-it-works, #privacy { scroll-margin-top: 1.25rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-layout { padding-block: .5rem; }
.footer-layout .brand { font-size: 1.2rem; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .desktop-break { display: none; }
  .hero-copy { max-width: 37rem; }
  .hero-visual { min-height: clamp(19rem, 57vw, 32rem); }
  .intro { max-width: 37ch; }
}

@media (max-width: 39rem) {
  .hero-visual { padding-right: 8%; }
  .guide-preview { width: min(65%, 13rem); }
  .routine-layout, .help { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  h1 { font-size: 3rem; }
  .hero-visual { padding-inline: .5rem 6%; }
  .preview-heading { font-size: .8125rem; gap: .25rem; }
  .preview-footer { gap: .1rem .4rem; }
}
