@font-face { font-family: 'Kadwa'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/kadwa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kadwa'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/kadwa-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans KR'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-kr-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #dde8ea;
  --fg-light-base-body: #0d2a33;
  --fg-light-base-heading: #0d2a33;
  --fg-light-base-muted: #34505a;
  --fg-light-base-link: #005f63;
  --fg-light-base-inverse: #0d2a33;
  --bg-light-card: #f4f8f8;
  --fg-light-card-body: #0d2a33;
  --fg-light-card-heading: #0d2a33;
  --fg-light-card-muted: #34505a;
  --fg-light-card-link: #005f63;
  --fg-light-card-inverse: #0d2a33;
  --bg-light-elevated: #c8dadd;
  --fg-light-elevated-body: #0d2a33;
  --fg-light-elevated-heading: #0d2a33;
  --fg-light-elevated-muted: #34505a;
  --fg-light-elevated-link: #005f63;
  --fg-light-elevated-inverse: #0d2a33;
  --brand-light-accent: #005f63;
  --brand-light-accent-hover: #004b4f;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #005f63;
  --border-light-default: #4f6f78;
  --border-light-subtle: #a9c2c6;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Union County Bunion Notes: orthopaedic blueprint */

:root {
  --font-head: 'Kadwa', Georgia, serif;
  --font-body: 'IBM Plex Sans KR', 'Segoe UI', Arial, sans-serif;
  --sea: var(--brand-light-accent);
  --sea-deep: var(--brand-light-accent-hover);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --plate: var(--bg-light-card);
  --ink: var(--fg-light-base-heading);
  --film: var(--bg-light-elevated);
  --sheet-shadow: 6px 6px 0 var(--line);
  --graph:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 24px);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-clear: 5.5rem;
  --logo-w: clamp(13rem, 68vw, 17rem);
  --measure: 40rem;
  --hair: 1px solid var(--line-soft);
  --rule: 1px solid var(--line);
  --ticks: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px);
  --ticks-major: repeating-linear-gradient(90deg, var(--sea) 0 1px, transparent 1px 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-clear); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
}

body.bg-surface-base, main.bg-surface-base { background-image: var(--graph); background-attachment: fixed; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }
strong, b { font-weight: 600; }

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

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

/* ---------- Schematic strokes (inline SVG) ---------- */

.schematic { display: block; width: 100%; height: auto; }
.schematic .ln-grid { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.schematic .bone-outer { fill: none; stroke: var(--line); stroke-width: 22; stroke-linecap: round; }
.schematic .bone-inner { fill: none; stroke: var(--plate); stroke-width: 18; stroke-linecap: round; }
.schematic .joint { fill: var(--plate); stroke: var(--sea); stroke-width: 2.5; }
.schematic .bump { fill: none; stroke: var(--sea); stroke-width: 3; stroke-linecap: round; }
.schematic .ln-axis { fill: none; stroke: var(--line); stroke-width: 1.25; stroke-dasharray: 6 4; }
.schematic .ln-axis-drift { fill: none; stroke: var(--sea); stroke-width: 1.5; stroke-dasharray: 2 3; }
.schematic .ln-angle { fill: none; stroke: var(--sea); stroke-width: 2; }
.schematic .ln-dim { fill: none; stroke: var(--line); stroke-width: 1; }
.schematic .ln-target { fill: none; stroke: var(--sea); stroke-width: 1; stroke-dasharray: 1 3; }
.schematic .ln-true { fill: none; stroke: var(--sea); stroke-width: 2.5; }

/* ---------- Header: pinned title block with a scale bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--rule);
}

.header-row {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { flex: none; display: inline-flex; align-items: center; text-decoration: none; }
.brand .site-logo { display: block; width: var(--logo-w); height: auto; }

.header-scale { height: 6px; background: var(--ticks-major), var(--ticks); opacity: 0.7; }

/* Menu: a floating drawing plate of link cells under the menu label */

.site-menu { position: static; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.site-menu > summary:hover { border-color: var(--sea); }

.site-menu .menu-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
}

.site-menu .menu-icon::after {
  content: '';
  position: absolute;
  inset: -2px auto auto -2px;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--sea);
}

