/* drmichaelsa.com: Ink & Tide
   Layout: an editorial column on wide Paper margins. The Michaels Index runs
   full width; Ink bands carry the large Tide numerals. Roughly 70% Paper or
   White, 20% Ink, under 10% turquoise. Tide never carries text on a light
   background; Deep Tide does that job. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: Ink & Tide */
  --ink: #1C2024;
  --ink-raised: #262B30;
  --ink-rule: #3A4047;
  --paper: #F5F3EF;
  --white: #FFFFFF;
  --mist: #E3ECEE;
  --tide: #3FB8AF;
  --deep-tide: #17625E;
  --deep-tide-hover: #0F4B48;
  --slate: #5A6068;
  --line: #D9DCDA;
  --on-ink: #F5F3EF;
  --on-ink-muted: #BCC4C8;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --text: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-label: 0.75rem;                                   /* 12px, capitals */
  --fs-small: 0.9375rem;                                 /* 15px, captions */
  --fs-body: 1.125rem;                                   /* 18px */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);     /* 20 to 24px */
  --fs-h3: 2rem;                                         /* 32px, smallest display size */
  --fs-h2: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);       /* 36 to 56px */
  --fs-h1: clamp(3rem, 1.6rem + 5.4vw, 6.5rem);          /* 48 to 104px */
  --fs-hero: clamp(4rem, 1.2rem + 9.6vw, 9.5rem);        /* 64 to 152px */
  --fs-numeral: clamp(6rem, 3rem + 11vw, 13rem);

  /* Space */
  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: 1240px;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --measure: 68ch;
  --header-h: 76px;

  /* Shape and flow: rounded edges, and sections that fade into one another */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: clamp(28px, 3.5vw, 48px);
  --inset: clamp(8px, 1.2vw, 16px);   /* gap around dark islands */
  --fade: clamp(48px, 7vw, 112px);    /* how far light bands fade into the page */

  --page-bg: var(--paper);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-care { --page-bg: var(--mist); }

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.display {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.label {
  font-family: var(--text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.125em;       /* 1.5px at 12px */
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--slate);
}

.lead { font-size: var(--fs-lead); line-height: 1.5; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Links and focus ---------- */

a { color: inherit; }

.prose a:not(.btn), a.link {
  color: var(--deep-tide);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  background: linear-gradient(var(--tide), var(--tide)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease-out), text-decoration-color 0.2s;
}
.prose a:not(.btn):hover, a.link:hover {
  background-size: 100% 2px;
  text-decoration-color: transparent;
}

.band-ink .prose a:not(.btn), .band-ink a.link { color: var(--on-ink); }

:focus-visible {
  outline: 2px solid var(--deep-tide);
  outline-offset: 3px;
  border-radius: 8px;
}
.band-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--tide); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--deep-tide); color: var(--white); }
.btn-primary:hover { background: var(--deep-tide-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.875rem; }

.band-ink .btn-primary { background: var(--tide); color: var(--ink); }
.band-ink .btn-primary:hover { background: var(--on-ink); }
.band-ink .btn-outline { border-color: var(--on-ink); color: var(--on-ink); }
.band-ink .btn-outline:hover { background: var(--on-ink); color: var(--ink); }

.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px -24px rgba(28, 32, 36, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.lockup .ma { height: 30px; width: auto; color: var(--ink); overflow: visible; }
.ma-stop { fill: var(--deep-tide); }
.band-ink .ma-stop, .site-footer .ma-stop { fill: var(--tide); }
.lockup-rule { width: 1px; align-self: stretch; margin-block: 8px; background: var(--line); }
.lockup-name {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul a, .lockup-name, .header-inner .btn { white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Shop sits beside Get in touch on wide screens and beside Menu on narrow ones. */
.header-actions { display: contents; }
.shop-quick { display: none; }
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav ul a {
  display: inline-block;
  padding-block: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--tide), var(--tide)) 0 calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.site-nav ul a:hover, .site-nav ul a[aria-current] { background-size: 100% 2px; }
.site-nav ul a[aria-current] { background-image: linear-gradient(var(--ink), var(--ink)); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 0.875rem/1 var(--text);
  letter-spacing: 0.04em;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .shop-quick { display: inline-flex; }
  .nav-shop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--page-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 40px -28px rgba(28, 32, 36, 0.5);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav ul a { font-size: 1.25rem; padding-block: 12px; }
  .lockup-name { font-size: 0.6875rem; }
}
@media (max-width: 1000px) { .header-actions { flex-shrink: 0; } }
/* Phones: the monogram alone, so Shop and Menu fit beside it. */
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .lockup-rule, .lockup-name { display: none; }
}

/* ---------- Photograph placeholders ----------
   No stock and no generated images. Each frame names the shot from the
   two-day shoot that fills it; swap the frame for an <img> after the shoot. */

.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot-frame {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 5);
  max-width: 100%;
  background: var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  isolation: isolate;
}
.page-care .shot-frame, .band-mist .shot-frame { background: var(--white); }
.shot-frame.has-photo { background: var(--ink); }
.shot-frame.has-photo::before { content: none; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }
.shot-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 14px);
  pointer-events: none;
}
.shot-tag {
  position: absolute;
  top: 26px; left: 26px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  max-width: calc(100% - 52px);
}
.shot-mark {
  width: 46%;
  margin: 0 26px 30px 0;
  color: var(--line);
  opacity: 0.9;
}
.shot-mark .ma-stop { fill: currentColor; }
.shot figcaption { color: var(--slate); }

