/* =========================================================================
   obpharma.be — OB PHARMA
   -------------------------------------------------------------------------
   The reader is a pharmacy owner with a gap in the roster. The page is built
   around their first question — is he free? — so the availability calendar
   shares the opening block with the introduction instead of waiting below it.

   Colour and type come from the client's own identity (the OB PHARMA business
   card): navy #0F2C59, medical blue #1D70B8, mint #43B59B, Montserrat. Navy
   carries headings and the main action, blue small text links, and mint is
   decoration only — at 2.5:1 on white it must never carry text. IBM Plex Sans
   does the reading, because Montserrat tires the eye in prose.

   Composition: a white opening block (masthead + hero), quiet grey-paper
   middle sections, and one navy contact band to close — the card's navy
   used once, at full strength, where the visitor acts.

   Sections, in order: fonts, tokens, base, layout, buttons, masthead, hero,
   availability, calendar, about, terms, faq, contact, footer, 404,
   breakpoints, motion. Mobile first: the base rules are the phone layout, and the
   breakpoints near the end add columns from 48rem (tablet) and 62rem.

   Hover styles sit inside @media (hover: hover), so a tap on a phone or iPad
   does not leave a link stuck in its hover state.
   ========================================================================= */

/* ---------- fonts ------------------------------------------------------ */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/montserrat-500_800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/montserrat-500_800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans ships as one variable file (weights 100–700), so a single
   face serves both 400 and 600. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fallbacks sized to the web fonts' metrics, so text does not reflow when the
   web fonts arrive (Montserrat is much wider than Arial). */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
  font-weight: 500 800;
  size-adjust: 112.6%;
  ascent-override: 86%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 100.4%;
  ascent-override: 102.1%;
  descent-override: 27.4%;
  line-gap-override: 0%;
}

/* ---------- tokens ----------------------------------------------------- */

:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #1a2433;           /* the card's text colour */
  --ink-soft: #4a5566;      /* 7:1 on --paper */
  --line: #d8dee7;
  --line-soft: #e7ebf1;

  --navy: #0f2c59;          /* 13.8:1 on white */
  --accent: #1d70b8;        /* 5.2:1 on white, 4.8:1 on --paper */
  --accent-ink: #ffffff;
  --mint: #43b59b;          /* decoration only — never text */

  /* On the navy contact band. */
  --on-navy: #ffffff;
  --on-navy-soft: #bfcbdd;  /* 8.4:1 on navy */
  --on-navy-line: rgb(255 255 255 / 0.16);

  /* Calendar states: free is tinted mint, busy recedes to grey. Not a
     red/green traffic light, and busy days are struck through as well, so
     colour is never the only signal. */
  --cal-free-bg: #e2f3ee;
  --cal-free-ink: #145c4b;  /* 6.9:1 on its background */
  --cal-free-line: #b5e0d4;
  --cal-busy-bg: #e9ecf1;
  --cal-busy-ink: #4e5663;  /* 6.2:1 on its background */

  --display: 'Montserrat', 'Montserrat Fallback', ui-sans-serif, system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Plex Fallback', ui-sans-serif, system-ui, sans-serif;

  /* Type scale — a 1.25 ratio for headings; prose stays at 1rem/1.0625rem. */
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);

  --radius: 6px;
  --radius-lg: 12px;
  --shell: 70rem;
  --gap: clamp(1.5rem, 4vw, 4.5rem);
}

/* ---------- base ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Any `display` set by a class beats the browser's rule for [hidden], which
   would otherwise leave the calendar fallback visible next to the calendar. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

p,
ul,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

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

/* Figures line up — dates and phone numbers. */
.numeric {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}

/* ---------- layout ----------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-title {
  font-size: var(--step-3);
  margin-bottom: 1.25rem;
}
.section-title--small {
  font-size: var(--step-2);
}

.prose {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  display: grid;
  gap: 1.1rem;
  text-wrap: pretty;
}

/* ---------- buttons ---------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4ch;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;   /* "Bel +32 486 …" reads as one label, never broken */
}

.btn--solid {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--accent-ink);
}

/* ---------- masthead --------------------------------------------------- */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 2.75rem;
}

.logo {
  width: 2.9rem;
  height: 2.9rem;
  flex-shrink: 0;
  overflow: visible;
}

/* Logo colours, straight from the business card. The white knock-outs are
   drawn in --surface so the mark sits cleanly on the white masthead. */