.site-menu[open] > summary { box-shadow: none; transform: translate(3px, 3px); }

.site-menu > ul {
  position: fixed;
  inset: calc(var(--logo-w) * 56 / 300 + 1.6rem + 7px) 0.75rem auto 0.75rem;
  max-height: calc(100vh - var(--logo-w) * 56 / 300 - 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--sheet-shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 2px;
}

.site-menu > ul::before {
  content: '';
  grid-column: 1 / -1;
  height: 4.5rem;
  background:
    radial-gradient(circle, var(--plate) 0 0.4rem, var(--sea) 0.4rem 0.55rem, transparent 0.55rem) 1.6rem 3.7rem / 1.6rem 1.6rem no-repeat,
    linear-gradient(114deg, transparent calc(50% - 1.5px), var(--sea) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) 0.8rem 0 / 3.2rem 9rem no-repeat,
    repeating-linear-gradient(0deg, var(--line) 0 4px, transparent 4px 7px) 2.35rem 0 / 2px 100% no-repeat,
    var(--ticks-major) 0 0 / 100% 10px no-repeat,
    var(--ticks) 0 0 / 100% 6px no-repeat,
    var(--graph),
    var(--film);
}

.site-menu > ul > li {
  position: relative;
  min-height: 5.25rem;
  background: var(--plate);
}

.site-menu > ul > li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid var(--sea);
  border-left: 2px solid var(--sea);
}

.site-menu a {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 1.6rem 0.8rem 0.75rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-menu a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-menu > ul > li:hover { background: var(--film); }

.site-menu ul ul { list-style: none; margin: 0 0 0.75rem; padding: 0 0 0 1rem; border-left: 2px solid var(--sea); }
.site-menu ul ul a { font-family: var(--font-body); font-size: 1rem; padding: 0.4rem 0; }

@media (max-width: 39.99rem) {
  .site-menu > summary { padding: 0.4rem 0.8rem; }
  .site-menu .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 64rem) {
  .site-menu { position: relative; }
  .site-menu > ul {
    position: absolute;
    inset: calc(100% + 0.9rem) 0 auto auto;
    width: 38rem;
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .site-menu a { font-size: 1.1rem; }
}

/* ---------- Page shell and breadcrumbs ---------- */

.page-shell { min-height: 60vh; }

.breadcrumbs { max-width: 76rem; margin: 0 auto; padding: 1rem var(--gutter) 0; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.breadcrumbs li { position: relative; }
.breadcrumbs li + li::before {
  content: '';
  position: absolute;
  left: -0.6rem;
  top: 50%;
  width: 0.35rem;
  border-top: 1px solid var(--line);
}

/* ---------- Shared prose ---------- */

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4rem 0 0.7rem; }
.prose h3 { font-size: 1.35rem; margin: 1.8rem 0 0.5rem; }
.prose p { margin: 0 0 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--sea); }
.prose a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--sea); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: var(--hair); vertical-align: top; }
.prose th { border-bottom: var(--rule); font-weight: 600; }

.photo-hero, .prose figure { margin: 0 0 1.6rem; padding: 0.5rem; border: var(--rule); background: var(--plate); }
.photo-hero img, .prose figure img { display: block; width: 100%; height: auto; }
.prose img { max-width: 100%; height: auto; }

.page-title h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Home: stepped bench ---------- */

.bench {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 4rem;
  display: grid;
  gap: 2.75rem;
}

.step { position: relative; }

.step-hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 2px solid var(--ink);
  box-shadow: var(--sheet-shadow);
}

.hero-title h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
.hero-lines { margin-top: 1.4rem; max-width: 30rem; border-left: 3px solid var(--sea); padding-left: 1rem; }
.hero-lines .display-line { margin: 0 0 0.6rem; font-size: 1.1rem; }
.hero-lines .display-line:last-child { margin-bottom: 0; }

.joint-drawing { max-width: 24rem; width: 100%; justify-self: center; border: var(--hair); }

.step-read, .step-index { margin-left: 0; }