.band-ink .shot-frame { background: var(--ink-raised); }
.band-ink .shot-frame::before { border-color: var(--ink-rule); }
.band-ink .shot-tag, .band-ink .shot figcaption, .band-ink .portrait figcaption { color: var(--on-ink-muted); }
.band-ink .shot-mark { color: var(--ink-rule); }

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-grid > :first-child { container-type: inline-size; }
/* Cap the name at the column width. In Newsreader "Aibangbee." sets about 4.9
   times its font size; change --hero-fit with the display face. */
.hero-name { font-size: min(var(--fs-hero), var(--hero-fit, 20cqi)); line-height: 0.92; letter-spacing: -0.025em; }
.hero-name .dr {
  display: block;
  font-style: italic;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0.1em;
}
.hero-name .line { display: block; }
.stop { color: var(--deep-tide); }
.band-ink .stop { color: var(--tide); }
.hero-descriptor { margin-top: clamp(24px, 3vw, 40px); max-width: 30ch; font-size: var(--fs-lead); line-height: 1.45; }
.hero .btn-row { margin-top: 32px; }
.hero .shot { align-self: stretch; }
.hero .shot-frame { --ratio: 3 / 4; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .shot { max-width: 420px; }
}

/* ---------- Pathways ---------- */

.band-mist { background: var(--mist); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .label { color: var(--on-ink-muted); }

.pathways { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.pathways-inner { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 32px; align-items: center; }
.pathways h2 { font-size: var(--fs-h3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--deep-tide); color: var(--deep-tide); }
.chip .arrow { color: var(--deep-tide); }

@media (max-width: 760px) { .pathways-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- The Michaels Index ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section-head h2 { font-size: var(--fs-h2); margin-top: 12px; }
.section-head p { color: var(--slate); }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

.index-list { list-style: none; border-top: 1px solid var(--ink); }
.index-row { border-bottom: 1px solid var(--line); }
.index-link {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 13rem) 2rem;
  gap: 8px 28px;
  align-items: center;
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  text-decoration: none;
}
.index-num {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--deep-tide);
  font-variant-numeric: lining-nums tabular-nums;
}
.index-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  justify-self: start;
  background: linear-gradient(var(--tide), var(--tide)) 0 100% / 0 3px no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.index-desc { font-size: 1.0625rem; line-height: 1.5; }
.index-org { color: var(--slate); }
.index-arrow { justify-self: end; font-size: 1.5rem; color: var(--deep-tide); transition: transform 0.3s var(--ease-out); }

.index-photo {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: calc(2rem + 28px + 13rem / 2);
  width: 150px;
  pointer-events: none;
  opacity: 0;
  transform: translate(50%, -46%) rotate(-2deg) scale(0.94);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.index-photo .shot-frame { border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(28, 32, 36, 0.45); }
.index-photo .shot-tag { top: 16px; left: 16px; font-size: 0.5625rem; max-width: calc(100% - 32px); }
.index-photo .shot-frame::before { inset: 8px; border-radius: calc(var(--radius) - 8px); }
.index-photo .shot-mark { margin: 0 14px 16px 0; }

.index-link:hover .index-name, .index-link:focus-visible .index-name { background-size: 100% 3px; transform: translateX(6px); }
.index-link:hover .index-arrow, .index-link:focus-visible .index-arrow { transform: translateX(6px); }
.index-link:hover .index-photo, .index-link:focus-visible .index-photo { opacity: 1; transform: translate(50%, -50%) rotate(-2deg) scale(1); }
.index-org { transition: opacity 0.25s; }
.index-link:hover .index-org, .index-link:focus-visible .index-org { opacity: 0; }
@media (hover: none), (max-width: 900px) { .index-link:hover .index-org, .index-link:focus-visible .index-org { opacity: 1; } }
.index-link:focus-visible { outline-offset: 6px; }

@media (hover: none) { .index-photo { display: none; } }

@media (max-width: 900px) {
  .index-link { grid-template-columns: 3.25rem minmax(0, 1fr) 1.5rem; gap: 6px 16px; }
  .index-num { font-size: 1.5rem; grid-row: 1; }
  .index-name { grid-column: 2; }
  .index-arrow { grid-column: 3; grid-row: 1; }
  .index-desc, .index-org { grid-column: 2 / 4; }
  .index-photo { display: none; }
}

/* Index numbers step in, one by one, once the list is on screen. */
.js .index-list:not(.is-in) .index-num { opacity: 0; transform: translateY(12px); }
.index-num { transition: opacity 0.4s, transform 0.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Featured work ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.feature { display: grid; gap: 14px; align-content: start; min-width: 0; }
.feature h3 { font-size: 1.375rem; font-family: var(--text); font-weight: 700; line-height: 1.3; }
.feature > p { color: var(--slate); font-size: 1rem; }
.feature .link { font-weight: 700; font-size: 0.9375rem; justify-self: start; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

.cover {
  aspect-ratio: 4 / 3;
  display: grid;
  align-content: space-between;
  padding: 28px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cover-ink { background: var(--ink); color: var(--on-ink); }
.cover-mist { background: var(--mist); color: var(--ink); }
.cover-paper { background: var(--paper); color: var(--ink); }
.cover .display { font-size: var(--fs-h3); line-height: 1.05; }
.cover-ink .label { color: var(--on-ink-muted); }
.cover .rule { width: 40px; height: 2px; background: currentColor; opacity: 0.4; }
.cover-ink .rule { background: var(--tide); opacity: 1; }

/* ---------- Ink statement band ---------- */

.statement { padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.statement p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

/* ---------- Events ---------- */

.events { list-style: none; border-top: 1px solid var(--ink); }
.event {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.event-date { font-variant-numeric: tabular-nums; }
.event-date strong { display: block; font-family: var(--display); font-size: var(--fs-h3); font-weight: 500; line-height: 1; }
.event h3 { font-family: var(--text); font-size: 1.25rem; font-weight: 700; }
.event p { color: var(--slate); font-size: 1rem; }
@media (max-width: 700px) { .event { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Newsletter and forms ---------- */

.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.signup h2 { font-size: var(--fs-h2); margin-top: 12px; }
.signup p { color: var(--slate); margin-top: 16px; max-width: 44ch; }
@media (max-width: 820px) { .signup { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field .field-label { font-size: 0.9375rem; font-weight: 700; }
.field .hint { font-size: 0.875rem; color: var(--slate); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--slate);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 500 1rem/1.4 var(--text);
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--deep-tide); outline-offset: 1px; border-color: var(--deep-tide); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #A3261B; }
.field-error { color: #A3261B; font-size: 0.875rem; font-weight: 600; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 16rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  position: relative;
  padding: 18px 20px 18px 44px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
}
.notice::before { content: ""; position: absolute; left: 20px; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--deep-tide); }
.notice strong { display: block; margin-bottom: 4px; }
.notice .addr { font-weight: 700; user-select: all; }
.band-white .notice { background: var(--paper); }

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

.site-footer { background: var(--ink); color: var(--on-ink); padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 32px; font-size: 1rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 40px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--ink-rule); }
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-brand .ma { height: 56px; width: auto; color: var(--on-ink); }
.footer-brand .short { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8125rem; }
.footer-brand p { color: var(--on-ink-muted); max-width: 42ch; }
.crisis { border: 1px solid var(--ink-rule); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; }
.crisis .label { color: var(--tide); }
.crisis p { font-size: 1.0625rem; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px; border-bottom: 1px solid var(--ink-rule); }
.footer-cols h2 { font: 600 var(--fs-label)/1.4 var(--text); letter-spacing: 0.125em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 2px; }
.footer-cols a { display: inline-block; padding-block: 5px; text-decoration: none; color: var(--on-ink); background: linear-gradient(var(--tide), var(--tide)) 0 calc(100% - 3px) / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out); }
.footer-cols a:hover { background-size: 100% 1px; }
.footer-cols .num { color: var(--tide); font-variant-numeric: tabular-nums; margin-right: 6px; font-size: 0.875rem; }
.footer-base { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; padding-top: 28px; color: var(--on-ink-muted); font-size: 0.875rem; }
.footer-base p { max-width: 70ch; }
.footer-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-base a { color: var(--on-ink); text-underline-offset: 0.2em; display: inline-block; padding-block: 3px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sphere page template ---------- */

.sphere-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.sphere-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.sphere-numeral {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: var(--fs-numeral);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--tide);
  font-variant-numeric: lining-nums;
  margin-bottom: 0.12em;
}
.band-mist .sphere-numeral { color: var(--deep-tide); }
.sphere-hero h1 { font-size: var(--fs-h1); margin-top: 14px; }
.sphere-hero .lead { margin-top: 20px; max-width: 34ch; }
.band-ink.sphere-hero .lead { color: var(--on-ink); }
.sphere-hero .shot-frame { --ratio: 4 / 5; }
@media (max-width: 820px) {
  .sphere-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sphere-hero .shot, .sphere-hero .portrait { max-width: 400px; }
}

.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-form { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split-form { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: var(--measure); display: grid; gap: 1.1em; }
.prose h2 { font-family: var(--display); font-size: var(--fs-h2); line-height: 1.05; margin-bottom: 0.2em; }
.prose h3 { font-family: var(--text); font-size: 1.25rem; font-weight: 700; margin-top: 0.6em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose li::marker { color: var(--deep-tide); }

.h2 { font-family: var(--display); font-size: var(--fs-h2); line-height: 1.05; }

.panel { background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 2.5vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.band-white .panel, .page-care .band-white .panel { background: var(--paper); }
.panel h2, .panel h3 { font: 600 var(--fs-label)/1.4 var(--text); letter-spacing: 0.125em; text-transform: uppercase; color: var(--slate); }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 0.875rem; font-weight: 700; color: var(--slate); }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.facts .big { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; }

.org-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.org-card h3 { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; margin-top: 8px; }
.org-card p { color: var(--slate); margin-top: 8px; max-width: 52ch; }
.org-stack { display: grid; gap: 16px; }
@media (max-width: 700px) { .org-card { grid-template-columns: minmax(0, 1fr); } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 20px; list-style: none; }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.card p { font-size: 1rem; color: var(--slate); }
.card .link { font-weight: 700; font-size: 0.9375rem; justify-self: start; }

.pubs { list-style: none; border-top: 1px solid var(--ink); }
.pub { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 4px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.pub-year { font-family: var(--display); font-size: var(--fs-h3); line-height: 1; color: var(--deep-tide); font-variant-numeric: lining-nums; }
.pub h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.pub p { color: var(--slate); font-size: 1rem; margin-top: 4px; }
@media (max-width: 600px) { .pub { grid-template-columns: minmax(0, 1fr); } }

.themes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.themes li { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.themes strong { font-size: 1.0625rem; }
.themes span { color: var(--slate); font-size: 1rem; }
@media (max-width: 700px) { .themes { grid-template-columns: minmax(0, 1fr); } }

.cta-band { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; }
.cta-inner h2 { font-size: var(--fs-h2); margin-top: 12px; max-width: 20ch; }
.cta-inner p { margin-top: 14px; max-width: 52ch; }
.band-ink .cta-inner p { color: var(--on-ink-muted); }
@media (max-width: 760px) { .cta-inner { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.sphere-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sphere-nav a { display: grid; gap: 6px; padding: 28px 0; text-decoration: none; min-height: 44px; }
.sphere-nav a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.sphere-nav .display { font-size: var(--fs-h3); }
.sphere-nav a:hover .display { color: var(--deep-tide); }

.rule-top { border-top: 1px solid var(--line); }

/* Session facts: the Care page's working panel */
.session { display: grid; gap: 0; }
.session-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; padding-top: 0; }
.session-row dt { font-size: 0.875rem; font-weight: 700; color: var(--slate); padding-top: 2px; }
.session-row dd { margin: 0; font-size: 1rem; }
@media (max-width: 480px) { .session-row { grid-template-columns: minmax(0, 1fr); } }

.crisis-inline { display: grid; gap: 4px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.crisis-inline strong { font-size: 1rem; }

/* Bios */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--slate);
  font: 700 0.9375rem/1 var(--text);
  cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:hover { color: var(--ink); }
.bio-panel { padding-top: 24px; display: grid; gap: 18px; }
.bio-panel p { max-width: var(--measure); }
.copy-btn { justify-self: start; }
.copy-status { font-size: 0.875rem; color: var(--deep-tide); font-weight: 700; min-height: 1.4em; }

/* Journal */
.empty { padding: clamp(28px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 14px; max-width: 760px; }
.empty .display { font-size: var(--fs-h3); }
.empty p { color: var(--slate); }

/* Legal pages */
.legal { max-width: 760px; }
.legal .prose { gap: 1em; }
.legal .prose h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); margin-top: 1em; }
.meta { color: var(--slate); font-size: var(--fs-small); }

/* Contact routes */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.route { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.route h2 { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; }
.route p { color: var(--slate); font-size: 1rem; }
.route .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .routes { grid-template-columns: minmax(0, 1fr); } }

/* Radio */
.radio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); }
.radio .label { color: var(--on-ink-muted); }
.onair { display: inline-flex; align-items: center; gap: 10px; }
.onair-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tide); box-shadow: 0 0 0 0 rgba(63, 184, 175, 0.6); }
.radio.is-playing .onair-dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 184, 175, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(63, 184, 175, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 184, 175, 0); } }
.radio h3 { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; }
.radio p { color: var(--on-ink-muted); font-size: 1rem; }
.radio-status { font-size: 0.875rem; color: var(--tide); font-weight: 700; min-height: 1.4em; }
@media (max-width: 700px) { .radio { grid-template-columns: minmax(0, 1fr); } }

/* Items still to confirm (preview builds only; release builds strip them) */
.tbc { outline: 1.5px dashed var(--deep-tide); outline-offset: 4px; position: relative; }
.tbc-note {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--deep-tide);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Monogram: on first load the Tide stop lands after the letters, once a visit. */
.land .lockup .ma-letters { animation: letters-in 0.5s var(--ease-out) both; }
.land .lockup .ma-stop { animation: stop-land 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 0.45s both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes letters-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stop-land { from { opacity: 0; transform: translateY(-260%); } to { opacity: 1; transform: none; } }

/* Text rises 12px and fades in; images reveal once from the bottom edge.
   Only applied to content below the first screen, and only with motion on. */
.will-rise { opacity: 0; transform: translateY(12px); }
.will-rise.risen { opacity: 1; transform: none; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.will-reveal .shot-frame { clip-path: inset(100% 0 0 0); }
.will-reveal.revealed .shot-frame { clip-path: inset(0 0 0 0); transition: clip-path 0.8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-rise, .will-reveal .shot-frame, .js .index-list:not(.is-in) .index-num { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
}

/* Numbered steps: only where order matters (how to start, what happens next). */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.prose .steps { padding-left: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--deep-tide); }
.nowrap { white-space: nowrap; }

/* ---------- Flow ----------
   Light bands fade in and out of the page rather than meeting it at a hard
   edge. Dark bands sit as rounded islands, the footer curves up into the page,
   and pages cross-fade into one another while the header stays put. */

.band-mist:not(.sphere-hero), .band-white {
  --band: var(--mist);
  background: linear-gradient(var(--page-bg), var(--band) var(--fade), var(--band) calc(100% - var(--fade)), var(--page-bg));
}
.band-white { --band: var(--white); }
.pathways { --fade: clamp(24px, 3vw, 40px); }

.band-ink, .sphere-hero {
  margin-inline: var(--inset);
  border-radius: var(--radius-xl);
}
.sphere-hero { margin-top: var(--inset); }
.statement { margin-block: var(--inset); }

.site-footer {
  margin-top: var(--inset);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Portrait ----------
   The cut-out portrait sits on Ink, over a Deep Tide disc that echoes the
   stop in the monogram. The head rises just past the frame's top edge. */

.portrait { margin: 0; display: grid; gap: 12px; min-width: 0; padding-top: 10%; }
.hero .portrait { align-self: end; }
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 50% 18%, var(--ink-raised) 0%, var(--ink) 62%);
  isolation: isolate;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 20%;
  top: 1.5%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--deep-tide);
  opacity: 0.75;
}
.portrait-frame img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  clip-path: inset(-30% 0 0 0 round 0 0 var(--radius-xl) var(--radius-xl));
}
.portrait figcaption { color: var(--slate); }
@media (max-width: 820px) { .hero .portrait { max-width: 420px; } }

/* ---------- Books ---------- */

.cover-book {
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 24px;
  background: radial-gradient(90% 90% at 50% 35%, var(--ink-raised) 0%, var(--ink) 70%);
}
.cover-book img { height: 100%; width: auto; border-radius: 6px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6); }

.book-stage { margin: 0; display: grid; gap: 16px; justify-items: center; }
.book-stage img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.75);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.book-stage:hover img { transform: rotate(0deg) translateY(-4px); }

.book-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.015em; }

/* ---------- Photo slides (About) ---------- */

.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 22rem);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.slides:focus-visible { outline: 2px solid var(--deep-tide); outline-offset: 4px; border-radius: var(--radius); }
.slide { margin: 0; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); background: var(--mist); }
.slide figcaption { color: var(--slate); }
.slide-controls { display: flex; gap: 10px; margin-top: 16px; }
.slide-controls .btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- Shop ---------- */

