:root {
  color-scheme: light;
  background: #f5efe4;
  color: #0b132b;
  font: 1rem/1.55 system-ui, sans-serif;
}

body {
  margin: 0;
  border-top: .35rem solid #0b132b;
}

main {
  width: min(47rem, calc(100% - 2.5rem));
  margin: auto;
}

header {
  background: linear-gradient(125deg, #101b35, #113f58);
  border-bottom: .3rem solid #e0b469;
  border-radius: .7rem;
  color: #fff7e8;
  margin: clamp(1.25rem, 4vw, 3rem) 0 2rem;
  padding: clamp(1.25rem, 6vw, 3rem);
}

a { color: #0b6249; text-underline-offset: .15em; }

.brand {
  color: #f1cb85;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}

h1, legend { font-family: Georgia, serif; font-weight: 500; }

h1 {
  font-size: clamp(2.55rem, 7vw, 4.7rem);
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: .65rem 0 1rem;
  max-width: 12ch;
}

.intro { max-width: 45ch; margin: 0 0 1.4rem; font-size: 1.13rem; }

button {
  background: #f1cb85;
  border: 0;
  border-radius: .3rem;
  color: #0b132b;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: .65rem 1rem;
}

.hero-ship {
  border-radius: .4rem;
  display: block;
  height: auto;
  margin-top: 1.5rem;
  width: 100%;
}

fieldset {
  background: #fffaf1;
  border: 1px solid #c7bca8;
  border-radius: .4rem;
  margin: 0 0 1.3rem;
  min-inline-size: 0;
  padding: .35rem clamp(.65rem, 3vw, 1.25rem) .75rem;
}

legend {
  background: #dcecf2;
  border-radius: .25rem;
  color: #10394d;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  padding: .13rem .55rem;
}

fieldset:nth-of-type(2) legend { background: #dceee5; color: #124e3b; }
fieldset:nth-of-type(3) legend { background: #f4e2bb; color: #5c4012; }
fieldset:nth-of-type(4) legend { background: #eadfed; color: #503654; }

.family-note {
  background: #f3eaf4;
  border-left: .2rem solid #78517c;
  font-size: .9rem;
  margin: .55rem .25rem 0;
  padding: .65rem .8rem;
}

label {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: .65rem;
  grid-template-columns: 1.1rem 1fr;
  padding: .5rem .25rem;
}

label + label { border-top: 1px solid #d9cfbe; }

input[type="checkbox"] {
  accent-color: #0b6249;
  height: 1.1rem;
  margin: .24em 0 0;
  width: 1.1rem;
}

:focus-visible { outline: 2px solid #0b6249; outline-offset: 3px; }
header :focus-visible { outline-color: #fff7e8; }

aside { border-left: .2rem solid #87723f; font-size: .9rem; padding-left: 1rem; }
aside p, aside ul { margin: .5rem 0; }
aside ul { padding-left: 1.15rem; }
footer { border-top: 1px solid #c7bca8; margin-top: 1.75rem; padding: 1.25rem 0 2.25rem; }
.print-address { display: none; }

@page { margin: 14mm; }

@media print {
  :root, body { background: white; color: black; }
  body { border: 0; }
  main { width: auto; }
  header { background: none; border: 0; color: black; margin: 0; padding: 0 0 3mm; }
  .brand, a { color: black; }
  h1 { font-size: 26pt; letter-spacing: normal; margin: 3mm 0 2mm; max-width: none; }
  .intro { font-size: 10pt; margin: 0; max-width: none; }
  button, .explore, .hero-ship { display: none; }
  fieldset { background: none; break-inside: avoid; margin: 0 0 3mm; padding: 0 3mm 1mm; }
  fieldset:nth-of-type(n) legend { background: white; color: black; font-size: 14pt; }
  label { font-size: 10pt; gap: 2mm; grid-template-columns: 3.5mm 1fr; line-height: 1.3; padding: 1.4mm 0; }
  input[type="checkbox"] { appearance: none; border: 1px solid black; height: 3mm; width: 3mm; }
  input[type="checkbox"]:checked::before { content: "✓"; display: block; font: 8pt/3mm system-ui, sans-serif; }
  .family-note { background: none; border-color: black; font-size: 8.5pt; line-height: 1.3; margin: 1mm 0; padding: 0 0 0 2mm; }
  aside { border: 0; font-size: 8.5pt; padding-left: 0; }
  aside ul { display: none; }
  footer { font-size: 8.5pt; margin-top: 2mm; padding: 2mm 0 0; }
  .print-address { display: inline; }
}
