@charset "utf-8";
/* Shiv Om Medicals.
   Every chapter is one flat field of colour. The palette is the one from the
   store's first site: ivory, green and mint, with mustard as the accent. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }

:root {
  --ivory: #F3EEE2;
  --cream: #FBF8F1;      /* ivory, one step lighter: panels on ivory */
  --green: #2F5D50;
  --deep: #1D3A32;       /* the green, darker: text, the dose chapter, footer */
  --mint: #C7CFBB;
  --mustard: #D98E2B;    /* the accent: buttons on green, the sun, a few packets */

  --f-small: clamp(.9375rem, .91rem + .1vw, 1rem);
  --f-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --f-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --f-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --f-huge: clamp(2.75rem, 1rem + 7.6vw, 8.5rem);

  --edge: clamp(1.125rem, 3vw, 3rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --pad: clamp(4.5rem, 9vw, 9rem);
  --out: cubic-bezier(.22, 1, .36, 1);
}

html { color-scheme: light; background-color: #201f23; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
/* Ivory is painted as an image so that Safari takes the charcoal above for
   the area under the page, matching the studio strip. */
body { background: linear-gradient(var(--ivory), var(--ivory)); /* taste-skill-ignore: flat ivory */ color: var(--deep); font-family: Jost, "Century Gothic", system-ui, sans-serif; font-size: var(--f-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: .98; text-wrap: balance; }
h2 { font-size: var(--f-head); }
p, dd { text-wrap: pretty; max-width: 60ch; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--mustard); color: var(--deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -5rem; z-index: 20; background: var(--deep); color: var(--cream); padding: .8rem 1.2rem; }
.skip:focus { top: .5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .5rem 1.6rem; border-radius: 99px; font-weight: 500; text-decoration: none; text-align: center; transition: background-color .18s, color .18s, transform .14s var(--out); }
.btn:active { transform: scale(.97); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--mustard { background: var(--mustard); color: var(--deep); }
.link { font-weight: 500; text-underline-offset: .22em; text-decoration-thickness: .08em; transition: color .18s; }
@media (hover: hover) {
  .btn--green:hover { background: var(--deep); }
  .btn--mustard:hover { background: var(--cream); }
  .link:hover { color: var(--green); }
}

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--gap); padding: .7rem var(--edge); background: var(--ivory); }
.brand { margin-right: auto; }
.brand img { width: clamp(10.5rem, 15vw, 13rem); }
.nav { display: none; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500; transition: color .18s; }
.head-cta { min-height: 2.75rem; padding-inline: 1.25rem; white-space: nowrap; font-size: var(--f-small); }
@media (hover: hover) { .nav a:hover { color: var(--green); } }
.menu summary { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 99px; background: var(--deep); color: var(--cream); font-weight: 500; font-size: var(--f-small); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: 1rem var(--edge) 1.75rem; background: var(--deep); color: var(--cream); }
.menu nav a { display: flex; align-items: center; min-height: 3.25rem; font-size: var(--f-lead); font-weight: 500; text-decoration: none; }
.menu[open] summary { background: var(--green); }
@media (max-width: 47.99rem) { .head-cta { display: none; } }
@media (min-width: 62rem) { .nav { display: flex; } .menu { display: none; } }

/* ---------- opening: the words stand in the picture's own sky ---------- */
.hero { background: var(--mint); display: grid; }
.hero-words { padding: clamp(2.25rem, 7vw, 4rem) var(--edge) 1.5rem; display: grid; gap: 1.25rem; align-content: start; }
.hero h1 { font-size: min(10vw, 4.5rem);  /* any larger and the first line is wider than a phone */ letter-spacing: -.04em; line-height: .95; }
.line { display: block; overflow: hidden; padding: .06em .05em .2em 0; margin-bottom: -.2em; white-space: nowrap; }
.line > span { display: block; }
.hero-side > p:first-child { max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.5rem; }
.hero-pic { display: block; min-width: 0; }
.hero-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
@media (min-width: 48rem) {
  .hero { background: linear-gradient(var(--mint) 92%, var(--green) 92%); /* the picture's sky and pavement carry on to both edges */ grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: clamp(28rem, 56.25vw, 100svh - 4.5rem); }
  .hero-words, .hero-pic { grid-area: 1 / 1; }
  .hero-words { z-index: 1; align-self: center; width: 46%; padding-block: 0 8vh; gap: 1.75rem; }
  .hero h1 { font-size: min(4.7vw, 7.5rem); }
  .hero-pic img { width: auto; height: 100%; aspect-ratio: auto; margin: 0 1.5vw 0 auto; }
/* Tablet: the words sit beside the sign, so they step down to match its size */
@media (min-width: 48rem) and (max-width: 67.99rem) {
  .hero h1 { font-size: clamp(2rem, 3.1vw, 3rem); }
  .hero-side p { font-size: clamp(.9375rem, .8rem + .4vw, 1.0625rem); }
  .hero { --hero-h: clamp(28rem, 56.25vw, calc(100svh - 4.5rem)); }
  /* the headline starts level with the top of the sign, which is 21% down the picture */
  .hero-words { gap: 1.1rem; align-self: start; padding-top: calc(var(--hero-h) * .211); padding-bottom: 0; }
}
}

/* ---------- chapters ---------- */
.chapter { padding: var(--pad) var(--edge); }
.deep { background: var(--deep); color: var(--cream); }
.green { background: var(--green); color: var(--cream); }
.mint { background: var(--mint); }
.ivory { background: var(--ivory); }
.huge { font-size: var(--f-huge); letter-spacing: -.045em; line-height: .9; }
.chapter-head { display: grid; gap: 1.25rem var(--gap); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 62rem) { .chapter-head { grid-template-columns: 7fr 5fr; align-items: end; } }

/* ---------- the dose reader ---------- */
.doses { display: grid; grid-template-columns: repeat(3, 1fr); }
.dose { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: start; padding: clamp(.75rem, 2vw, 2rem); min-height: clamp(18rem, 31vw, 30rem); color: var(--deep); background: var(--mint); }
.dose--afternoon { background: var(--mustard); }
.dose--night { background: var(--green); color: var(--cream); }
.dose > * { position: relative; }
.dose > .dose-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.dose-when { font-weight: 500; font-size: clamp(.9375rem, .6rem + 1.4vw, 1.625rem); }
.dose-num { align-self: center; font-weight: 700; font-size: clamp(6.5rem, 20vw, 18.5rem); line-height: .8; letter-spacing: -.05em; font-variant-numeric: lining-nums; }
.dose-set { display: none; gap: .5rem; }
[data-js] .dose-set { display: flex; }
.dose-set button { width: clamp(2.75rem, 4.4vw, 3.75rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--deep); transition: background-color .18s, color .18s, transform .14s var(--out); }
.dose-set svg { width: 46%; fill: currentColor; }
.dose-set button:active { transform: scale(.92); }
.dose-set button[aria-disabled="true"] { background: transparent; color: inherit; opacity: .55; cursor: default; }
@media (hover: hover) { .dose-set button:not([aria-disabled="true"]):hover { background: var(--green); color: var(--cream); } }
@media (max-width: 30rem) { .dose-set { flex-direction: column-reverse; } }

.reading { display: grid; gap: 1.75rem var(--gap); background: var(--cream); color: var(--deep); padding: clamp(1.25rem, 3vw, 2.5rem) clamp(.95rem, 2vw, 2rem); }
.reading-line { font-size: var(--f-lead); line-height: 1.25; font-weight: 500; max-width: 34ch; min-height: 3.75em; }
.food { display: flex; gap: .5rem; align-self: start; }
.food label { position: relative; cursor: pointer; }
.food input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.food span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 99px; background: var(--ivory); font-weight: 500; white-space: nowrap; transition: background-color .18s, color .18s; }
.food input:checked + span { background: var(--deep); color: var(--cream); }
.food input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; width: 12.5rem; padding: .6rem; background: var(--mint); border-radius: .6rem; }
.strip li { aspect-ratio: 1; border-radius: 50%; background: var(--green); transition: background-color .25s; }
.strip li:nth-child(4n+3), .strip li:nth-child(4n+4) { background: var(--deep); }
.strip li.a { background: var(--green); } .strip li.b { background: var(--deep); } .strip li.left { background: var(--cream); }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.strip-row p { max-width: 16ch; font-weight: 500; line-height: 1.3; }
@media (min-width: 62rem) { .reading { grid-template-columns: 1fr auto auto; align-items: center; } .food { align-self: center; } }
.careful { margin-top: 1.75rem; }