.step-read { padding-left: clamp(1rem, 3vw, 2rem); border-left: 2px solid var(--sea); }
.step-read::before,
.step-index::before {
  content: '';
  position: absolute;
  top: -2.75rem;
  left: -2px;
  height: 2.75rem;
  border-left: 2px dashed var(--sea);
}

.step-index {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--rule);
  border-left: 4px solid var(--sea);
}

.index-title { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.index-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stage;
  display: grid;
  gap: 0.75rem;
}

.index-steps li {
  counter-increment: stage;
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 3.4rem;
  border-top: var(--rule);
}

.index-steps li::before {
  content: counter(stage);
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--sea);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--sea);
}

.index-steps a { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; }

@media (min-width: 60rem) {
  .step-hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .step-read { margin-left: 6rem; }
  .step-index { margin-left: 12rem; }
  .step-read::before { left: -6rem; width: 6rem; border-left: 0; border-top: 2px dashed var(--sea); top: -1.4rem; height: 0; }
  .step-index::before { left: -6rem; width: 6rem; border-left: 0; border-top: 2px dashed var(--sea); top: -1.4rem; height: 0; }
  .index-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

/* ---------- Topic hub: technical catalogue grid ---------- */

.catalogue {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  display: grid;
  gap: 2rem;
}

.catalogue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 1.25rem;
  align-items: end;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-top: 4px solid var(--sea);
  box-shadow: var(--sheet-shadow);
}

.sheet-thumb { border: var(--hair); }

.catalogue-sheets { padding: clamp(1.1rem, 3vw, 2rem); border: var(--rule); }

.sheets-title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); }

.sheets ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sheet;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.sheets li {
  counter-increment: sheet;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: var(--rule);
}

.sheets li::before {
  content: '';
  display: block;
  height: 5.5rem;
  border-bottom: var(--hair);
  background:
    linear-gradient(118deg, transparent calc(50% - 1px), var(--sea) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 60% 0 / 50% 60% no-repeat,
    linear-gradient(90deg, transparent calc(50% - 5px), var(--line) calc(50% - 5px) calc(50% + 5px), transparent calc(50% + 5px)) 35% 100% / 30% 55% no-repeat,
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 16px);
}

.sheets li::after {
  content: counter(sheet, decimal-leading-zero);
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--sea);
  background: var(--plate);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sea);
}

.sheets a {
  display: block;
  padding: 0.85rem 0.9rem 1rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 64rem) {
  .catalogue { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalogue-head { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 8.5rem; }
  .catalogue-body { grid-column: 1 / -1; }
  .catalogue-sheets { grid-column: 1 / -1; }
}

/* ---------- Article: text with a pinned figure column ---------- */

.sheet { max-width: 76rem; margin: 0 auto; padding: 1.5rem var(--gutter) 4rem; }

.sheet-head { padding-bottom: 1.25rem; margin-bottom: 2rem; border-bottom: var(--rule); max-width: 52rem; }

.sheet-columns { display: grid; gap: 2rem; }

.figure-column { border: var(--rule); align-self: start; }

.figure-pin { padding: 1rem; display: grid; gap: 1rem; }

.figure-drawing { border: var(--hair); max-width: 15rem; }

.figure-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }

.key { position: relative; padding-left: 2.2rem; }
.key::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 1.7rem; }
.key-bone::before { height: 0.6rem; top: 0.45em; border: 2px solid var(--line); border-radius: 999px; }
.key-axis::before { border-top: 1.5px dashed var(--line); }
.key-drift::before { border-top: 2px dotted var(--sea); }
.key-joint::before { width: 0.8rem; height: 0.8rem; top: 0.35em; left: 0.45rem; border: 2px solid var(--sea); border-radius: 50%; }

@media (min-width: 60rem) {
  .sheet-columns { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; }
  .figure-column { position: sticky; top: calc(var(--header-clear) + 1rem); }
}

/* ---------- About: specification sheet ---------- */

.spec { max-width: 66rem; margin: 0 auto; padding: 1.5rem var(--gutter) 4rem; display: grid; gap: 0; }

