/* Oakum. Mobile first: base styles target a 360px phone. */

:root {
  --bg: #f2f5f8;
  --panel: #ffffff;
  --ink: #102a43;
  --ink-soft: #1f3b5a;
  --muted: #486581;
  --line: #d9e2ec;
  --teal: #0f8b8d;
  --teal-text: #0b6b6d;
  --teal-tint: #e6f3f3;
  --amber: #f2b134;
  --amber-light: #f7c75f;
  --amber-dark: #c98d1c;
  --glass-dark: #cf9a4e;
  --glass-mid: #eac486;
  --glass-light: #f7dfb3;
  --frame: #e7eef4;
  --radius: 8px;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.125rem, 5.5vw + 0.8rem, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.625rem, 2.2vw + 1rem, 2.375rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
ol, ul { margin: 0; padding: 0; }

a { color: var(--teal-text); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

section { padding: 56px 0; }

.section-head { max-width: 33rem; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 0.5em; }

.lead { font-size: 1.125rem; line-height: 1.5; }
.hero-copy p, .thursday p, .medical p, .not .plain-list p, .q p, .closer, .cta-panel p, .evening .lead { max-width: 33rem; }
.closer { color: var(--ink); font-weight: 600; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eyebrow, .step-time, .leaflet-head, .leaflet-sub, .tile-label, .footer-col h3, figcaption, .box-meta {
  font-family: var(--mono);
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 16px;
}

figcaption {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 16px;
  max-width: 36rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--teal-tint); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-light); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn-row.center { align-items: stretch; margin-top: 32px; }

/* Header */

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 3px var(--amber), inset 0 0 0 5px var(--teal);
}

/* Hero */

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero .lead { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.9em; }
.hero-figure { padding: 24px 20px 20px; }

/* The cap, drawn once, sized by --w */

.cap { position: relative; width: var(--w, 180px); height: calc(var(--w, 180px) * 0.55); }
.cap-top {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(var(--w, 180px) * 0.27);
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 36%, var(--amber-light) 0%, var(--amber) 55%, var(--amber-dark) 100%);
  box-shadow: inset 0 -2px 0 rgba(16, 42, 67, 0.14);
  z-index: 2;
}
.ring {
  position: absolute;
  inset: 16% 8%;
  border-radius: 50%;
  border: 2px solid rgba(16, 42, 67, 0.22);
}
.is-lit .ring {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.16), 0 0 14px 2px rgba(15, 139, 141, 0.55);
}
.cap-body {
  position: absolute;
  left: 0;
  top: calc(var(--w, 180px) * 0.135);
  width: 100%;
  height: calc(var(--w, 180px) * 0.415);
  background:
    repeating-linear-gradient(90deg, rgba(16, 42, 67, 0.10) 0 2px, transparent 2px 10px),
    linear-gradient(90deg, var(--amber-dark) 0%, var(--amber) 22%, var(--amber-light) 46%, var(--amber) 70%, var(--amber-dark) 100%);
  border-radius: 0 0 50% 50% / 0 0 32% 32%;
}
.cap-lg { --w: 180px; }
.cap-md { --w: 120px; }
.cap-sm { --w: 64px; }
.cap-xs { --w: 30px; }
.cap-xs .ring, .cap-sm .ring { border-width: 1.5px; }

/* Hero scene: cap on bottle */