/* ---------- at the counter ---------- */
.quiet-h { font-size: var(--f-lead); letter-spacing: -.01em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.poster { display: grid; gap: clamp(1.9rem, 2.6vw, 2.4rem); }
.poster h3 { font-size: var(--f-huge); letter-spacing: -.045em; line-height: .86; transition: color .2s, transform .5s var(--out); }
.poster p { margin-top: .9rem; max-width: 36ch; }
@media (min-width: 48rem) {
  .poster li { display: grid; grid-template-columns: 1fr minmax(19rem, 36%); gap: var(--gap); align-items: center; }
  /* The words sit in a box the height of the title, which turns mint with it.
     :hover is left open to touch here, so a tap on a tablet keeps the box lit. */
  .poster p { margin: 0; max-width: none; align-self: stretch; display: grid; align-content: center; padding: .75rem clamp(1rem, 1.8vw, 1.75rem); border-radius: .6rem; transition: background-color .2s; }
  .poster li:hover p, .poster li:active p { background: var(--mint); }
}
@media (hover: hover) { .poster li:hover h3 { color: var(--green); transform: translateX(.08em); } }

/* ---------- what to bring ---------- */
.split { background: var(--cream); padding: 0; display: grid; }
.split-pic { overflow: hidden; }
.split-pic img { width: 100%; height: 100%; object-fit: cover; }
.split-words { padding: clamp(3rem, 6vw, 6rem) var(--edge); align-self: center; }
.bring { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 4vw, 3.25rem); }
dt { font-weight: 700; font-size: var(--f-lead); line-height: 1.15; letter-spacing: -.015em; margin-bottom: .35rem; }
.bring dd { max-width: 42ch; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split-words { padding-left: clamp(2.5rem, 6vw, 6.5rem); } }

