:root {
  color-scheme: light;
  --navy:#142638;
  --red:#a8272d;
  --cream:#f8f3ea;
  --paper:#fffcf7;
  --stroke:#ded5c8;
  --muted:#515966;
  --pink:#f4e2df;
  --serif: Georgia, 'Times New Roman', serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--cream);color:var(--navy);font:1rem/1.55 system-ui,sans-serif}
a {color:inherit;text-underline-offset:.2em}
a:hover {color:var(--red)}
button,input,textarea,select {font:inherit}
:focus-visible {outline:3px solid #33799f;outline-offset:3px}
.shell {width:min(1180px,calc(100% - 56px));margin-inline:auto}
.header {background:var(--paper);border-bottom:1px solid var(--stroke)}
.top,.footer {display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-block:1.1rem}
.top {padding-block:.55rem}
.brand {display:inline-flex}
.brand img {display:block;width:76px;height:76px;object-fit:contain}
nav,.actions {display:flex;flex-wrap:wrap;gap:.75rem 1.35rem;align-items:center}
nav a {font-weight:650;text-decoration:none}
nav a[aria-current] {color:var(--red);text-decoration:underline}
.footer {border-top:1px solid var(--stroke);color:var(--muted);margin-top:3rem;font-size:.875rem}
.skip {position:absolute;left:1rem;top:-5rem;background:white;padding:.6rem;z-index:1}
.skip:focus {top:1rem}
h1,h2,h3,p {margin:0 0 .85rem}
h1,h2 {font-family:var(--serif);font-weight:normal;line-height:1.02;letter-spacing:-.04em}
h1 {font-size:clamp(2.8rem,7vw,6.2rem)}
h2 {font-size:clamp(1.8rem,3.4vw,2.6rem)}
h3 {font-size:1.05rem}
p {max-width:66ch}
.eyebrow {text-transform:uppercase;font-weight:800;color:var(--red);font-size:.84rem;letter-spacing:.095em}
.accent {color:var(--red);font-style:italic}
.hero {display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch;min-height:450px;margin-top:2rem;border-radius:22px;overflow:hidden;background:var(--paper);border:1px solid var(--stroke)}
.hero-text {padding:clamp(1.35rem,5vw,4.25rem);align-self:center}
.hero-text p:not(.eyebrow) {color:var(--muted);font-size:1.12rem}
.hero img,.photo img {display:block;width:100%;height:100%;object-fit:cover}
.hero img {min-height:310px;object-position:center 45%}
.intro,.section,.panel {margin-top:2rem}
.cards,.metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.card {background:var(--paper);border:1px solid var(--stroke);border-radius:16px;padding:1.4rem;min-width:0}
.card p:last-child {margin-bottom:0}
.button,button {display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.57rem 1.05rem;border:1px solid var(--red);border-radius:9px;background:var(--red);color:white;text-decoration:none;font-weight:730;cursor:pointer}
.button:hover,button:hover {background:#821b23;color:white}
.secondary {background:var(--paper);color:var(--navy);border-color:var(--stroke)}
.button[aria-current] {background:var(--navy);color:white;border-color:var(--navy)}
.muted {color:var(--muted)}
.trip {margin-block:2rem;display:grid;grid-template-columns:1.1fr .9fr;border-radius:18px;overflow:hidden;border:1px solid var(--stroke);background:var(--paper)}
.trip .photo {min-height:230px;background:#b38567}
.trip .hero-text {padding:clamp(1.2rem,4vw,3rem)}
.trip h1,.panel h1 {font-size:clamp(2.4rem,5vw,4.7rem)}
.body-grid {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:1rem;align-items:start}
.stack {display:grid;gap:1rem}
fieldset {border:0;padding:0;margin:0 0 1.2rem;min-width:0}
legend {font-weight:800;margin-bottom:.5rem}
.field {display:grid;gap:.4rem;margin-bottom:.9rem;font-weight:650}
input:not([type=radio]):not([type=checkbox]),textarea,select {width:100%;border:1px solid #9f9a96;border-radius:8px;padding:.55rem .7rem;background:#fff;color:var(--navy)}
textarea {min-height:95px;resize:vertical}
.option {display:flex;align-items:center;gap:.7rem;padding:.55rem .65rem;border:1px solid var(--stroke);border-radius:8px;margin-bottom:.4rem;cursor:pointer}
.option:has(input:checked) {background:var(--pink);border-color:var(--red)}
input[type=radio],input[type=checkbox] {accent-color:var(--red);width:1.1rem;height:1.1rem;flex-shrink:0}
.status {background:var(--pink);padding:.65rem .8rem;border-radius:8px;margin-bottom:1rem}
.badge {display:inline-flex;padding:.22rem .7rem;border-radius:100px;background:var(--pink);color:#771b22;font-size:.875rem;font-weight:750}
.metric strong {display:block;font:2.35rem var(--serif);margin-top:.35rem}
.row {display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.row h2,.row h3 {margin:0}
.chart {margin-bottom:1rem}
.chart label {display:flex;justify-content:space-between;gap:1rem}
meter {display:block;width:100%;height:.9rem;accent-color:var(--red)}
.day {padding:.85rem 0;border-top:1px solid var(--stroke)}
.day p {white-space:pre-line}
.table-wrap {overflow-x:auto}
table {width:100%;border-collapse:collapse;text-align:left}
th,td {padding:.65rem .55rem;border-bottom:1px solid var(--stroke)}
@media(max-width:760px){
  .shell {width:calc(100% - 28px)}
  .top {gap:.7rem}
  .brand img {width:60px;height:60px}
  .top nav {justify-content:flex-end;gap:.25rem .9rem}
  nav {font-size:.94rem}
  .hero,.trip,.body-grid {grid-template-columns:1fr}
  .hero img {height:260px;min-height:0}
  .trip .photo {min-height:0;height:180px;grid-row:1}
  .cards {grid-template-columns:1fr}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  .card {padding:1rem}
}
@media print {
  .header,.footer,.skip,.actions,.panel,.trip .photo,.trip-info {display:none!important}
  body,.card,.trip {background:white;color:black;border:0}
  .body-grid {display:block}
}
.panel-heading h1 {margin:0}
.trip-builder {max-width:760px}
.trip-builder label span {font-weight:400}
.option-fields {margin-bottom:1.6rem}
.option-fields legend {font-size:1.05rem}
.option-rows {display:grid;gap:.5rem;margin-bottom:.6rem}
.option-editor {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:center}
.option-editor button {padding-inline:.72rem}
.result-line {display:flex;justify-content:space-between;gap:1rem}
.invitation-form {display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}
.invitation-form .field {margin:0;flex:1;min-width:min(100%,15rem)}
button:disabled {opacity:.5;cursor:default}
article details {margin-bottom:1rem}
.trip .photo img {object-position:center 48%}