.shop-book { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.shop-book .book-stage img { width: min(100%, 260px); }
.shop-book-body { display: grid; gap: 16px; min-width: 0; max-width: 44rem; }
.shop-book-body h2 { font-size: var(--fs-h2); line-height: 1.05; }
.shop-book-body .book-by { color: var(--slate); font-weight: 600; margin-top: -6px; }
.stock { font-weight: 700; color: var(--deep-tide); }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: currentColor; }
.shop-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 16px; }
.shop-option { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.shop-option h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.shop-option p { font-size: 1rem; color: var(--slate); }
.shop-option .price { font: 500 2rem/1.1 var(--display); color: var(--ink); }
.shop-option .price span { display: block; margin-top: 6px; font: 600 0.9375rem/1.4 var(--text); color: var(--slate); }
.shop-option .btn { justify-self: start; margin-top: 6px; }
.shop-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 6px; }
.shop-buy .field { gap: 6px; }
.shop-buy .select { width: 5.5rem; min-height: 48px; }
.shop-option .shop-buy .btn { margin-top: 0; }
.shop-soldout, .shop-abroad { display: grid; gap: 14px; justify-items: start; padding: 22px; border-radius: var(--radius); background: var(--mist); }
@media (max-width: 760px) {
  .shop-book { grid-template-columns: minmax(0, 1fr); }
  .shop-book .book-stage { justify-items: start; }
  .shop-book .book-stage img { width: min(60%, 200px); }
}
.card .book-by { color: var(--ink); font-size: 0.9375rem; font-weight: 600; }

