/* mathewkovalchick.com shared styles
   Mobile first. One accent (pool-lane blue). Archivo throughout. */

:root {
  --paper: #f4f6f6;
  --surface: #ffffff;
  --ink: #14202b;
  --slate: #566573;
  --rule: #d6dde0;
  --accent: #0e6a8a;
  --accent-dark: #0a5068;
  --accent-tint: #e2eef2;
  --max: 1160px;
  --gutter: 20px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
@media (min-width: 900px) { body { font-size: 19px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
p { margin: 0 0 14px; }

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

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
.wide { font-stretch: 125%; font-variation-settings: "wdth" 125; }
.display {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h1.page-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1;
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 750;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  margin-bottom: 14px;
}
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.lead { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.5; color: var(--ink); max-width: 36em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.brand-name { font-weight: 750; font-size: 17px; }
.brand-cred { color: var(--slate); font-weight: 500; font-size: 13px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 24px; white-space: nowrap; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-soon {
  color: #8a97a2;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  cursor: default;
}
.nav-soon small {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: 2px;
}
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 29px; }
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }

@media (max-width: 759px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 12px;
    border-top: 1px solid var(--rule);
  }
  .site-header.open .nav { display: flex; }
  .nav a {
    font-size: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-soon { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
  .nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 650; border-bottom-color: var(--rule); }
}
@media (min-width: 760px) {
  .brand { flex-direction: row; align-items: baseline; gap: 6px; }
  .brand-name { font-size: 18px; }
  .brand-cred { font-size: 17px; }
  .site-header .wrap { min-height: 68px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 30px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--surface); border-color: var(--ink); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Home hero ---------- */
.hero { padding: 32px 0 32px; }
.hero-grid { display: grid; gap: 28px; }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 14px; }
.hero-text p:not(.lead) { max-width: 36em; color: var(--slate); }
.hero .btn-row { margin-top: 26px; }
.hero-photo { margin: 0; }
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: var(--rule);
}
@media (max-width: 899px) {
  .hero-photo { max-width: 300px; order: -1; }
  .portrait { aspect-ratio: 1 / 1; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }
  .hero-text p:not(.lead) { font-size: 20px; }
}

/* ---------- The 365 counter (signature element) ---------- */
.counter {
  background: var(--ink);
  color: #fff;
  padding: 34px 0 30px;
}
.counter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 18px;
}
.day {
  margin: 0;
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}
.day small { font-size: 0.36em; font-weight: 600; color: #b9c6cf; letter-spacing: 0; margin-left: 4px; }
.counter-note { color: #c9d4db; font-size: 19px; max-width: 30em; margin: 0; }
.track {
  position: relative;
  height: 46px;
  border-radius: 6px;
  background-color: rgba(255,255,255,0.08);
  /* one mark per week */
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.26) 0 1px,
    transparent 1px calc(100% / 52.14)
  );
  overflow: hidden;
}
.track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  box-shadow: inset -3px 0 0 #fff;
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) { .track-fill { transition: none; } }
.track-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 16px;
  color: #c9d4db;
}
.track-ends span:last-child { text-align: right; }
@media (min-width: 900px) { .counter { padding: 52px 0 44px; } .track { height: 56px; } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 84px 0; } }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .split .prose p { font-size: 21px; }
}
.split .prose p { max-width: 34em; }

