:root {
  --paper: #D5E2F2;
  --band: #C5D6EB;
  --card: #EAF2FB;
  --ink: #142033;
  --ink-2: #31445C;
  --wine: #1A4E86;
  --brass: #C45C38;
  --line: #8FA6C4;
  --night: #16304F;
  --night-ink: #F5F8FC;
  --wrap: 1040px;
  --gap: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--wine); }
a:visited { color: var(--wine); }
a:hover { color: var(--wine); }

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

::selection { background: var(--wine); color: var(--night-ink); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}

h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
h4 { font-size: 24px; }

p { margin: 0 0 14px; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.mono {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
}

.lede {
  font-size: 18px;
  max-width: 68ch;
  color: var(--ink);
}

.muted { color: var(--ink-2); }

.top {
  height: 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-in {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img { width: 36px; height: 36px; }

.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-txt em {
  margin-top: 3px;
  font-style: normal;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #FFFFFF;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 280ms ease-out, color 280ms ease-out, border-color 280ms ease-out;
}

.btn:visited { color: #FFFFFF; }
.btn:hover { background: #123864; border-color: #123864; color: #FFFFFF; }

.btn.ghost {
  background: transparent;
  color: var(--wine);
}
.btn.ghost:visited { color: var(--wine); }
.btn.ghost:hover { background: var(--wine); color: #FFFFFF; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.nav-bar { position: relative; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 10px 0;
  padding: 0;
  border: 1px solid var(--wine);
  border-radius: 4px;
  background: var(--card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--wine);
}

.site-nav-in {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--wine);
  background: var(--card);
  color: var(--wine);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 280ms ease-out, color 280ms ease-out;
}

.nav-btn:visited { color: var(--wine); }
.nav-btn:hover,
.nav-btn[aria-current="page"] {
  background: var(--wine);
  color: #FFFFFF;
}
.nav-btn[aria-current="page"]:visited,
.nav-btn:hover:visited { color: #FFFFFF; }

.band {
  --sheet: var(--paper);
  background: var(--paper);
  padding: 50px 0;
  position: relative;
}

.band.alt {
  --sheet: var(--band);
  background: var(--band);
}

.band + .band { border-top: 1px solid var(--line); }

.band + .band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: max(16px, calc(50% - 520px));
  width: 56px;
  height: 1px;
  background: var(--brass);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.grid .ficha {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid .ficha > .btn,
.grid .ficha .actions { margin-top: auto; }

.grid .ficha > .btn { align-self: flex-start; }

.grid .ficha .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grid .ficha.wide { grid-column: 1 / -1; }

.ficha {
  position: relative;
  background: var(--card);
  border: 1px solid #7E96B4;
  padding: 18px 40px 16px 20px;
  animation: rise 280ms ease-out both;
}

.ficha:nth-child(2) { animation-delay: 40ms; }
.ficha:nth-child(3) { animation-delay: 80ms; }
.ficha:nth-child(4) { animation-delay: 120ms; }
.ficha:nth-child(5) { animation-delay: 150ms; }
.ficha:nth-child(6) { animation-delay: 180ms; }

.ficha .notch {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--sheet) 50%, var(--brass) 50% 58%, transparent 58%);
  pointer-events: none;
}

.clip {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 16px;
  height: 34px;
  pointer-events: none;
}

.clip i,
.clip b {
  position: absolute;
  border: 2px solid var(--brass);
  border-radius: 8px;
  display: block;
}

.clip i { width: 12px; height: 26px; top: 0; right: 0; }
.clip b { width: 7px; height: 16px; top: 7px; right: 2px; }

.ficha .case {
  margin: 0 0 8px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
}

.ficha h2, .ficha h3 { padding-right: 8px; }

.ficha p { margin-bottom: 10px; }

.meta { margin: 8px 0 12px; }
.meta div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.meta dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.meta dd { margin: 0; font-size: 18px; color: var(--ink); }

.ficha.settled:hover { transform: translate(6px, -6px); transition: transform 280ms ease-out; }

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

.prose { max-width: 70ch; }
.prose p { margin: 0 0 16px; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.note {
  border-left: 2px solid var(--brass);
  padding: 2px 0 2px 12px;
  color: var(--ink-2);
  max-width: 70ch;
}

.form-note {
  display: none;
  margin: 4px 0 0;
  padding: 8px 0 8px 12px;
  border-left: 4px solid transparent;
  max-width: 70ch;
}

.form-note.is-error {
  display: block;
  border-left-color: #C62828;
  color: #8E1B1B;
}

.form-note.is-ok {
  display: block;
  border-left-color: #1B7A3A;
  color: #146333;
}

.seq {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.seq a { font-weight: 500; }

.take li { margin: 0 0 8px; }

.form {
  display: grid;
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 4px; }

.field > span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.check span {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #7E96B4;
  border-radius: 4px;
  padding: 8px 10px;
  font: 400 18px/1.5 "Source Sans 3", "Segoe UI", sans-serif;
}

textarea { min-height: 130px; resize: vertical; }

input[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: #C62828; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}

.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); }

.map-frame {
  width: 100%;
  height: 320px;
  border: 1px solid #7E96B4;
  background: var(--band);
}

.site-foot {
  position: relative;
  margin-top: 0;
  background: var(--night);
  color: var(--night-ink);
  padding: 36px 0 18px;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
}

.site-foot h2 {
  color: var(--night-ink);
  font-size: 34px;
  margin-bottom: 8px;
}

.site-foot a,
.site-foot a:visited { color: var(--night-ink); }
.site-foot a:hover { color: var(--night-ink); text-decoration: underline; }

.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin: 0 0 6px; }

.fine {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #4a433c;
  color: var(--night-ink);
  font-size: 17px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--wine);
  color: #FFFFFF;
  padding: 6px 10px;
  z-index: 30;
}
.skip:focus { top: 8px; }

.op-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #F7FAFD;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  margin: 4px 0 12px;
}

.tp {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}

.tp b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 18px;
  background: var(--card);
}

.sheet th,
.sheet td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sheet th {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
  background: #D7E6F5;
}

.sheet tr:nth-child(even) td { background: #F4F8FC; }

.points {
  margin: 8px 0 16px;
  padding-left: 1.25em;
}

.points li { margin: 0 0 8px; }

.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin: 0 0 8px; }
.prose h2, .prose h3 { margin-top: 22px; }

.table-wrap { overflow-x: auto; }

@media (max-width: 800px) {
  .grid, .foot-cols { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .nav-toggle { display: inline-flex; }
  .site-nav-in {
    display: none;
    flex-direction: column;
    padding-top: 0;
  }
  .site-nav.is-open .site-nav-in { display: flex; }
  .nav-btn { width: 100%; }
}

@media (max-width: 560px) {
  .brand-txt strong { font-size: 24px; }
  .btn { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ficha, .sq, .btn { animation: none; transition: none; }
}
