/* HB Medical Supplies
   A company record, not a landing page. Palette taken from a surgical field:
   drape teal, sterile off-white, instrument steel, povidone amber used once. */

:root {
  --drape:  #2F5D5B;
  --field:  #FBFBF9;
  --steel:  #6E7673;
  --ink:    #1B2322;
  --amber:  #9A6414;
  --rule:   #DEE2DE;

  --measure: 64ch;
  --label-col: 13rem;
}

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

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "onum" 1;
}

h1, h2, h3, nav, .label, .masthead-name, .nav-link, footer small {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: normal;
}

a { color: var(--drape); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

/* ---- shell ---------------------------------------------------------- */

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.masthead-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.topbar nav { display: flex; gap: 1.5rem; }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--drape); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---- opening block -------------------------------------------------- */

.opening {
  padding: 5.5rem 0 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--drape);
  max-width: 24ch;
}

.descriptor {
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--steel);
  max-width: 44ch;
}

.opening .lede {
  margin: 2.5rem 0 0;
  max-width: var(--measure);
  font-size: 1.1875rem;
  line-height: 1.65;
}

/* ---- the one demonstration ------------------------------------------ */
/* The page's single memorable moment: a real dictated note and the real
   follow-ups it produced. Everything else on the page stays quiet so this
   can be the thing people remember. */

.demo {
  margin: 2.75rem 0 0;
  max-width: 40rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.demo-said {
  margin: 0;
  padding: 1.6rem 1.75rem;
  background: #F1F5F4;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
}

.demo-out { margin: 0; padding: 1.35rem 1.75rem; list-style: none; }

.demo-out li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  font-family: Archivo, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.demo-out li + li { border-top: 1px solid var(--rule); }

.demo-when {
  flex: 0 0 7.5rem;
  font-weight: 600;
  color: var(--drape);
}

.demo-cap {
  padding: 0 1.75rem 1.35rem;
  font-family: Archivo, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--steel);
}

@media (max-width: 30rem) {
  .demo-when { flex-basis: 100%; }
}

/* ---- labelled rows -------------------------------------------------- */
/* The label/content split is the page's only structural device. It says
   "this is a record with fields", which is the whole point of the page. */

.row {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 0 3rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.row > .label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--steel);
  letter-spacing: 0.005em;
  position: sticky;
  top: 2rem;
}

.row > .content > :first-child { margin-top: 0; }
.row > .content > :last-child  { margin-bottom: 0; }
.row > .content { max-width: var(--measure); }

.row p { margin: 0 0 1.1rem; }

.row h2 {
  margin: 0 0 0.9rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.row h2 + p { margin-top: 0; }

.row h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.row ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.row li { margin-bottom: 0.45rem; }

/* ---- pricing -------------------------------------------------------- */
/* The price sits in the label column, so the section reads as a rate card
   rather than three floating pricing cards. Same structural device as the
   rest of the page, doing a different job. */

.row--price > .label { position: static; }

.price {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--drape);
}

.price-cadence {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
}

.price-note {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--steel);
}

.includes { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.includes li { margin-bottom: 0.4rem; }

/* ---- actions -------------------------------------------------------- */

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

.action {
  font-family: Archivo, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.85rem 1.3rem;
  border-radius: 2px;
  text-decoration: none;
}

.action--primary {
  background: var(--drape);
  color: #fff;
  border: 1px solid var(--drape);
}
.action--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.action--plain {
  background: transparent;
  color: var(--drape);
  border: 1px solid var(--rule);
}
.action--plain:hover { border-color: var(--drape); color: var(--drape); }

/* The contact row is the one place the amber appears. */
.row--contact { border-top: 2px solid var(--amber); }

.contact-list {
  margin: 0;
  display: grid;
  gap: 0.65rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, max-content));
}
.contact-list dt {
  font-family: Archivo, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: 0.15rem;
}
.contact-list dd { margin: 0 0 0.9rem; }

/* ---- the bits Ben fills in ------------------------------------------ */
/* Deliberately loud. These must be impossible to miss and impossible to
   ship by accident. */

.fill {
  background: #FFF3D6;
  border-bottom: 2px solid var(--amber);
  padding: 0.05em 0.3em;
  font-family: Archivo, sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  color: #6B4308;
}

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

footer {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3.5rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
footer small { font-size: 0.8125rem; color: var(--steel); }
footer nav { display: flex; gap: 1.5rem; }

/* ---- legal pages ---------------------------------------------------- */

.doc-head { padding: 4.5rem 0 2.5rem; }
.doc-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 30ch;
}
.doc-head .updated {
  margin: 1.25rem 0 0;
  font-family: Archivo, sans-serif;
  font-size: 0.875rem;
  color: var(--steel);
}

/* ---- responsive ----------------------------------------------------- */

@media (max-width: 46rem) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 2.25rem 0;
  }
  .row > .label { position: static; top: auto; }
  .opening { padding: 3.5rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar nav, footer nav { display: none; }
  body { background: #fff; }
  .fill { background: none; border-bottom: 1px solid #000; }
}