/* ---------- camps ---------- */
.camps { display: grid; gap: clamp(2rem, 3.5vw, 3.25rem) var(--gap); }
.camps h2 span { display: block; }
.camps-top p { margin-top: 1.4rem; font-size: var(--f-lead); line-height: 1.3; max-width: 30ch; }
.camps-pic { overflow: hidden; }
/* 6:7 keeps the whole canopy and the feet; the sky and grass give way */
.camps-pic img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; object-position: 50% 40%; }
.camps-list { display: grid; gap: 1.6rem; align-content: end; }
.camps-list dd { max-width: 34ch; }
@media (min-width: 48rem) and (max-width: 61.99rem) { .camps-list { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
/* Beside the text from the same width as "What to bring" above it, and split
   at the same 50%, so the two sections share one vertical edge. */
@media (min-width: 56rem) {
  .camps { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 0; padding: 0; }
  .camps-top { grid-area: 1 / 1; padding: var(--pad) var(--edge) 0; }
  .camps-list { grid-area: 2 / 1; grid-template-columns: 1fr; gap: 1.6rem; padding-inline: var(--edge); }
  .camps-next { grid-area: 3 / 1; padding: 0 var(--edge) var(--pad); }
  .camps-pic { grid-area: 1 / 2 / span 3; display: grid; align-content: end; background: var(--mint); }  /* the sky carries on up */
  .camps-pic img { aspect-ratio: 3 / 4; }
}
@media (min-width: 100rem) { .camps-pic img { aspect-ratio: 6 / 7; } }

/* ---------- doctors ---------- */
.doctors-head { display: grid; gap: 1.5rem var(--gap); }
.doctors-head .btn { margin-top: 1.1rem; }
@media (min-width: 62rem) { .doctors-head { grid-template-columns: 2fr 1fr; align-items: end; } }
.doctors-grid { display: grid; gap: var(--gap); margin-top: clamp(2rem, 4vw, 3.5rem); }
.doc-block { padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; gap: 1.1rem; }
.doc-block h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); margin-bottom: auto; padding-bottom: 1.25rem; }
.doc-block p { max-width: 46ch; }
.doc-block--mint { background: var(--mint); }
.doc-block--deep { background: var(--deep); color: var(--cream); }
.doc-photo { display: grid; grid-template-rows: 1fr auto; gap: .75rem; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 100%; }
.doc-photo figcaption { font-size: var(--f-small); }
@media (min-width: 48rem) and (max-width: 84.99rem) { .doctors-grid { grid-template-columns: 1fr 1fr; } .doc-photo { grid-column: span 2; } .doc-photo img { aspect-ratio: 3 / 2; } }
@media (min-width: 62rem) and (max-width: 84.99rem) { .doc-photo img { aspect-ratio: 16 / 9; } }
@media (min-width: 85rem) { .doctors-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .doc-photo { grid-row: span 2; } }

/* ---------- visit: two stores, side by side, their rows lined up ---------- */
.stores { display: grid; gap: clamp(3.5rem, 8vw, 5rem) clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.25rem, 5vw, 4.5rem); }
.store { display: grid; gap: 1.5rem; align-content: start; }
.store h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.map { background: var(--ivory); aspect-ratio: 16 / 11; }
.map iframe { width: 100%; height: 100%; border: 0; }
.facts { display: grid; gap: 1.1rem; align-content: start; }
.facts dt { font-size: var(--f-body); letter-spacing: 0; margin-bottom: .1rem; }
.facts dd { max-width: 44ch; }
.pay { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: var(--f-lead); font-weight: 500; line-height: 1.3; max-width: 42ch; }
@media (min-width: 48rem) {
  .stores { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; row-gap: 1.5rem; }
  .store { grid-row: span 4; grid-template-rows: subgrid; }
}
@media (min-width: 62rem) { .facts > div { display: grid; grid-template-columns: 6.5rem 1fr; } }
.lost { min-height: 70svh; display: grid; align-content: center; gap: 1.5rem; justify-items: start; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--cream); }
.foot-in { display: grid; gap: 1.75rem var(--gap); padding: clamp(3rem, 6vw, 5rem) var(--edge) clamp(2rem, 3vw, 2.5rem); }
.foot-logo { justify-self: start; }
.foot-logo img { width: clamp(9rem, 13vw, 12rem); }
.foot-tag { font-size: var(--f-head); font-weight: 700; letter-spacing: -.03em; line-height: 1; max-width: 14ch; text-wrap: balance; }
/* The clinic's logo is a swirl over a word, so the other two are an icon over
   a word: icon centres level with the swirl, words on the logo's baseline. */
