/* Fraunces and Sora are licensed under the SIL Open Font License. Texts: assets/fonts/. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-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;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-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: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-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;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-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;
}

:root {
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --muted: #4e473f;
  --paper: #f3eee6;
  --paper-2: #e7e0d2;
  --cream: #f8f5f0;
  --rule: #cdbfa9;
  --sienna: #9c4320;
  --sienna-deep: #7a3014;
  --moss: #1f4a3a;
  --moss-deep: #16382c;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Sora", "Segoe UI", sans-serif;
  --wrap: 74rem;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(920px 420px at 100% -8%, rgba(31, 74, 58, 0.09), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

body.nav-locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

p,
li,
dd,
h1,
h2,
h3,
a,
figcaption,
label {
  overflow-wrap: break-word;
}

h1,
h2,
.plate-list dd,
.service-no,
.phase-no {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 1.15rem + 3.5vw, 4.15rem);
  margin: 0.35rem 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.45rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem);
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--sienna-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.fit :focus-visible,
.site-footer :focus-visible,
.cookie-bar :focus-visible {
  outline-color: #f6f1e7;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.accent {
  height: 4px;
  background: linear-gradient(90deg, var(--moss) 0 72%, var(--sienna) 72% 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
}

.brand-name,
.brand-meta {
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-meta {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-details > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-details > summary::-webkit-details-marker {
  display: none;
}

.nav-details > summary .label-close {
  display: none;
}

.nav-details[open] > summary .label-open {
  display: none;
}

.nav-details[open] > summary .label-close {
  display: inline;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-details:not([open]) .nav-list {
  display: none;
}

.nav-details[open] > summary {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 70;
  background: var(--paper);
}

.nav-details[open] .nav-list {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 5rem 1.25rem 2.5rem;
  background: var(--paper);
  overflow: auto;
}

.nav-details[open] .nav-list a {
  display: flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  text-decoration: none;
}

.nav-details[open] .nav-list a[aria-current="page"] {
  color: var(--sienna-deep);
}

main {
  display: block;
}

.page-intro,
.section-block,
.opening {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--sienna);
  font-variant-numeric: tabular-nums;
}

.lede,
.standfirst {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.action-row,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--sienna-deep);
  background: var(--sienna);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
  background: var(--sienna-deep);
  color: #fff;
}

a.btn.btn-ghost,
button.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

a.btn.btn-ghost:hover,
button.btn.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

a.btn.btn-line,
button.btn.btn-line {
  background: transparent;
  color: #f3eee6;
  border-color: #f3eee6;
}

a.btn.btn-line:hover,
button.btn.btn-line:hover {
  background: #f3eee6;
  color: var(--ink);
}

.action-row .btn {
  width: 100%;
}

.opening {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.opening h1 {
  max-width: 11.2em;
}

.plate {
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--moss);
  padding: 1rem 1.1rem 0.4rem;
}

.plate-title {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plate-list {
  margin: 0;
}

.plate-list div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.plate-list dt {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plate-list dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.3;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.ledger-list {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.ledger-list div {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-list dt {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.ledger-list dd {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.service-index {
  border-top: 1px solid var(--ink);
}

.service-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-no {
  margin: 0;
  color: var(--sienna);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.service-row h3 {
  margin: 0 0 0.3rem;
}

.service-row h3 a {
  color: inherit;
  text-decoration: none;
}

.service-row h3 a:hover {
  color: var(--sienna-deep);
  text-decoration: underline;
}

.service-row p {
  margin: 0;
}

.service-for {
  color: var(--muted);
}

.method-grid {
  display: grid;
  gap: 1.5rem;
}

.layers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.layers li {
  margin: 0 0 0.7rem;
  padding: 0.95rem 0 0.2rem 0.9rem;
  border-top: 1px solid var(--ink);
}

.layers li:nth-child(2) { margin-left: 0.45rem; }
.layers li:nth-child(3) { margin-left: 0.9rem; }
.layers li:nth-child(4) { margin-left: 1.35rem; }

.layers h3 {
  margin-bottom: 0.3rem;
}

.flow-sketch {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 2px solid var(--moss);
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.flow-sketch li {
  position: relative;
  padding: 0.75rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.flow-sketch li::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--sienna);
  border-radius: 50%;
}

.flow-sketch li:nth-child(3)::before {
  border-radius: 0;
  transform: rotate(45deg);
}

.sketch-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.fit {
  background: var(--moss);
  color: #f3eee6;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.fit h2,
.fit h3,
.fit p,
.fit li {
  color: inherit;
}

.fit a {
  color: #f3eee6;
}

.fit-grid,
.phase-grid,
.contact-grid,
.split,
.spec-grid {
  display: grid;
  gap: 1.5rem;
}

.fit ul,
.prose ul,
.prose ol,
.service-block ul,
.service-block ol,
.phase ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.fit li + li,
.prose li + li,
.service-block li + li {
  margin-top: 0.4rem;
}

.specimen {
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 1.1rem 1.1rem 0.4rem;
}

.specimen ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.specimen li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.specimen li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--sienna);
  font-family: var(--serif);
  font-weight: 560;
}

.close-band {
  background:
    linear-gradient(160deg, rgba(156, 67, 32, 0.18), transparent 32%),
    var(--moss-deep);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.glass {
  max-width: 46rem;
  padding: clamp(1.2rem, 3vw, 2.1rem);
  background: rgba(248, 245, 240, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(12, 24, 18, 0.18);
  backdrop-filter: blur(10px);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.crumb a {
  color: var(--ink-soft);
}

.with-toc {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.toc-list a:hover {
  border-color: var(--ink);
}

.prose {
  max-width: 44rem;
}

.prose h2,
.service-block h2,
.phase h2 {
  margin-top: 2rem;
}

.prose h2:first-child,
.service-block > h2 {
  margin-top: 0;
}

.page-end {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.service-block,
.phase,
.spec,
#preferences,
h2,
h3 {
  scroll-margin-top: 5.5rem;
}

.service-block,
.phase,
.spec {
  padding-top: 0.4rem;
}

.service-block + .service-block,
.phase + .phase,
.spec + .spec {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.phase-head {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.phase-no {
  color: var(--sienna);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  line-height: 1;
}

.role-label {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sienna-deep);
}

.faq-item summary h3 {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.spec {
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--paper-2);
  padding: 1.1rem 1.1rem 0.3rem;
}

.spec-meta {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.6rem;
}

.spec-meta div {
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.spec-meta dt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-meta dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}

.faq-group + .faq-group {
  margin-top: 2rem;
}

.faq-item {
  border-top: 1px solid var(--rule);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.85rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  line-height: 1.3;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--sienna);
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 0 1rem;
  max-width: 44rem;
}

.contact-card,
.form-card {
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 1.1rem;
}

address {
  font-style: normal;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.check label {
  margin-bottom: 0;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #8d8376;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

textarea {
  min-height: 11rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--ink);
}

.hint,
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.field-error,
.error-summary {
  color: var(--sienna-deep);
}

.error-summary,
.notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.error-summary ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.notice-ok {
  background: #e5efe9;
  border-color: var(--moss);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  flex: none;
  accent-color: var(--sienna);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--ink);
  color: #f3eee6;
  padding: 2.5rem 0 1.2rem;
}

.site-footer a {
  color: #f3eee6;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-title {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9d0c3;
}

.site-footer .nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-footer .nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f3eee6;
  text-decoration: none;
  font-size: 1rem;
}

.site-footer .nav-list a:hover,
.site-footer .nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand-on-dark .brand-name,
.brand-on-dark .brand-meta {
  color: #f3eee6;
}

.footer-brand p {
  max-width: 28rem;
}

.footer-base {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 230, 0.22);
}

.footer-base p {
  margin: 0;
  font-size: 0.9375rem;
  color: #d9d0c3;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: #f3eee6;
  padding: 0.9rem 0 1rem;
  box-shadow: 0 -10px 28px rgba(28, 25, 21, 0.18);
}

.cookie-bar p {
  margin: 0;
  max-width: 46rem;
}

.cookie-bar a {
  color: #f3eee6;
}

body.has-cookie {
  padding-bottom: 28rem;
}

.cookie-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0.75rem;
  background: rgba(28, 25, 21, 0.5);
}

.cookie-card {
  width: min(40rem, 100%);
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: 1.1rem;
  background: rgba(248, 245, 240, 0.97);
  border: 1px solid rgba(28, 25, 21, 0.25);
  box-shadow: 0 18px 48px rgba(28, 25, 21, 0.28);
  backdrop-filter: blur(12px);
  color: var(--ink);
}

.cookie-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-card-head h2 {
  margin: 0;
}

.text-button {
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--sienna-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--sienna);
}

.choice label {
  font-weight: 400;
}

.cookie-card .cookie-actions .btn {
  flex: 1 1 100%;
}

.defs {
  margin: 0 0 1rem;
}

.defs div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.defs dt {
  margin: 0;
  font-weight: 600;
}

.defs dd {
  margin: 0.2rem 0 0;
}

.not-found {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6rem);
  max-width: 40rem;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.opening-copy h1,
.plate {
  animation: rise 0.55s ease both;
}

.layers li {
  animation: rise 0.5s ease both;
}

.layers li:nth-child(2) { animation-delay: 0.05s; }
.layers li:nth-child(3) { animation-delay: 0.1s; }
.layers li:nth-child(4) { animation-delay: 0.15s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 480px) {
  .brand-name {
    font-size: 1.28rem;
  }
}

@media (min-width: 480px) {
  body.has-cookie {
    padding-bottom: 22rem;
  }
}

@media (min-width: 720px) {
  body.has-cookie {
    padding-bottom: 16rem;
  }

  .cookie-bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 1rem;
    align-items: center;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }

  .cookie-dialog {
    place-items: center;
  }

  .cookie-card .cookie-actions .btn {
    flex: 1 1 10rem;
  }

  .ledger-list div,
  .spec-meta {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .phase-grid,
  .fit-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .opening,
  .method-grid,
  .with-toc,
  .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.72fr);
    align-items: start;
  }

  .service-row {
    grid-template-columns: 3.2rem minmax(0, 1.2fr) minmax(12rem, 0.8fr);
    gap: 1rem;
    align-items: start;
  }

  .with-toc {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .toc {
    position: sticky;
    top: 5.6rem;
  }

  .toc-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .toc-list a {
    border: 0;
    border-left: 2px solid var(--rule);
    background: transparent;
    padding-left: 0.8rem;
  }

  .action-row .btn {
    width: auto;
  }

  .plate {
    box-shadow: 8px 8px 0 var(--moss);
  }
}

@media (min-width: 1081px) {
  .nav-details {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    margin-left: 1rem;
  }

  .nav-details > .site-nav {
    display: block;
    min-width: 0;
  }

  .nav-details > summary {
    display: none;
  }

  .nav-details:not([open]) .nav-list,
  .nav-details[open] .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: max-content;
    max-width: 100%;
    gap: 0.15rem 0.9rem;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .nav-details .nav-list a,
  .nav-details[open] .nav-list a {
    min-height: 44px;
    padding: 0.35rem 0;
    border-bottom: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
  }

  .nav-details .nav-list a[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--sienna);
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 1040px) {
  .cookie-bar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-bar .cookie-actions {
    margin-top: 0;
    flex-wrap: nowrap;
  }

  body.has-cookie {
    padding-bottom: 8.5rem;
  }
}

@media (max-width: 700px) {
  .opening-copy {
    display: flex;
    flex-direction: column;
  }

  .opening-copy .kicker { order: 0; }
  .opening-copy h1 { order: 1; }
  .opening-copy .action-row { order: 2; margin-top: 0.2rem; }
  .opening-copy .lede { order: 3; margin-top: 1rem; }
  .opening-copy .lede + p,
  .opening-copy p:last-child { order: 4; }
}

@media (max-width: 380px) and (max-height: 660px) {
  .header-inner {
    min-height: 3.5rem;
  }

  .opening {
    padding-top: 0.85rem;
  }

  .opening h1 {
    margin-bottom: 0.45rem;
  }
}

@media (max-width: 419px) {
  .brand-meta {
    display: none;
  }

  .kicker {
    letter-spacing: 0.04em;
  }

  .cookie-bar {
    padding: 0.55rem 0 0.6rem;
  }

  .cookie-bar p {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .cookie-bar .cookie-actions {
    gap: 0.4rem;
    margin-top: 0.45rem;
  }

  .cookie-bar .btn {
    min-height: 44px;
    padding: 0.35rem 0.55rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .plate,
  .spec,
  .cookie-card {
    border: 1px solid ButtonText;
  }
}
