*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #1c1914;
  background-color: #efe6d8;
  background-image: linear-gradient(#f4eee4, #efe6d8 220px);
  overflow-wrap: break-word;
  padding-bottom: 9.5rem;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 13rem;
  }
}

html.consent-set:not(.consent-open) body {
  padding-bottom: 0;
}

html.prefs-open body {
  padding-bottom: 20rem;
}

@media (max-width: 720px) {
  html.prefs-open body {
    padding-bottom: 24rem;
  }
}

h1,
h2,
h3,
.brand-name,
.faq-list summary {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.45rem);
  margin: 0 0 0.85rem;
  max-width: 36rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  margin: 0 0 0.7rem;
  max-width: 40rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #6e3018;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #6e3018;
  outline-offset: 3px;
}

.band-dark :focus-visible,
.btn-copper:focus-visible {
  outline-color: #f6f1e8;
}

::selection {
  background: #e7c4b0;
  color: #1c1914;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.4rem;
  transform: translateY(-150%);
  background: #fffaf3;
  color: #1c1914;
  padding: 0.45rem 0.7rem;
  z-index: 60;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f4eee4;
  border-top: 5px solid #9c4a28;
  border-bottom: 1px solid #d5c7b4;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: #1c1914;
  text-decoration: none;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  color: #1e3a32;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
}

.brand-meta,
.footer-kicker,
.kicker {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.875rem;
  color: #3a342c;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #1c1914;
  background: transparent;
  color: #1c1914;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0 0.7rem;
}

.site-nav {
  border-top: 1px solid #d5c7b4;
}

.nav-list a {
  display: inline-block;
  padding: 0.3rem 0;
  color: #1c1914;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: #6e3018;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  color: #6e3018;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.6;
  max-width: 44rem;
}

.fine {
  color: #3a342c;
  font-size: 0.9375rem;
}

.fine a,
.nap a {
  overflow-wrap: anywhere;
}

.section {
  padding-block: 2.3rem;
}

.ruled {
  border-top: 1px solid #d9cbb8;
}

.running-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid #1c1914;
  border-bottom: 1px solid #1c1914;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
  padding-top: 1.4rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  text-decoration: none;
  border: 1px solid #1c1914;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.btn-copper {
  background: #6e3018;
  border-color: #6e3018;
  color: #fffaf3;
}

.btn-copper:hover {
  background: #542412;
  color: #fffaf3;
}

.btn-plain {
  background: transparent;
  color: #1c1914;
}

.btn-plain:hover {
  background: #1c1914;
  color: #fffaf3;
}

.route-board {
  margin: 0;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 250, 243, 0.78));
  border: 1px solid rgba(28, 25, 20, 0.12);
  box-shadow: 8px 8px 0 #1e3a32, inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.route-board svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 420 / 200;
}

.route-board figcaption p {
  margin: 0.8rem 0 0.45rem;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.route-legend li {
  font-size: 0.9375rem;
}

.route-legend li::before {
  content: "";
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.35rem;
  background: #9c4a28;
  vertical-align: 0.08em;
}

.route-legend .is-wait::before {
  background: transparent;
  border: 2px solid #1e3a32;
}

.situation,
.manual,
.method,
.principle-list,
.timeline,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.situation li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.8rem 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid #d9cbb8;
}

.situation h3,
.situation p,
.manual p,
.method p {
  margin: 0;
}

.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #1c1914;
  margin-top: 1rem;
}

.method li {
  min-width: 0;
  padding: 1rem 1rem 1.1rem 0;
  border-bottom: 1px solid #1c1914;
}

.method h3 {
  margin-bottom: 0.4rem;
}

.method p + p,
.manual p {
  margin-top: 0.45rem;
}

.manual li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  align-items: baseline;
  border-top: 1px solid #d9cbb8;
  padding: 0.95rem 0;
}

.manual .num {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: #6e3018;
  font-size: 1.15rem;
}

.manual h3 {
  margin: 0;
  font-size: 1.32rem;
}