.foot-links { --logo: min(9.5rem, 29vw); display: flex; align-items: end; gap: clamp(.75rem, 4.5vw, 2.5rem); font-size: clamp(.9375rem, .8rem + .6vw, 1.1875rem); }
.foot-links a { position: relative; display: grid; justify-items: center; align-content: space-between; height: calc(var(--logo) * .3295 + .15em); line-height: 1; white-space: nowrap; text-decoration: none; font-weight: 500; transition: color .18s; }
.foot-links a::after { content: ""; position: absolute; inset: -.6rem -.35rem; }
.foot-links svg { width: calc(var(--logo) * .174); height: auto; }
.foot-clinic img { width: var(--logo); height: auto; }
.foot-note { font-size: var(--f-small); color: var(--mint); max-width: 52ch; }
@media (hover: hover) { .foot-links a:hover { color: var(--mustard); } }
@media (min-width: 62rem) {
  .foot-in { grid-template-columns: 1fr auto; align-items: end; }
  .foot-logo { grid-area: 1 / 2; justify-self: end; } .foot-tag { grid-area: 1 / 1; max-width: 18ch; }
  .foot-links { grid-area: 2 / 2; justify-self: end; } .foot-note { grid-area: 2 / 1; align-self: center; }
}

/* The studio credit, the same strip as on drumadisclinic.com. */
.studio-strip { --strip-pad: .55rem; background: #201f23; color: #b3b6b7; text-align: center; font-size: .8125rem; padding: var(--strip-pad) var(--edge); padding-bottom: max(var(--strip-pad), env(safe-area-inset-bottom)); }
@media (max-width: 40rem) { .studio-strip { --strip-pad: 1.1rem; font-size: .9375rem; } }
@media (max-width: 22.5rem) { .studio-strip { font-size: .8125rem; } .studio-strip p { column-gap: .6em; } }
.studio-strip p { max-width: none; line-height: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; column-gap: .8em; }
.studio-strip .by { justify-self: start; white-space: nowrap; }
@media (min-width: 40rem) { .studio-strip p { grid-template-columns: auto auto; justify-content: center; } }
.studio-strip a { position: relative; color: #b3b6b7; text-decoration: none; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.studio-strip a::after { content: ""; position: absolute; inset: calc(-1 * var(--strip-pad)) -.25rem; }
.deployd-lockup { display: inline-block; width: 10.5em; height: 1.345em; vertical-align: -.295em; fill: currentColor; overflow: visible; }
.deployd-lockup .dl-lime { fill: #eaef29; transition: fill .2s; }
@media (hover: hover) {
  .studio-strip a:hover, .studio-strip a:focus-visible { color: #eaef29; }
  .studio-strip a:hover .dl-lime, .studio-strip a:focus-visible .dl-lime { fill: #fff; }
}
.studio-strip a:active { color: #eaef29; transition: none; }
.studio-strip a:active .dl-lime { fill: #fff; transition: none; }

/* ---------- motion: only with script, only when welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  [data-js] .line > span { transform: translateY(110%); animation: up .9s var(--out) .25s forwards; }
  [data-js] .line + .line > span { animation-delay: .36s; }
  [data-js] .hero-side { opacity: 0; animation: fade .7s var(--out) .75s forwards; }
  [data-js] [data-in] { opacity: 0; transform: translateY(1.6rem); transition: opacity .6s var(--out), transform .8s var(--out); }
  [data-js] [data-in].is-in { opacity: 1; transform: none; }
  [data-js] [data-in].d1 { transition-delay: .08s; }
  [data-js] [data-in].d2 { transition-delay: .16s; }
  [data-js] [data-in].d3 { transition-delay: .24s; }
  .dose-num.pop { animation: pop .34s var(--out); }
  [data-js] .orb { transform: translateY(45%); transition: transform 1.4s var(--out); }
  [data-js] .is-in .orb { transform: none; }
}
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: translateY(.16em); opacity: .2; } to { transform: none; opacity: 1; } }
