:root {
  --ink: #143238;
  --ink-soft: #3c5552;
  --linen: #f3f6f4;
  --paper: #f7fbf8;
  --line: #d3e0da;
  --mark: #e3f25a;
  --sea: #0e6b5e;
  --header: 4.25rem;
  --wrap: 1120px;
  --serif: "Besley", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dt,
dd,
ol,
ul,
figure,
address,
table {
  margin: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

::selection {
  background: var(--mark);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--linen);
  padding: 0.6rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

h1,
h2,
.slip-name,
.brand strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 0.96;
  font-weight: 650;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  max-width: 16ch;
}

.lede,
.block-head p,
.profile-grid p,
.book p,
.quiet,
.notes figcaption,
.timeline span,
.methods li,
.steps p,
.conditions dd {
  color: var(--ink-soft);
}

.lede {
  margin-top: 1.4rem;
  max-width: 38rem;
  font-size: 1.15rem;
}

.hl {
  color: var(--ink);
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 0 0.42em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: mark-in 0.7s ease forwards;
}

.slip-facts div:nth-child(2) .hl { animation-delay: 0.12s; }
.slip-facts div:nth-child(3) .hl { animation-delay: 0.24s; }
.slip-facts div:nth-child(4) .hl { animation-delay: 0.36s; }

@keyframes mark-in {
  to { background-size: 100% 0.42em; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 0.85rem;
  height: 1.7rem;
  border-radius: 999px 999px 0 0;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.5px;
  height: 0.7rem;
  background: var(--ink);
  transform: translateX(-50%);
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--sea);
}

.nav-call {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  background: var(--mark);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  position: relative;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span:nth-child(2) { top: 1.05rem; }
.nav-toggle span:nth-child(3) { top: 1.55rem; }

.hero {
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-grid,
.profile-grid,
.visit-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: min(70vh, 620px);
  object-fit: cover;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fact-row div {
  display: grid;
  gap: 0.2rem;
}

.fact-row dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea);
}

.fact-row dd {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.fact-row a {
  text-decoration: none;
}

.care-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 0.7rem;
}

.care-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.care-main {
  grid-row: 1 / span 2;
}

.care-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.care-mosaic figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--mark);
  color: var(--ink);
  padding: 0.28rem 0.55rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.chips {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
}

.band {
  margin: 0;
}

.band img {
  display: block;
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  object-position: center 60%;
}

.band figcaption {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0.55rem auto 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font: inherit;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.btn-ink {
  background: var(--ink);
  color: var(--linen);
}

.btn-ink:hover {
  background: var(--sea);
  border-color: var(--sea);
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--paper);
}

.slip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.goniometer {
  position: absolute;
  width: 8.5rem;
  right: 0.7rem;
  top: 0.85rem;
  color: var(--sea);
  opacity: 0.55;
  pointer-events: none;
}

.arm {
  transform-box: view-box;
  transform-origin: 40px 168px;
  animation: arm-open 1.15s cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

@keyframes arm-open {
  from { transform: rotate(0deg); }
  to { transform: rotate(-42deg); }
}

.slip-kicker,
.slip-degrees,
.slip-facts dt,
.hours caption,
.timeline .when,
.notes figcaption,
.footer-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slip-kicker {
  color: var(--sea);
}

.slip-kicker,
.slip-name {
  padding-right: 5.5rem;
}

.slip-name {
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 1.05;
  position: relative;
}

.slip-degrees {
  margin-top: 0.8rem;
  max-width: 28ch;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.slip-facts {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.slip-facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.slip-facts dt {
  color: var(--ink-soft);
}

.slip-facts dd {
  margin: 0;
  font-size: 1.02rem;
}

.slip-facts a {
  text-decoration: none;
}

.block {
  padding: 4.75rem 0;
}

.block-tint {
  background: color-mix(in srgb, var(--sea) 7%, var(--linen));
  border-block: 1px solid var(--line);
}

.block-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.block-head p,
.profile-grid p,
.book > p {
  margin-top: 0.9rem;
}

.conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.conditions div {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.conditions div:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.conditions div:nth-child(even) {
  padding-left: 1.5rem;
}

.conditions dt {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.conditions dd {
  margin-top: 0.4rem;
  max-width: 38ch;
}

.methods {
  margin-top: 2.5rem;
}

.methods ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.5rem;
}

.methods li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.methods .hl {
  color: var(--ink);
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 0.8rem;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--sea);
}

.steps h3 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.profile-role {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea);
}

.timeline {
  list-style: none;
  padding: 0.2rem 0 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline .when {
  color: var(--sea);
  padding-top: 0.2rem;
}

.timeline strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.timeline span:last-child {
  grid-column: 2;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.notes figure {
  margin: 0;
  background: var(--paper);
  padding: 1.25rem 1.2rem 1rem;
  border-left: 4px solid var(--mark);
}

.notes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.notes figcaption {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
}

.visit-grid address {
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.5;
}

.phone-line {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.phone-line a {
  text-decoration: none;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.38em;
}

.text-link {
  color: var(--sea);
}

.hours {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.hours caption {
  text-align: left;
  caption-side: top;
  margin-bottom: 0.45rem;
  color: var(--sea);
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
}

.hours td {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.quiet {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.map-frame {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  background: var(--paper);
  height: 280px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.book {
  background: var(--ink);
  color: var(--linen);
  padding: 1.5rem 1.35rem 1.4rem;
}

.book h2 {
  font-size: 2.2rem;
  color: var(--linen);
}

.book > p,
.book label {
  color: color-mix(in srgb, var(--linen) 78%, transparent);
}

.book label {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book input,
.book select,
.book textarea {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  padding: 0.75rem 0.7rem;
  width: 100%;
}

.book .btn {
  margin-top: 1.1rem;
  width: 100%;
  background: var(--mark);
  color: var(--ink);
  border-color: var(--mark);
}

.book .btn:hover {
  background: #f4ff9a;
}

.site-footer {
  padding: 2.2rem 0 6.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 0.7fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-grid strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.footer-grid p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-meta {
  text-transform: none;
  letter-spacing: 0;
}

.dock {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header) 0 0 0;
    background: var(--linen);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem 6rem;
    gap: 0.3rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    font-size: 1.7rem;
    font-family: var(--serif);
    padding: 0.35rem 0;
  }

  .nav-call {
    background: var(--mark);
    font-family: var(--mono);
    font-size: 1rem;
    margin-top: 0.6rem;
  }

  .hero-grid,
  .profile-grid,
  .visit-grid,
  .conditions,
  .methods ul,
  .steps,
  .notes,
  .footer-grid,
  .fact-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .profile-grid,
  .visit-grid,
  .steps,
  .notes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .care-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .care-main {
    grid-row: auto;
  }

  .care-mosaic figure {
    height: 280px;
  }

  .hero-photo img {
    height: 420px;
  }

  .conditions div:nth-child(odd),
  .conditions div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .goniometer {
    display: none;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--ink);
  }

  .dock a {
    color: var(--linen);
    text-decoration: none;
    text-align: center;
    padding: 0.95rem 0.4rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dock a + a {
    border-left: 1px solid color-mix(in srgb, var(--linen) 25%, transparent);
  }

  .dock a:last-child {
    background: var(--mark);
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  h1 {
    max-width: none;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .timeline span:last-child {
    grid-column: 1;
  }

  .site-footer {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hl,
  .arm {
    animation: none;
  }

  .hl,
  .phone-line a {
    background-size: 100% 0.42em;
  }

  .arm {
    transform: rotate(-42deg);
  }
}