.logo__cross {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo__bonds {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo__atoms,
.logo__leaf {
  fill: var(--mint);
}
.logo__ring {
  fill: var(--surface);
  stroke: var(--mint);
  stroke-width: 2.4;
}
.logo__navy {
  fill: var(--navy);
}
.logo__leaf {
  stroke: var(--surface);
  stroke-width: 3;
  stroke-linejoin: round;
}
.logo__vein {
  fill: none;
  stroke: var(--surface);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.logo__vein--thin {
  stroke-width: 1.5;
}

.wordmark__text {
  display: grid;
  line-height: 1.2;
}
.wordmark__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}
.wordmark__ob {
  color: var(--navy);
}
.wordmark__role {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.langbar {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.langbar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 2.75rem;
  min-width: 2.75rem;
}
.langbar__item[aria-current='page'] {
  color: var(--navy);
  border-color: var(--line);
  background: var(--paper);
}

/* Unfinished content from content/*.json ([[ TE INVULLEN: … ]]). Loud on
   purpose; the --strict build refuses to ship a page that still has one. */
.todo {
  background: #fff3c4;
  color: #5c4500;
  padding: 0 0.25em;
  border-radius: 3px;
}

/* ---------- hero ------------------------------------------------------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero__byline {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero__title {
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 13ch;
  margin-bottom: 1.25rem;
}

.hero__text {
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-bottom: 2rem;
}

/* ---------- availability ----------------------------------------------- */

/* The only boxed element on the page. It holds the answer to the visitor's
   first question, so it is set apart from the white hero around it. */
.availability {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

/* Keep the box at roughly its final height while the feed loads, so the page
   below does not jump when the grid arrives. */
.availability:has(.cal-status:not([hidden])) {
  min-height: 31rem;
}

/* Without JavaScript there is no calendar: the <noscript> fallback shows, and
   the loading line and the lead that promises a calendar are hidden. */
@media (scripting: none) {
  .availability .cal-status,
  .availability [data-calendar-lead] {
    display: none;
  }
  .availability:has(.cal-status) {
    min-height: 0;
  }
}

.availability__mail {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--navy);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.availability__title {
  font-size: var(--step-2);
  margin-bottom: 0.35rem;
}

.availability__lead {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 40ch;
}

.cal-status {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- calendar --------------------------------------------------- */

.calendar__next {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.calendar__next strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.calendar__next strong::first-letter {
  text-transform: uppercase;
}

.calendar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.calendar__month {
  font-size: 1.05rem;
}

.calendar__nav {
  display: flex;
  gap: 0.35rem;
}

.calendar__nav button {
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}
.calendar__nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.cal {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}

.cal th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 0.3rem;
}

.cal__day {
  height: 2.6rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.cal__day--free {
  background: var(--cal-free-bg);
  color: var(--cal-free-ink);
  font-weight: 600;
}

/* Today gets a ring, whatever its state. */
.cal__day[aria-current='date'] {
  box-shadow: inset 0 0 0 2px var(--navy);
}

.cal__day--busy {
  background: var(--cal-busy-bg);
  color: var(--cal-busy-ink);
}
/* Colour is never the only signal: a booked day is struck through as well. */
.cal__day--busy .cal__num {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Past days are context, not information: present, but barely. */
.cal__day--past {
  color: var(--ink-soft);
  opacity: 0.45;
}

.cal__day--empty {
  background: none;
  border-color: transparent;
}

.legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legend__swatch {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid transparent;
  border-radius: 3px;
}
.legend__swatch--free {
  background: var(--cal-free-bg);
  border-color: var(--cal-free-line);
}

/* The calendar answers "is he free?"; this is the next step, right there. */
.calendar__ask {
  width: 100%;
  margin-top: 1rem;
}
.legend__swatch--busy {
  background: var(--cal-busy-bg);
  border-color: var(--line);
}

/* ---------- about ------------------------------------------------------ */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

/* Skills read as a short list with the logo's molecule atoms as markers —
   the only ornament in the section. */
.skills {
  list-style: none;
  padding: 0;
  display: grid;
}

.skills li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.75rem;
  border-top: 1px solid var(--line);
}
.skills li:last-child {
  border-bottom: 1px solid var(--line);
}
.skills li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--mint);
}

/* ---------- terms ("waar en hoe") -------------------------------------- */

.terms {
  padding-block: 0 clamp(3.5rem, 9vw, 6.5rem);
}

.terms__list {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.terms__item dt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.terms__item dd {
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ---------- faq ------------------------------------------------------- */

/* The same hairline list as the skills and terms, not cards. Answers fold
   away under <details>, so the questions read as a scannable list. */
.faq {
  display: grid;
  gap: 0.5rem clamp(2rem, 5vw, 4rem);
  padding-block: 0 clamp(3.5rem, 9vw, 6.5rem);
}

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

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding-block: 0.9rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
/* +/− in the accent blue (5.2:1): it is a control, so not in mint. */
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}
.faq__item[open] summary::after {
  content: '\2212';
}

.faq__answer {
  max-width: 60ch;
  padding-bottom: 1.1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- contact ---------------------------------------------------- */

/* The card's navy at full strength, used once, where the visitor acts. */
.contact {
  background: var(--navy);
  color: var(--on-navy);
}

.contact :focus-visible {
  outline-color: var(--on-navy);
}

.contact__inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.contact__title {
  color: var(--on-navy);
  font-size: var(--step-3);
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.contact__text {
  color: var(--on-navy-soft);
  font-size: var(--step-1);
}

.contact__lines {
  list-style: none;
  padding: 0;
  align-self: end;
}

.contact__line {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--on-navy-line);
  text-decoration: none;
  min-height: 2.75rem;
}
.contact__lines li:last-child .contact__line {
  border-bottom: 1px solid var(--on-navy-line);
}

.contact__label {
  font-size: 0.85rem;
  color: var(--on-navy-soft);
}

.contact__value {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-2);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* ---------- footer ----------------------------------------------------- */

.footer {
  background: var(--paper);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer__name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* Studio credit: the last line of the page, small and muted but still AA. */
.footer__credit {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #515b6a;          /* 6.3:1 on --paper */
}
.footer__credit a {
  color: #5d6777;          /* 5.3:1 on --paper */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: rgb(93 103 119 / 0.4);
  text-underline-offset: 0.25em;
}
.footer__credit a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- 404 -------------------------------------------------------- */

.notfound {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(3.5rem, 10vw, 7rem);
}

.notfound__title {
  font-size: var(--step-3);
  margin-bottom: 0.75rem;
}

.notfound__text {
  max-width: 40ch;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* ---------- breakpoints ------------------------------------------------ */

/* Full-width actions on a phone: one thumb-sized target per line. */
@media (max-width: 30rem) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* Tablet portrait and up: the introduction and the calendar side by side,
   so the calendar is above the fold on an iPad as well. */
@media (min-width: 48rem) {
  /* Top-aligned, so the text does not move when the calendar box changes
     height after loading (layout shift). */
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .notfound {
    grid-template-columns: 1fr 1fr;
  }

  .terms__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .contact__inner {
    grid-template-columns: 1fr minmax(18rem, 24rem);
    align-items: end;
    gap: var(--gap);
  }
}

/* Between tablet and desktop the hero column is narrow; a smaller title keeps
   the longest word ("Vervangend", "remplaçant") on one line. */
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .hero__title {
    font-size: 2.35rem;
  }
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1fr minmax(22rem, 27rem);
  }

  .about {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
  .about__skills {
    padding-top: 0.75rem;   /* lines its small heading up with the large one */
  }

  .terms__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }
}

@media (hover: hover) {
  .btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .btn--solid:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }
  a.langbar__item:hover {
    color: var(--navy);
    border-color: var(--line);
  }
  .calendar__nav button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
  }
  .faq__item summary:hover {
    color: var(--accent);
  }
  .contact__line:hover .contact__value {
    text-decoration-color: var(--mint);
  }
  .footer__credit a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }
}

/* ---------- motion ----------------------------------------------------- */

/* One reveal, on the opening block only. Everything below is static. */
@media (prefers-reduced-motion: no-preference) {
  .hero__lede > *,
  .availability {
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  .hero__lede > *:nth-child(2) { animation-delay: 0.05s; }
  .hero__lede > *:nth-child(3) { animation-delay: 0.1s; }
  .hero__lede > *:nth-child(4) { animation-delay: 0.15s; }
  .availability {
    animation-name: rise-fade;
    animation-delay: 0.2s;
  }

  /* The heading and intro only slide: fading them in would hold back the
     page's largest paint (LCP). The calendar box fades as well. */
  @keyframes rise {
    from {
      transform: translateY(0.6rem);
    }
  }
  @keyframes rise-fade {
    from {
      opacity: 0;
      transform: translateY(0.6rem);
    }
  }

  .btn,
  .langbar__item,
  .calendar__nav button,
  .footer__credit a {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
  .contact__value {
    transition: text-decoration-color 0.15s ease;
  }
}