.spec-head {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: var(--rule);
  border-bottom: 0;
}

.spec-scale { margin-top: 1.25rem; height: 8px; background: var(--ticks-major), var(--ticks); }

.spec-table {
  max-width: none;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: var(--rule);
  border-top: 3px solid var(--sea);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.spec-table > :not(h2 ~ *) { font-size: 1.15rem; max-width: 46rem; }
.spec-table > h2 { margin: 1.6rem 0 0.5rem; padding-top: 1rem; border-top: var(--rule); font-size: 1.5rem; }

@media (min-width: 48rem) {
  .spec-table { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 2rem; }
  .spec-table > * { grid-column: 2; }
  .spec-table > :not(h2 ~ *) { grid-column: 1 / -1; }
  .spec-table > h2 { grid-column: 1; margin: 0; padding: 1rem 0; }
  .spec-table > h2 + * { padding-top: 1rem; border-top: var(--rule); }
  .spec-table > h2 + * { margin-top: 0; }
  .spec-table > :not(h2 ~ *) + h2 { margin-top: 1rem; }
}

/* ---------- Contact: drafting card ---------- */

.drafting { max-width: 48rem; margin: 0 auto; padding: 1.5rem var(--gutter) 4rem; display: grid; gap: 2rem; }

.drafting-head { padding-bottom: 1rem; border-bottom: var(--rule); }

.card-frame { position: relative; padding: 14px 0 0 14px; }

.ruler { position: absolute; }
.ruler-top { top: 0; left: 14px; right: 0; height: 10px; background: var(--ticks-major), var(--ticks); }
.ruler-side {
  top: 14px;
  left: 0;
  bottom: 0;
  width: 10px;
  background:
    repeating-linear-gradient(0deg, var(--sea) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 8px);
}

.drafting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  box-shadow: var(--sheet-shadow);
}

.field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.3rem 0.75rem; }

.field-label { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }

.field-hint {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  padding: 0 0.4rem;
  border: 1px dashed var(--line);
}

.field-input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-radius: 0;
}

.field-input:focus { border-bottom-color: var(--sea); }
.field-area { min-height: 10rem; resize: vertical; }

.card-foot { padding-top: 0.5rem; border-top: var(--hair); }

.submit-button {
  min-height: 2.9rem;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--sea);
  border-radius: 2px;
  cursor: pointer;
}

.submit-button:hover { border-color: var(--sea-deep); box-shadow: inset 0 -4px 0 var(--sea); }

@media (min-width: 40rem) {
  .drafting-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}

/* ---------- Thank you: drawing title block ---------- */

.confirm { max-width: 52rem; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }

.confirm .title-block {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--sheet-shadow);
}

.title-block > * { background: var(--plate); }

.tb-drawing { padding: 0.5rem; background: var(--film); display: grid; place-items: center; }
.tb-drawing .schematic { max-width: 9rem; }

.tb-title { padding: 1rem 1.1rem; display: flex; align-items: center; }
.tb-title h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }

.tb-body { grid-column: 1 / -1; max-width: none; padding: clamp(1.1rem, 3vw, 2rem); }
.tb-body > * { max-width: var(--measure); }

@media (min-width: 48rem) {
  .confirm .title-block { grid-template-columns: 12rem minmax(0, 1fr); }
  .tb-drawing { grid-row: 1 / span 2; }
  .tb-body { grid-column: 2; }
  .tb-title { padding: 1.5rem 2rem; }
}

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; border-top: 3px solid var(--sea); }

.footer-grid {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.footer-name { margin: 0 0 0.35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.footer-line { margin: 0; max-width: 32rem; font-size: 0.95rem; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.25rem 1.5rem; }
.footer-links a { display: inline-block; padding: 0.4rem 0; }

@media (min-width: 60rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}

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

.confirm-note { margin: 0 0 1rem; font-size: 1.1rem; }

/* ---------- Not found: home hero without display lines ---------- */

.error-body { margin-top: 1.4rem; max-width: 30rem; border-left: 3px solid var(--sea); padding-left: 1rem; }
