/* ==========================================================================
   Daymark
   One stylesheet, no framework, no external font requests.

   Visual idea: a morning trail journal — cool pine greens, mist surfaces,
   a warm copper accent, display serif for the brand and headlines, soft
   motion instead of hard clinical rules.
   ========================================================================== */

:root {
  --ink:        #15241f;
  --ink-soft:   #3d524a;
  --ink-faint:  #6b8177;
  --ink-invert: #f2efe6;

  --page:       #e7eee9;
  --page-2:     #dce6df;
  --surface:    #f7f5ef;
  --surface-2:  #eef3ef;

  --pine:       #1f4d40;
  --pine-deep:  #14352c;
  --leaf:       #2f7a55;
  --leaf-tint:  #d9ebe1;
  --copper:     #c46a3a;
  --copper-soft:#e8a35c;
  --sun:        #e8a35c;

  --rule:       #c9d6ce;
  --rule-soft:  #d9e3dc;
  --rule-hard:  #a8bdb2;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --measure: 68ch;
  --r: 14px;
  --r-sm: 8px;
  --head-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(232, 163, 92, .18), transparent 55%),
    radial-gradient(900px 480px at 92% 8%, rgba(47, 122, 85, .14), transparent 50%),
    linear-gradient(180deg, var(--page) 0%, var(--page-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Soft paper grain */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .55em;
  font-weight: 600;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.2vw, 3.55rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem); margin-top: 1.9em; }
h3 { font-size: 1.2rem; margin-top: 1.7em; font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; margin-top: 1.4em; font-family: var(--sans); font-weight: 700; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.05em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }

strong, b { font-weight: 700; }
em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .9em;
}

.byline {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 600;
}
.byline span + span::before { content: " · "; color: var(--rule-hard); }

.fineprint {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.t0 { margin-top: 0; }
.b0 { margin-bottom: 0; }
.gap-t { margin-top: 1.5em; }

a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(31, 77, 64, .28);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
a:hover { text-decoration-color: var(--pine); color: var(--pine-deep); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.measure { max-width: var(--measure); }

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--pine);
  color: #fff;
  padding: 12px 18px;
  font-size: .85rem;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.jump:focus { left: 12px; top: 12px; }

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 239, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 214, 206, .7);
}

.masthead-row {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.wordmark-mark { width: 34px; height: 34px; display: block; flex: none; }

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark-text strong {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--pine-deep);
}
.wordmark-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 3px;
  font-weight: 700;
}

.mainnav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav li { margin: 0; }
.mainnav a {
  display: block;
  padding: 8px 11px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.mainnav a:hover { color: var(--pine); background: var(--leaf-tint); }
.mainnav a[aria-current="page"] {
  color: var(--pine-deep);
  background: var(--leaf-tint);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.menu-bars { position: relative; width: 15px; height: 9px; display: block; }
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}
.menu-bars::before { top: 0; box-shadow: 0 3.75px 0 var(--ink); }
.menu-bars::after { bottom: 0; }

/* Page rail --------------------------------------------------------------- */

.pagerail {
  position: sticky;
  top: var(--head-h);
  z-index: 35;
  background: rgba(238, 243, 239, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.pagerail-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pagerail a {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pagerail a b {
  font-weight: 700;
  color: var(--copper);
  font-size: .78rem;
}
.pagerail a:hover { color: var(--pine); background: rgba(255,255,255,.45); }
.pagerail a.is-here {
  color: var(--pine-deep);
  border-bottom-color: var(--leaf);
  background: rgba(255,255,255,.65);
}

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */

.pagehead {
  padding: 48px 0 36px;
}
.pagehead h1 { margin-bottom: .35em; max-width: 18ch; }
.pagehead .lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 0;
}
.pagehead .byline { margin-top: 1.4em; }

.crumbs { margin-bottom: 1.35em; font-size: .78rem; font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; color: var(--ink-faint); }
.crumbs li + li::before { content: "› "; color: var(--rule-hard); margin-right: 8px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink-invert);
  background:
    radial-gradient(ellipse 80% 70% at 78% 28%, rgba(232, 163, 92, .28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 18% 80%, rgba(47, 122, 85, .35), transparent 60%),
    linear-gradient(155deg, #14352c 0%, #1f4d40 42%, #245748 100%);
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 53, 44, .15) 0%, rgba(20, 53, 44, .55) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 38px,
      rgba(242, 239, 230, .03) 38px,
      rgba(242, 239, 230, .03) 39px
    );
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 163, 92, .55) 0%, rgba(232, 163, 92, .18) 32%, transparent 62%);
  animation: sun-rise 1.4s var(--ease) both;
  pointer-events: none;
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg, transparent, rgba(15, 35, 28, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C180 40 320 150 480 90 C640 30 760 140 920 80 C1040 40 1120 100 1200 70 L1200 180 L0 180 Z' fill='%2314352c'/%3E%3Cpath d='M0 140 C220 90 360 160 520 120 C700 70 820 150 980 110 C1100 85 1160 130 1200 115 L1200 180 L0 180 Z' fill='%231a4036'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 2rem + 5vw, 5.6rem);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0 0 .35em;
  color: #f7f5ef;
  animation: rise .9s var(--ease) .1s both;
}

.hero h1 {
  color: #f7f5ef;
  max-width: 16ch;
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.15rem);
  font-weight: 500;
  margin: 0 0 .7em;
  animation: rise .9s var(--ease) .22s both;
}

.hero-lede {
  max-width: 42ch;
  font-size: 1.08rem;
  color: rgba(242, 239, 230, .86);
  margin: 0 0 1.5em;
  animation: rise .9s var(--ease) .34s both;
}