.specimen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.specimen li {
  padding-top: 0.55rem;
  border-top: 2px solid #1e3a32;
}

.band-dark {
  padding: 2.6rem 0;
  background: linear-gradient(165deg, #1a302a 0%, #243f36 58%, #1a2824 100%);
  color: #f6f1e8;
  border-top: 4px solid #9c4a28;
}

.band-dark a {
  color: #f0d3b4;
}

.band-dark h2 {
  color: #fffaf3;
}

.crumbs {
  margin: 0 0 0.85rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #3a342c;
}

.page-intro {
  padding-top: 1.5rem;
  padding-bottom: 0.3rem;
}

.measure {
  max-width: 68ch;
}

.principle {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid #9c4a28;
}

.principle p {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.28;
}

.principle-source {
  margin-top: 0.55rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  color: #3a342c;
}

.principle-list {
  counter-reset: rule;
}

.principle-list li {
  counter-increment: rule;
  position: relative;
  border-top: 1px solid #1c1914;
  padding: 0.95rem 0 0.95rem 3.2rem;
}

.principle-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  color: #6e3018;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.values {
  margin: 0;
}

.values dt {
  margin-top: 1rem;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.values dd {
  margin: 0.25rem 0 0;
}

.example,
.offer-sheet,
.split-panels section {
  background: #fffaf3;
  border: 1px solid #d5c7b4;
}

.example {
  box-shadow: 8px 8px 0 #1e3a32;
  padding: 1.15rem 1.2rem 0.4rem;
  margin: 1.4rem 0;
}

.flag {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid #9c4a28;
  color: #6e3018;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc ol,
.steps,
.legal ul,
.legal ol,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.toc li + li,
.steps li + li,
.legal li + li,
.prose li + li {
  margin-top: 0.4rem;
}

.service-block {
  padding: 1.7rem 0 1.8rem;
  border-top: 1px solid #1c1914;
  scroll-margin-top: 8rem;
}

.service-list .service-block:nth-child(even) {
  background: #fffaf3;
  padding-inline: 1rem;
}

.service-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  margin-top: 0.4rem;
}

.service-spec h3 {
  margin: 0 0 0.3rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6e3018;
}

.service-spec p,
.service-spec ol {
  margin: 0;
}

.timeline {
  margin-top: 0.4rem;
}

.stage {
  position: relative;
  border-left: 2px solid #9c4a28;
  margin-left: 0.35rem;
  padding: 0 0 1.5rem 1.15rem;
  scroll-margin-top: 8rem;
}

.stage::before {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  left: -0.4rem;
  top: 0.35rem;
  background: #9c4a28;
}

.stage h2 {
  font-size: 1.5rem;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.4rem 0 1rem;
}

.split-panels section {
  padding: 1.05rem 1.1rem 0.3rem;
  min-width: 0;
}

.offer-sheet {
  box-shadow: 7px 7px 0 #1e3a32;
  padding: 1.15rem 1.2rem 0.4rem;
  margin: 0 0 1.35rem;
  scroll-margin-top: 8rem;
}

.sheet-meta {
  margin: 0 0 0.75rem;
  color: #3a342c;
}

.faq-list {
  border-bottom: 1px solid #d9cbb8;
  margin: 0.4rem 0 1.2rem;
}

.faq-list details {
  border-top: 1px solid #d9cbb8;
  padding: 0.8rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1.35;
}

.faq-list details[open] summary {
  color: #6e3018;
}

.faq-list details p {
  max-width: 68ch;
  margin: 0.7rem 0 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.4rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label,
.check {
  font-weight: 600;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #5c5348;
  background: #fffaf3;
  color: #1c1914;
  border-radius: 0;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.hint,
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.hint {
  color: #3a342c;
  font-weight: 400;
}

.field-error {
  color: #6f2222;
}

.field-invalid input,
.field-invalid textarea {
  border-color: #6f2222;
  background: #fbf4f1;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  flex: none;
  accent-color: #6e3018;
}

.form-errors,
.form-success {
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
  background: #fffaf3;
  border: 1px solid #6f2222;
}

.form-success {
  border-color: #1e3a32;
}

.form-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 1.7rem 0 0.45rem;
}

.site-footer {
  border-top: 1px solid #1c1914;
  padding: 2rem 0 1rem;
  background: #e7dfd2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 1.5rem 2rem;
}

.footer-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.9375rem;
  color: #6e3018;
}

.nap {
  font-style: normal;
  line-height: 1.5;
}

.nap strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.15rem;
}

