:root {
  --ink: #14212b;
  --steel: #5d7285;
  --wire: #b9c7d3;
  --wash: #edf2f6;
  --paper: #ffffff;
  --accent: #0e6f5f;
  --accent-dark: #0a5648;
  --signal: #b4381f;
  --measure: 68ch;
  --shell: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, .wordmark, .btn, .nav a, .menu-toggle, .footer-name, th {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 .6rem;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 2.6rem 0 .8rem;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 1.8rem 0 .4rem;
}

p, ul, ol, table { max-width: var(--measure); }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.05rem; padding-left: 1.15rem; }
li { margin-bottom: .45rem; }

a { color: var(--accent-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: .7rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }

/* masthead ---------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--wire); background: var(--paper); }
.masthead-in { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.navbar { border-top: 1px solid var(--wire); background: var(--paper); }

.wordmark {
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.wordmark span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 46px; }
.nav a {
  font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--steel);
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.here { color: var(--ink); border-bottom-color: var(--accent); }
.nav-call {
  color: var(--ink); font-family: Archivo, sans-serif; font-weight: 600; font-size: .95rem;
  text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}

.nav-call-menu { display: none; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--wire); border-radius: 2px;
  color: var(--ink); font-size: .9rem; padding: .4rem .75rem; cursor: pointer;
}

/* hero media -------------------------------------------------------- */
.hero-media { margin: 0; width: 100%; background: var(--wash); line-height: 0; }
.hero-media img { width: 100%; height: clamp(260px, 34vw, 460px); object-fit: cover; object-position: center 34%; display: block; }
.hero-under-media { padding-top: 2.6rem; }

@media (max-width: 700px) {
  .hero-media img { height: clamp(240px, 58vw, 320px); object-position: center 30%; }
  .hero-under-media { padding-top: 1.9rem; }
}

/* hero -------------------------------------------------------------- */
.hero { padding: 3.4rem 0 2.6rem; border-bottom: 1px solid var(--wire); }
.hero .lede { font-size: 1.22rem; color: var(--steel); max-width: 60ch; }
.hero .wire { margin: 1.6rem 0 1.4rem; }

/* the archwire: a hairline with bracket nodes */
.wire { position: relative; height: 10px; max-width: 34rem; }
.wire::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px;
  height: 2px; background: var(--wire);
}
.wire i {
  position: absolute; top: 0; width: 10px; height: 10px;
  background: var(--paper); border: 2px solid var(--accent);
}
.wire i:nth-child(1) { left: 4%; }
.wire i:nth-child(2) { left: 27%; }
.wire i:nth-child(3) { left: 50%; }
.wire i:nth-child(4) { left: 73%; }
.wire i:nth-child(5) { left: 94%; }

/* in-page media ----------------------------------------------------- */
.page-media { margin: 0; padding: 2.2rem 0 0; }
.page-media picture { display: block; }
.page-media img {
  width: 100%; height: auto; display: block; border-radius: 2px; background: var(--wash);
}
.page-media figcaption {
  font-size: .9rem; color: var(--steel); margin-top: .6rem; max-width: var(--measure);
}

/* body sections ----------------------------------------------------- */
.prose { padding: 2.4rem 0 1rem; }
.prose > .shell > h2:first-child { margin-top: 0; }

.lede { font-size: 1.1rem; }

blockquote {
  margin: 1.6rem 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--accent);
  max-width: var(--measure); font-style: italic; color: var(--steel);
}

.note {
  background: var(--wash); border: 1px solid var(--wire); border-radius: 2px;
  padding: 1.1rem 1.2rem; margin: 1.7rem 0; max-width: var(--measure);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

.urgent { border-left: 3px solid var(--signal); background: #fdf3f0; border-color: #eccbc2; }

/* option list: types of braces, comparisons */
.options { list-style: none; padding: 0; max-width: 100%; display: grid; gap: 0; }
.options li {
  border-top: 1px solid var(--wire); padding: 1.35rem 0; margin: 0;
  display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: start;
}
.options li:last-child { border-bottom: 1px solid var(--wire); }
.options h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.options p { margin: 0; max-width: 52ch; }
.options .meta { color: var(--steel); font-size: .95rem; }

table { border-collapse: collapse; width: 100%; max-width: 100%; margin: 1.6rem 0; font-size: .97rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--wire); vertical-align: top; }
th { font-weight: 600; font-size: .9rem; color: var(--ink); border-bottom: 2px solid var(--wire); }

/* cta --------------------------------------------------------------- */
.cta { background: var(--ink); color: #eaf0f4; margin-top: 3rem; padding: 2.8rem 0; }
.cta h2 { margin: 0 0 .6rem; color: #fff; }
.cta p { color: #c3d0da; max-width: 58ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.cta-nap { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(185,199,211,.25);
  font-size: .95rem; line-height: 1.7; color: #c3d0da; }
.cta-nap strong { color: #fff; font-weight: 600; }
.cta-nap a { color: #eaf0f4; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-size: .96rem; font-weight: 600; padding: .8rem 1.3rem; border-radius: 2px;
}
.btn:hover { background: #12866f; color: #fff; }
.btn-quiet { background: transparent; border: 1px solid #46586a; color: #eaf0f4; }
.btn-quiet:hover { background: #1d2f3d; color: #fff; }

.hero .btn { margin-top: .4rem; }

/* footer ------------------------------------------------------------ */
.footer { background: var(--wash); border-top: 1px solid var(--wire); padding: 2.4rem 0 1.6rem; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer p, .footer ul { font-size: .95rem; margin-bottom: .4rem; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: .3rem; }
.footer-name { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.footer-fine { margin-top: 2rem; border-top: 1px solid var(--wire); padding-top: 1.1rem; }
.footer-fine p { font-size: .85rem; color: var(--steel); max-width: 80ch; margin-bottom: .5rem; }
.footer-copyright { margin-bottom: 0; }

/* mobile ------------------------------------------------------------ */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .masthead-in { gap: .6rem; min-height: 56px; }
  .wordmark { font-size: .97rem; }
  .nav-call { font-size: .88rem; }
  .nav-call-menu { display: block; color: var(--accent-dark); font-weight: 600; }
  .menu-toggle { padding: .35rem .65rem; }
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .1rem; padding-bottom: .9rem; }
  body.nav-open .nav { display: flex; }
  .navbar { border-top: 0; }
  .nav a { width: 100%; padding: .6rem 0; border-bottom: 1px solid var(--wire); }
  .nav a.here { border-bottom-color: var(--accent); }
  .options li { grid-template-columns: 1fr; gap: .35rem; }
  .footer-in { grid-template-columns: 1fr; gap: 1.5rem; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--wire); padding: .6rem 0; }
  td { border: 0; padding: .25rem 0; }
  td::before { content: attr(data-label) ": "; font-weight: 600; }
  .hero { padding: 2.4rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 430px) {
  .masthead-in .nav-call { display: none; }
  .wordmark { font-size: .95rem; }
}
