:root {
  --cream: #F6F0E2;
  --navy: #111527;
  --gold: #F1AB1C;
  --sand: #C9B98A;
  --charcoal: #1A1A1A;
  --serif: 'Playfair Display', Georgia, serif;
  --label: 'Montserrat', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--navy); font: italic 16px/1.5 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
button { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 20px; top: -100px; padding: 12px; background: var(--navy); color: var(--cream); z-index: 2; }
.skip:focus { top: 12px; }
.icon-definitions { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon, .copy-mark { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; border-bottom: 1px solid var(--sand); }
.wordmark { font: 400 27px/1 var(--serif); text-decoration: none; }
.wordmark span { display: block; font: italic 12px/1.5 var(--serif); margin-top: 6px; }
.masthead nav { display: flex; gap: 28px; font: 600 11px/1.5 var(--label); }
.masthead nav a { padding-block: 12px; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: center; padding: 46px 0 34px; }
.eyebrow { margin: 0 0 20px; font: 700 9px/1.8 var(--label); color: var(--gold); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; font-style: normal; }
h1 { font-size: clamp(52px, 5.8vw, 80px); line-height: 1.06; }
h1 em { font-weight: 400; }
.lede { margin-top: 23px; font-size: 19px; color: var(--charcoal); }
.setup-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 29px; }
.primary { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; min-height: 56px; border: 0; padding: 15px 21px; background: var(--gold); color: var(--navy); font: 700 12px/1.5 var(--label); }
.primary:hover { background: var(--navy); color: var(--cream); }
.primary.repair { background: var(--navy); color: var(--cream); gap: 14px; }
.primary.repair:hover { background: var(--gold); color: var(--navy); }
.download { font-size: 14px; }
.setup-note { margin-top: 15px; font-size: 12px; }
.copy-status { min-height: 23px; margin-top: 8px; font-size: 13px; }
.trinity { background: var(--navy); border-left: 5px solid var(--gold); color: var(--cream); padding: 27px 27px 22px; }
.trinity .eyebrow { margin-bottom: 5px; }
.trinity-art { display: block; width: 100%; height: auto; overflow: visible; }
.diagram-lines { stroke: var(--gold); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.diagram-title { fill: var(--cream); font: 400 26px var(--serif); }
.diagram-subtitle { fill: var(--cream); font: italic 14px var(--serif); }
.diagram-connector { stroke: var(--cream); stroke-width: 1; fill: none; }
.diagram-output { fill: var(--cream); font: italic 40px var(--serif); }
.setup-path { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 29px; }
.setup-path > div, .setup-path > a { display: flex; align-items: center; gap: 15px; }
.setup-path > a { text-decoration: none; }
.setup-path > a:hover { text-decoration: underline; }
.step-number { font: 400 31px/1 var(--serif); }
.path-arrow { width: 40px; stroke: var(--navy); }
.quick-tools { padding: 27px 0 0; border-top: 1px solid var(--sand); }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2 { font-size: 25px; line-height: 1.2; }
.section-top > a { font-size: 13px; }
.tool-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
.quick-action { display: flex; align-items: center; flex-direction: column; gap: 11px; position: relative; min-height: 98px; border: 0; padding: 15px 7px 12px; background: transparent; color: var(--navy); font: italic 14px/1.4 var(--serif); }
.quick-action .icon { width: 27px; height: 27px; }
.quick-action .copy-mark { position: absolute; width: 13px; height: 13px; right: 9px; top: 10px; opacity: 0; }
.quick-action:hover, .quick-action:focus-visible { background: var(--navy); color: var(--cream); }
.quick-action:hover .copy-mark, .quick-action:focus-visible .copy-mark { opacity: 1; }
#tool-status { text-align: center; margin-top: 4px; }
.source-drawer { margin-top: 14px; font-size: 14px; }
.source-drawer > summary { display: list-item; cursor: pointer; padding: 10px 0; }
.source-drawer > p { margin: 15px 0; }
.source-drawer section { margin-top: 24px; }
h3 { font-size: 22px; }
pre { max-width: 100%; margin: 14px 0 25px; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--navy); color: var(--cream); font: normal 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--sand); padding: 22px 0 25px; margin-top: 12px !important; font-size: 12px; }
@media (min-width: 1600px) { .hero { padding-block: 70px 48px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 52px); }
  .hero { gap: 30px; }
  h1 { font-size: 58px; }
  .lede { font-size: 16px; }
  .setup-actions { gap: 16px; }
  .primary { gap: 20px; padding-inline: 17px; }
  .trinity { padding: 23px 16px 18px; }
  .setup-path { font-size: 14px; }
  .quick-action { font-size: 13px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { padding-block: 22px; }
  .masthead nav { gap: 18px; font-size: 10px; }
  .wordmark { font-size: 24px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; padding-bottom: 19px; }
  h1 { font-size: clamp(52px, 11vw, 75px); }
  .hero-copy { max-width: 480px; }
  .eyebrow { margin-bottom: 15px; }
  .lede { margin-top: 17px; font-size: 17px; }
  .setup-actions { margin-top: 23px; }
  .primary { min-height: 54px; gap: 26px; }
  .trinity { padding: 22px 20px 14px; }
  .setup-path { align-items: start; gap: 9px; padding: 12px 0 24px; font-size: 12px; }
  .setup-path > div, .setup-path > a { flex: 1; align-items: start; flex-direction: column; gap: 9px; }
  .step-number { font-size: 27px; }
  .path-arrow { width: 20px; margin-top: 3px; }
  .quick-tools { padding-top: 22px; }
  .tool-row { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .quick-action { min-height: 98px; font-size: 14px; }
  h2 { font-size: 24px; }
  footer { flex-wrap: wrap; gap: 12px 20px; font-size: 12px; }
  footer > span { width: 100%; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 30px); }
  .masthead nav { gap: 11px; font-size: 9px; }
  .wordmark { font-size: 22px; }
  .setup-actions { gap: 13px; }
  .primary { gap: 12px; padding-inline: 14px; }
  .download { font-size: 12px; }
  .setup-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .wrap { width: 100%; }
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .trinity { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .copy-status, .source-drawer, .skip { display: none; }
  button { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