.link-list {
  display: grid;
  gap: 0.1rem;
}

.link-list a {
  display: inline-block;
  padding: 0.22rem 0;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.text-button {
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: #6e3018;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.footer-base {
  margin-top: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid #d5c7b4;
  font-size: 0.9375rem;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  width: min(52rem, calc(100% - 1.5rem));
  margin-inline: auto;
  padding: 0.65rem 0.8rem;
  background: #fffaf3;
  color: #1c1914;
  border: 1px solid #d5c7b4;
  box-shadow: 0 10px 28px rgba(28, 25, 20, 0.12);
  max-height: min(42vh, 16rem);
  overflow: auto;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.cookie-actions button,
.cookie-prefs button {
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.15;
  border: 1px solid #1c1914;
  background: #fffaf3;
  color: #1c1914;
  cursor: pointer;
}

.cookie-actions button[data-consent="all"] {
  background: #6e3018;
  border-color: #6e3018;
  color: #fffaf3;
}

.cookie-prefs {
  display: grid;
  gap: 0.55rem;
  grid-column: 1 / -1;
  padding-top: 0.2rem;
}

.cookie-banner[hidden],
.cookie-prefs[hidden] {
  display: none;
}

html.consent-set:not(.consent-open) .cookie-banner {
  display: none;
}

@media (min-width: 800px) {
  .method li + li {
    padding-left: 1.15rem;
    border-left: 1px solid #d9cbb8;
  }

  .section {
    padding-block: 3.4rem;
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .brand {
    max-width: calc(100% - 6.2rem);
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #f7f1e6;
    border-top: 0;
    border-bottom: 1px solid #d5c7b4;
    box-shadow: 0 16px 30px rgba(28, 25, 20, 0.08);
    max-height: min(70vh, 28rem);
    overflow: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.7rem;
  }
}

@media (max-width: 860px) {
  .spread,
  .contact-layout,
  .service-spec,
  .split-panels,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .cookie-banner {
    grid-template-columns: minmax(0, 1fr);
    max-height: min(40vh, 16rem);
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: none;
    min-width: 0;
    line-height: 1.2;
    text-align: center;
  }

  .cookie-actions button[data-consent="manage"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 799px) {
  .situation li,
  .specimen,
  .method {
    grid-template-columns: minmax(0, 1fr);
  }

  .method li + li {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .manual li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .manual li a {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .actions .btn,
  .form .btn {
    width: 100%;
  }

  .header-bar {
    min-height: 3.5rem;
  }

  .section.spread {
    padding-top: 0.85rem;
    padding-bottom: 1.4rem;
  }

  .spread {
    padding-top: 0;
    gap: 1.25rem;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 0.55rem;
  }

  .lede {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }

  .running-head {
    margin-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .route-board .draw {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw-route 1.5s ease forwards;
  }

  .route-board .draw-wait {
    animation-delay: 0.3s;
  }

  .route-board .node {
    opacity: 0;
    animation: node-in 0.35s ease forwards;
  }

  .route-board .n1 { animation-delay: 0.15s; }
  .route-board .n2 { animation-delay: 0.3s; }
  .route-board .n3 { animation-delay: 0.45s; }
  .route-board .n4 { animation-delay: 0.6s; }
  .route-board .n5 { animation-delay: 0.75s; }
}

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

@keyframes node-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .cookie-banner,
  .nav-toggle,
  .skip {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }

  .site-header {
    position: static;
  }

  a {
    color: #000;
  }
}