/* ---------- Articulate: speaking practice ---------- */

:root {
  --warn: #8A5A00;      /* 5.3:1 on Paper */
  --critical: #A3261B;  /* 6.6:1 on Paper */
  --sand: #F1E4C8;      /* filler-word highlight behind Ink text */
}

.art-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
button.chip { font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink); cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.art-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 16px; }
.art-grid li { display: grid; }
.art-ex { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.2s; }
.art-ex:hover { border-color: var(--deep-tide); }
.art-ex:hover h3 { color: var(--deep-tide); }
.art-ex p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.art-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 16px; padding: 0; border: 0; background: none; color: var(--deep-tide); font: 700 0.9375rem/1 var(--text); cursor: pointer; }
.art-back:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.art-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 20px; align-items: start; }
.art-main, .art-side { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 900px) { .art-split { grid-template-columns: minmax(0, 1fr); } }

.art-card .art-title { font: 500 var(--fs-h3)/1.1 var(--display); letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.art-title:focus { outline: none; }
.art-model { display: grid; gap: 12px; justify-items: start; padding: 18px 20px; background: var(--mist); }
.art-model-text { font: italic 500 1.25rem/1.5 var(--display); }
.art-prompt { margin-top: 6px; font-size: 1.125rem; line-height: 1.65; max-width: var(--measure); }
.art-guidance { padding-left: 14px; border-left: 2px solid var(--tide); color: var(--slate); font-size: 1rem; }

.art-transcript { font-size: 1.0625rem; line-height: 1.75; min-height: 3.5em; }
.art-interim, .art-listening { color: var(--slate); font-style: italic; }
mark.art-filler { background: var(--sand); color: var(--ink); padding: 0.05em 0.2em; border-radius: 2px; }

.art-controls { text-align: center; justify-items: stretch; }
.art-timer { font: 600 3.5rem/1 var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.art-timer-target { margin-top: -10px; }
.art-progress { height: 4px; background: var(--line); overflow: hidden; }
.art-progress span { display: block; height: 100%; width: 0; background: var(--deep-tide); transition: width 0.25s linear; }
.art-go { width: 100%; min-height: 52px; font-size: 1rem; }
.btn-stop { background: var(--ink); color: var(--on-ink); }
.btn-stop:hover { background: #000; }
.art-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--critical); animation: rec 1.2s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.35; } }
.art-after { display: grid; gap: 8px; }
.art-text-btn { border: 0; background: none; color: var(--deep-tide); }
.art-text-btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.art-status { font-size: 0.9375rem; color: var(--critical); font-weight: 600; min-height: 1.4em; text-align: left; }
.art-status:empty { display: none; }