.scene { position: relative; width: 240px; height: 330px; margin: 0 auto; }
.scene .cap { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scene::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 210px; height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(16, 42, 67, 0.16), transparent 70%);
}
.bottle {
  position: absolute;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 206px;
  background: linear-gradient(90deg, var(--glass-dark) 0%, var(--glass-mid) 18%, var(--glass-light) 42%, var(--glass-mid) 70%, var(--glass-dark) 100%);
  border-radius: 14px 14px 22px 22px;
  box-shadow: inset 0 -10px 0 rgba(16, 42, 67, 0.06);
  z-index: 1;
}
.bottle::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: -10px;
  height: 14px;
  background: var(--glass-mid);
  border-radius: 4px 4px 0 0;
}
.label {
  position: absolute;
  left: 14px; right: 14px; top: 56px;
  height: 92px;
  background: var(--panel);
  border-radius: 4px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label span { display: block; height: 6px; border-radius: 3px; background: #c5d0dc; }
.label span:nth-child(1) { width: 52%; height: 9px; background: var(--ink); }
.label span:nth-child(2) { width: 82%; }
.label span:nth-child(3) { width: 64%; }

/* What happens at 8 p.m. */

.steps { list-style: none; display: grid; gap: 20px; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step .art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
}
.step figcaption { margin-top: 12px; }
.step-time {
  margin: 20px 0 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--teal-text);
}
.step h3 { margin-bottom: 0.4em; }
.step p, .step figcaption { max-width: 32rem; }
.evening .closer { margin-top: 32px; }

.phone {
  width: 164px; height: 180px;
  background: var(--ink);
  border-radius: 18px;
  padding: 8px;
}
.screen {
  height: 100%;
  background: var(--panel);
  border-radius: 11px;
  padding: 10px 9px;
  overflow: hidden;
}
.screen-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.bubble {
  background: var(--teal-tint);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px 10px 10px 2px;
}

/* Instructions for use */

.leaflet-panel { padding: 24px 20px; }
.leaflet-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 24px;
}
.leaflet h2 { margin-bottom: 0.25em; }
.leaflet-sub { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
.leaflet-list { list-style: none; counter-reset: leaf; }
.leaflet-list > li {
  counter-increment: leaf;
  display: grid;
  gap: 8px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.leaflet-list > li:last-child { border-bottom: 1px solid var(--line); }
.leaflet-list h3 {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0;
}
.leaflet-list h3::before { content: counter(leaf, decimal-leading-zero) "  "; color: var(--ink); }
.leaflet-body { max-width: 33rem; }
.setup { list-style: none; counter-reset: setup; display: grid; gap: 10px; }
.setup li { counter-increment: setup; position: relative; padding-left: 28px; }
.setup li::before {
  content: counter(setup, lower-alpha) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--teal-text);
  line-height: 1.75;
}

/* What it does not do */

.grid-2 { display: grid; gap: 36px; align-items: start; }
.plain-list { list-style: none; counter-reset: n; margin: 8px 0 24px; }
.plain-list li {
  counter-increment: n;
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
}
.tile .big {
  display: block;
  font-size: clamp(3rem, 12vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tile-accent .big { color: var(--teal-text); }
.tile .dots, .tile .cap { margin-top: auto; }
.tile-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* A Thursday: the windowsill */

.window {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 0;
}
.glass {
  position: relative;
  height: 230px;
  border: 8px solid var(--frame);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #8ea8c7 0%, #c6c3cf 55%, #f0c9a2 100%);
  overflow: hidden;
}
.mullion-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; background: var(--frame); }
.mullion-h { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--frame); }
.sill-bar {
  height: 14px;
  background: var(--frame);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 5px 0 var(--line);
  margin: 0 -8px 26px;
}
.objects {
  position: absolute;
  left: 20px; right: 20px;
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  z-index: 2;
}
.plant { position: relative; width: 56px; height: 96px; }
.pot {
  position: absolute;
  left: 10px; bottom: 0;
  width: 36px; height: 30px;
  background: #c98a6a;
  border-radius: 3px 3px 8px 8px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}
.leaf { position: absolute; background: #5f9470; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.leaf.l1 { width: 20px; height: 30px; left: 8px; bottom: 28px; transform: rotate(-24deg); }
.leaf.l2 { width: 20px; height: 34px; left: 20px; bottom: 34px; background: #4f8463; }
.leaf.l3 { width: 20px; height: 30px; left: 30px; bottom: 28px; transform: rotate(24deg); }
.leaf.l4 { width: 16px; height: 22px; left: 22px; bottom: 54px; background: #6ea47f; }
.mini-bottle { position: relative; width: 46px; height: 92px; }
.mini-bottle .cap { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; }
.mb-body {
  position: absolute;
  left: 5px; right: 5px; top: 12px; bottom: 0;
  background: linear-gradient(90deg, var(--glass-dark), var(--glass-light) 45%, var(--glass-dark));
  border-radius: 5px 5px 8px 8px;
}
.mb-body::after {
  content: "";
  position: absolute;
  left: 5px; right: 5px; top: 26px;
  height: 28px;
  background: var(--panel);
  border-radius: 2px;
}
.jar { position: relative; width: 36px; height: 72px; }
.glass-jar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px 4px 8px 8px;
}
.pen { position: absolute; bottom: 20px; width: 5px; height: 50px; border-radius: 3px; }
.pen.p1 { left: 8px; background: var(--ink); transform: rotate(-8deg); }
.pen.p2 { left: 16px; background: var(--teal); height: 54px; }
.pen.p3 { left: 24px; background: var(--amber); transform: rotate(9deg); }

/* Not a medical device: the box */

.box {
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.10);
}
.box .cap { margin: 0 auto; }
.box-top, .box-bottom { display: flex; flex-direction: column; gap: 6px; }
.box-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.box-meta { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.box-line { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.barcode {
  display: block;
  width: 96px; height: 26px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px);
}

/* Questions */

.qa { display: grid; gap: 16px; }
.q {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.q h3 { margin-bottom: 0.5em; }

/* Final call */

.cta-panel {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 40px 24px;
}
.cta-panel h2 { color: #ffffff; }
.cta-panel p { color: #d9e2ec; }
.cta-panel .btn-row { margin-top: 24px; }
.cta-panel .btn:focus-visible { outline-color: var(--amber); }

/* Footer */

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; max-width: 22rem; }
.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 4px;
}
.footer-col ul { list-style: none; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--teal-text); text-decoration: underline; }
.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-legal p { margin: 0; }
.footer-legal a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Wider phones and small tablets */

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row.center { justify-content: center; }
  .hero-figure { padding: 32px 28px 24px; }
  .leaflet-panel { padding: 40px; }
  .step { display: grid; grid-template-columns: 190px 1fr; grid-template-rows: auto auto 1fr; gap: 6px 24px; align-items: start; }
  .step figure { grid-row: 1 / span 3; }
  .step > :not(figure) { grid-column: 2; }
  .step .art { height: 200px; }
  .step-time { margin-top: 4px; }
  .q { padding: 28px; }
  .cta-panel { padding: 56px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}

/* Laptops and up */

@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
  section { padding: 88px 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
  .hero-figure { padding: 40px 32px 28px; }
  .leaflet-list > li { grid-template-columns: 200px 1fr; }
  .leaflet-list h3 { padding-top: 3px; }
  .step { grid-template-columns: 260px 1fr; }
  .qa { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; }
  .grid-2 > figure { position: sticky; top: 32px; }
  .grid-2-reverse > figure { order: -1; }
  .tiles { gap: 16px; }
  .tile { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
  .footer-brand { grid-column: auto; }
}

/* Wide laptops: the three steps sit side by side */

@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { display: block; padding: 16px; }
  .step p { font-size: 0.9375rem; }
  .step figcaption { font-size: 0.78rem; }
  .step .art { height: 190px; }
  .step-time { margin-top: 18px; }
}