.creds { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.creds li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.creds strong { display: block; font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.3; }
.creds span { color: var(--slate); font-size: 17px; }

/* What I'm sharing */
.shelf { display: grid; gap: 16px; margin-top: 28px; }
.shelf-feature {
  display: grid;
  gap: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
}
.shelf-feature h3 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.shelf-feature p { color: #d7e9ef; margin: 0; max-width: 30em; font-size: clamp(18px, 1.8vw, 21px); }
.shelf-feature .go { font-weight: 650; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.shelf-feature:hover { background: var(--accent-dark); }
.shelf-soon { display: grid; gap: 16px; }
.soon {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.soon h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.soon p { color: var(--slate); margin: 0; font-size: 18px; }
.soon .when { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent-dark); }
@media (min-width: 900px) {
  .shelf { grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .shelf-soon { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .shelf-soon .soon { padding: 22px 22px; }
  .shelf-soon .soon h3 { font-size: 22px; }
  .shelf-soon .soon p { font-size: 16px; }
  .shelf-feature { padding: 40px; align-content: space-between; min-height: 320px; }
}

/* Follow */
.follow-head { display: grid; gap: 6px; }
.follow-head .lead { color: var(--slate); margin: 0; }
.follow-links { display: grid; gap: 14px; margin-top: 28px; }
.follow-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.follow-links .ico { width: 44px; height: 44px; object-fit: contain; flex: none; }
.follow-links .txt { display: flex; flex-direction: column; }
.follow-links .name { font-size: 24px; font-weight: 750; line-height: 1.2; }
.follow-links .handle { font-size: 17px; color: var(--slate); }
.follow-links a:hover { border-color: var(--accent); box-shadow: inset 0 -4px 0 var(--accent); }
@media (min-width: 900px) {
  .follow-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .follow-links a { min-height: 120px; padding: 28px; }
}

/* ---------- Stack page ---------- */
.page-head { padding: 36px 0 0; }
.page-head-grid { display: grid; gap: 22px; }
.page-head .lead { margin-top: 18px; }
.page-head-text p:not(.lead) { color: var(--slate); max-width: 36em; }
.notice {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--slate);
  margin: 0 0 12px;
}
.notice strong { color: var(--ink); }
@media (min-width: 900px) {
  .page-head { padding: 72px 0 0; }
  .page-head-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
}

.cautions {
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 22px 22px 12px;
  margin: 32px 0 0;
}
.cautions h2 { font-size: 26px; margin-bottom: 10px; }
.cautions ul { margin: 0; padding-left: 20px; }
.cautions li { margin-bottom: 10px; }
@media (min-width: 900px) {
  .cautions { padding: 30px 36px 18px; }
  .cautions ul { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 40px; }
}

/* Daily routine table */
.routine { margin: 40px 0 0; }
.routine h2 { margin-bottom: 6px; }
.routine > p { color: var(--slate); margin-bottom: 18px; }
.routine table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.routine thead th {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
  background: var(--paper);
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
}
.routine tbody th, .routine tbody td { padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--rule); text-align: left; }
.routine tbody tr:last-child th, .routine tbody tr:last-child td { border-bottom: 0; }
.routine tbody th { font-weight: 700; white-space: nowrap; width: 1%; }
@media (max-width: 640px) {
  .routine thead { display: none; }
  .routine tbody tr { display: block; border-bottom: 1px solid var(--rule); padding: 14px 18px; }
  .routine tbody tr:last-child { border-bottom: 0; }
  .routine tbody th, .routine tbody td { display: block; padding: 0; border: 0; width: auto; white-space: normal; }
  .routine tbody th { margin-bottom: 2px; color: var(--accent-dark); }
}

.product-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.product-index a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.product-index a:hover { border-color: var(--ink); }

.products { margin: 28px 0 56px; }
.product {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  scroll-margin-top: 90px;
}
.product-photo { background: var(--paper); }
.product-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 45%;
  background: var(--rule);
}
.product-body { padding: 22px 22px 24px; }
.product-body h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; margin-bottom: 18px; }
.parts { display: grid; gap: 14px; margin-bottom: 22px; }
.part .label { display: block; font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
.part.mine { background: var(--accent-tint); border-radius: 8px; padding: 12px 14px; }
.part.mine .label { color: var(--accent-dark); }
.part.caution { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; font-size: 17px; }
.product .btn { width: 100%; }
@media (min-width: 760px) {
  .product { grid-template-columns: 300px 1fr; }
  .product-photo img { aspect-ratio: 4 / 5; position: sticky; top: 90px; }
  .product .btn { width: auto; }
}
@media (min-width: 1000px) {
  .product { grid-template-columns: 360px 1fr; }
  .product-body { padding: 34px 40px 36px; }
  .parts { grid-template-columns: 1fr 1fr; gap: 18px 36px; }
  .part.full { grid-column: 1 / -1; }
}

@media (min-width: 760px) { .product.no-photo { grid-template-columns: 1fr; } }

/* ---------- Disclaimer page ---------- */
.legal { display: grid; gap: 8px; padding-bottom: 64px; }
.legal-toc { display: none; }
.legal-body { max-width: 42em; }
.legal-body h2 { font-size: 24px; margin: 40px 0 10px; scroll-margin-top: 90px; }
.legal-body ul { padding-left: 20px; }
@media (min-width: 900px) {
  .legal { grid-template-columns: 240px 1fr; gap: 72px; }
  .legal-toc { display: block; position: sticky; top: 100px; align-self: start; margin-top: 44px; }
  .legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
  .legal-toc a { display: block; padding: 6px 0 6px 16px; color: var(--slate); text-decoration: none; font-size: 15px; }
  .legal-toc a:hover { color: var(--ink); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c6cf;
  padding: 44px 0 40px;
  font-size: 15px;
  line-height: 1.6;
}
.footer-grid { display: grid; gap: 28px; }
.footer-brand strong { display: block; color: #fff; font-size: 20px; font-weight: 750; }
.footer-brand nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.site-footer a { color: #fff; }
.footer-legal p { margin: 0 0 10px; max-width: 60em; }
.footer-legal .meta { color: #8797a3; margin-top: 16px; }
@media (min-width: 900px) {
  .site-footer { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 2fr; gap: 72px; }
}

/* ---------- Phone refinements ---------- */
@media (max-width: 759px) {
  .hero { padding: 28px 0 32px; }
  .hero-grid { gap: 22px; }
  .hero-photo { width: min(200px, 56vw); max-width: none; margin: 0 auto; order: -1; }
  .portrait { aspect-ratio: 1 / 1; border-radius: 50%; object-position: 50% 6%; }
  .hero-text { text-align: center; }
  .hero-text .lead, .hero-text p { margin-left: auto; margin-right: auto; }
  .hero .display { font-size: clamp(38px, 11vw, 52px); margin-bottom: 18px; }
  .hero .btn-row { margin-top: 22px; }
  .hero .btn-row .btn { width: 100%; }

  .counter { padding: 28px 0 26px; }
  .counter-head { margin-bottom: 14px; }
  .counter-note { font-size: 17px; }
  .track { height: 36px; }
  .track-ends { font-size: 14px; }

  .section { padding: 40px 0; }
  .split { gap: 22px; }

  .follow-links { gap: 10px; margin-top: 18px; }
  .follow-links a { min-height: 60px; padding: 12px 16px; gap: 12px; border-radius: 12px; }
  .follow-links .ico { width: 28px; height: 28px; }
  .follow-links .name { font-size: 18px; }
  .follow-links .handle { font-size: 14px; }

  .product-photo img { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: var(--paper); }
  .product-body { padding: 18px 18px 20px; }
  .product-index { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .product-index::-webkit-scrollbar { display: none; }
  .product-index a { white-space: nowrap; }
}

@media (max-width: 759px) {
  .shelf-soon { grid-template-columns: 1fr 1fr; gap: 10px; }
  .soon { padding: 16px; border-radius: 12px; }
  .soon h3 { font-size: 18px; }
  .soon p { font-size: 15px; }
  .soon .when { margin-top: 10px; font-size: 13px; }
}
@media (min-width: 760px) and (max-width: 1000px) { .nav { gap: 18px; } .nav-soon small { display: none; } }

/* ---------- Jump buttons: compact grid on phones ---------- */
@media (max-width: 759px) {
  .product-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    margin: 24px 0 0;
    padding: 0;
  }
  .product-index a {
    display: block;
    text-align: center;
    padding: 11px 8px;
    border-radius: 10px;
    font-size: 15px;
    white-space: normal;
  }
}
@media (min-width: 760px) { .product-index a { padding: 9px 16px; font-size: 15px; } }

/* ---------- References ---------- */
.refs { border-top: 1px solid var(--rule); padding: 40px 0 64px; }
.refs > p { color: var(--slate); margin-bottom: 20px; }
.refs-grid { display: grid; gap: 24px; }
.refs h3 { font-size: 18px; margin-bottom: 8px; }
.refs ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.refs li { margin-bottom: 8px; }
.refs a { color: var(--ink); text-decoration-color: var(--rule); }
.refs a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (min-width: 900px) { .refs-grid { grid-template-columns: 1fr 1fr; gap: 28px 56px; } }

/* ---------- Color and story (v14) ---------- */
.hero { background: linear-gradient(180deg, #e3eef2 0%, var(--paper) 100%); }

.story { background: var(--surface); }
.story-grid { display: grid; gap: 28px; align-items: center; }
.story-photo { margin: 0; }
.story-photo img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule);
}
.story-photo figcaption { font-size: 15px; color: var(--slate); margin-top: 12px; }
.story-text .prose { margin-bottom: 24px; }
.story-text .prose p { max-width: 34em; }

.follow { background: var(--accent-tint); }
.follow .follow-head .lead { color: var(--ink); }
.section.follow, .section.story { border-top: 0; }
.follow-links a { border-color: #c7dbe2; }

@media (max-width: 759px) {
  .portrait { box-shadow: 0 0 0 5px var(--surface), 0 0 0 8px var(--accent); }
  .story-photo { max-width: 340px; margin: 0 auto; }
}
@media (min-width: 760px) {
  .hero-photo { position: relative; }
  .hero-photo::before {
    content: "";
    position: absolute;
    inset: 20px -20px -20px 20px;
    background: var(--accent);
    border-radius: 14px;
  }
  .portrait { position: relative; }
  .story-grid { grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 64px; }
}
@media (min-width: 900px) {
  .story-grid { gap: 80px; }
  .story-photo img { max-height: 640px; object-fit: cover; }
}

/* ---------- Top strip (v15) ---------- */
.topstrip { background: var(--accent); color: #fff; font-size: 14px; }
.topstrip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topstrip strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.topstrip a { color: #fff; font-weight: 650; text-underline-offset: 3px; white-space: nowrap; }
.topstrip a:hover { color: #d7e9ef; }
@media (max-width: 759px) { .strip-more { display: none; } }
@media (min-width: 760px) { .topstrip { font-size: 15px; } }

/* ---------- Day 1 photo in the counter ---------- */
.counter-grid {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-areas: "photo head" "track track" "ends ends";
  column-gap: 18px;
  align-items: center;
}
.day1 { grid-area: photo; margin: 0 0 14px; position: relative; }
.counter-grid .counter-head { grid-area: head; margin-bottom: 14px; }
.counter-grid .track { grid-area: track; }
.counter-grid .track-ends { grid-area: ends; }
.day1 img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,0.18); }
.day1 figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
}
@media (max-width: 759px) {
  .counter-grid .counter-head { display: block; }
  .counter-grid .day { font-size: 44px; }
  .counter-grid .counter-note { font-size: 15px; margin-top: 4px; }
}
@media (min-width: 760px) {
  .counter-grid {
    grid-template-columns: 180px 1fr;
    grid-template-areas: "photo head" "photo track" "photo ends";
    column-gap: 40px;
  }
  .day1 { margin: 0; align-self: stretch; }
  .day1 img { height: 100%; aspect-ratio: auto; min-height: 180px; }
  .day1 figcaption { font-size: 13px; left: 10px; bottom: 10px; }
}