.art-score { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.art-score > span { color: var(--slate); font-size: 1rem; }
.art-score strong { font: 500 3rem/1 var(--display); font-variant-numeric: lining-nums; }
.art-score strong span { font: 500 1rem/1 var(--text); color: var(--slate); margin-left: 2px; }
.art-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.art-stats div { padding: 12px 14px; background: var(--paper); display: grid; gap: 2px; }
.art-stats dt { font-size: 0.8125rem; font-weight: 700; color: var(--slate); }
.art-stats dd { margin: 0; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.art-unit { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.art-pace { display: block; font-size: 0.8125rem; font-weight: 700; }
.art-filler-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.art-filler-list li { padding: 3px 10px; background: var(--sand); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.tone-good { color: var(--deep-tide); }
.tone-warn { color: var(--warn); }
.tone-low { color: var(--critical); }

.art-coach-note { color: var(--slate); font-size: 0.9375rem; }
.art-coach-out { display: grid; gap: 12px; font-size: 1rem; line-height: 1.65; }
.art-coach-out:empty { display: none; }
.art-error { color: var(--critical); font-weight: 600; }

.art-privacy ul { list-style: none; display: grid; gap: 10px; max-width: var(--measure); }
.art-privacy li { position: relative; padding-left: 18px; font-size: 1rem; }
.art-privacy li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--deep-tide); }
.art-unsupported { margin-bottom: 24px; }