.hero .btn-row { animation: rise .9s var(--ease) .46s both; }

@keyframes sun-rise {
  from { opacity: 0; transform: translateY(24px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Buttons ----------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--copper);
  color: #fff;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover {
  background: #b35a2f;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(242, 239, 230, .45);
  color: #f7f5ef;
}
.btn-ghost:hover {
  background: rgba(242, 239, 230, .1);
  border-color: #f7f5ef;
  color: #fff;
}
.btn-line {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}
.btn-line:hover {
  background: var(--leaf-tint);
  color: var(--pine-deep);
}

/* Notice strip ------------------------------------------------------------ */

.strip {
  background: var(--surface);
  border-block: 1px solid var(--rule-soft);
  padding: 16px 0;
}
.strip p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 92ch;
}
.strip strong { color: var(--ink); }

/* Bands ------------------------------------------------------------------- */

.band {
  padding: 64px 0;
}
.band-mist {
  background: rgba(247, 245, 239, .55);
  border-block: 1px solid var(--rule-soft);
}
.band-head {
  max-width: 58ch;
  margin-bottom: 2rem;
}
.band-head h2 { margin-top: 0; }
.band-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Habit tiles (interaction containers, not decorative cards) -------------- */

.habit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.habit-grid > li { margin: 0; }

.habit-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 22px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.habit-tile:hover {
  border-color: var(--leaf);
  background: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.habit-tile strong {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--pine-deep);
  letter-spacing: -.015em;
}
.habit-tile span {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}
.habit-tile .tile-go {
  margin-top: auto;
  padding-top: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Figures ----------------------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.figure {
  padding: 8px 4px;
}
.figure-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem);
  color: var(--pine);
  letter-spacing: -.02em;
  margin-bottom: .35em;
  line-height: 1;
}
.figure p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* Guide list -------------------------------------------------------------- */

.guidelist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.guidelist li { margin: 0; border-bottom: 1px solid var(--rule); }
.guidelist a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
}
.guidelist a:hover { background: rgba(247, 245, 239, .7); }
.guidelist .n {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--copper);
  font-weight: 600;
}
.guidelist strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--pine-deep);
  margin-bottom: .25em;
}
.guidelist .note {
  display: block;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 400;
}
.guidelist .go {
  color: var(--leaf);
  font-size: 1.3rem;
  align-self: center;
}

/* Callouts ---------------------------------------------------------------- */

.note-box {
  border-radius: var(--r);
  padding: 20px 22px;
  background: var(--leaf-tint);
  border: 1px solid #b7d4c4;
  margin: 1.4em 0;
}
.note-box-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .55em;
}
.note-box-warn {
  background: #f8ebe3;
  border-color: #e4c2ad;
}
.note-box-warn .note-box-label { color: var(--copper); }

.panel {
  border-radius: var(--r);
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.2em 0;
}

.table-scroll { overflow-x: auto; margin: 1.3em 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: .6em;
  color: var(--ink-soft);
  font-size: .85rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
thead th {
  background: var(--pine);
  color: #f7f5ef;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}
tbody th { font-weight: 700; color: var(--pine); white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.crosslist { list-style: none; padding: 0; }
.crosslist li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.crosslist li:last-child { border-bottom: 0; }

/* Footer ------------------------------------------------------------------ */

.footer {
  margin-top: 20px;
  background: var(--pine-deep);
  color: rgba(242, 239, 230, .82);
  padding: 56px 0 28px;
}
.footer a {
  color: #f7f5ef;
  text-decoration-color: rgba(247, 245, 239, .28);
}
.footer a:hover { text-decoration-color: #f7f5ef; }
.footer-brand {
  max-width: 48ch;
  margin-bottom: 2.2em;
}
.footer-brand .wordmark-text strong { color: #f7f5ef; }
.footer-brand .wordmark-text em { color: var(--copper-soft); }
.footer-brand p {
  margin: 1em 0 0;
  font-size: .95rem;
  color: rgba(242, 239, 230, .72);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 2.4em;
}
.footer h2 {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin: 0 0 1em;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 .55em; }
.footer a { text-decoration: none; font-size: .95rem; }
.footer a:hover { text-decoration: underline; }
.footer-end {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 239, .12);
  font-size: .85rem;
  color: rgba(242, 239, 230, .55);
}
.footer-end p { margin: 0; }

.consent-link {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(242, 239, 230, .7);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-link:hover { color: #f7f5ef; }

/* Consent panel ----------------------------------------------------------- */

.consent {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(21, 36, 31, .18);
}
.consent-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .6em;
}
.consent p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 1em;
}
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn-ghost {
  border-color: var(--rule-hard);
  color: var(--ink);
}
.consent .btn-ghost:hover {
  background: var(--leaf-tint);
  color: var(--pine-deep);
  border-color: var(--leaf);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .habit-grid { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .guidelist a { grid-template-columns: 2.6rem 1fr auto; }
}

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .mainnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 10px 24px 18px;
  }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; align-items: stretch; }
  .mainnav a { border-radius: var(--r-sm); padding: 12px 14px; }
  .masthead-row { position: relative; }
  .hero { min-height: min(88vh, 680px); padding-bottom: 48px; align-items: flex-end; }
  .hero-sky { width: 70vw; height: 70vw; right: -18%; top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .band { padding: 48px 0; }
  .habit-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .guidelist a { grid-template-columns: 2.2rem 1fr; }
  .guidelist .go { display: none; }
  .pagehead h1 { max-width: none; }
  .hero-brand { font-size: clamp(2.8rem, 12vw, 3.6rem); }
}
