:root {
  color-scheme: light dark;
  --paper: #f8f6ec;
  --ink: #292b28;
  --soft: #555b54;
  --line: #c9cdc3;
  --field: #fffef8;
  --green: #264e3b;
  --inverse: #fffdf1;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.55 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header,
main {
  width: min(68rem, calc(100% - 2.5rem));
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
nav,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
nav a,
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
}
a[aria-current] {
  font-weight: 750;
  color: var(--green);
}
main {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 4rem;
}
.home {
  max-width: 48rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 1.35rem;
  margin: 1.3rem 0 1rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.65rem 0 0.65rem;
}
.spread {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
aside,
.spread > section:nth-child(2) {
  align-self: start;
}
.listhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.listhead .button {
  min-height: 44px;
  padding: 0.45rem 0;
  background: transparent;
  color: var(--green);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.example {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.example > .muted {
  font-size: 0.9rem;
}
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.timetable th,
.timetable td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.timetable th {
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 650;
}
.timetable th:first-child,
.timetable td:first-child {
  padding-left: 0;
  white-space: nowrap;
}
.timetable th:last-child,
.timetable td:last-child {
  padding-right: 0;
  text-align: right;
}
.timetable td small {
  display: block;
}
.timetable td button {
  display: flex;
  margin-top: 0.25rem;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
form {
  display: grid;
  gap: 0.85rem;
}
label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.95rem;
}
input,
textarea,
select,
button,
.button {
  font: inherit;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--soft);
  border-radius: 0.25rem;
  padding: 0.55rem;
}
button,
.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  background: var(--green);
  color: var(--inverse);
  border: 1px solid transparent;
  border-radius: 0.25rem;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
}
.quiet {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.muted,
small {
  color: var(--soft);
}
hr,
.row {
  border: 0;
  border-bottom: 1px solid var(--line);
}
hr {
  margin: 1.5rem 0;
}
.row {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.row p {
  margin: 0;
}
.row label {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.row input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--green);
}
.packrow {
  flex-wrap: nowrap;
  font-variant-numeric: tabular-nums;
}
.packrow label {
  flex: 1;
  min-width: 0;
}
.packrow button {
  flex-shrink: 0;
}
.row span,
.row a,
.tripname,
.notes {
  overflow-wrap: anywhere;
}
.notes {
  white-space: pre-wrap;
}
.tripnav {
  border-bottom: 1px solid var(--line);
  margin: 0.3rem 0 1.4rem;
}
.metric {
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.tripname,
.triptitle {
  margin-bottom: 0;
  font-family: Georgia, serif;
}
.tripname {
  font-size: 1.4rem;
}
@media (max-width: 700px) {
  .spread {
    grid-template-columns: 1fr;
  }
  .spread {
    gap: 1rem;
  }
  header,
  main {
    width: calc(100% - 2rem);
  }
  .brand {
    font-size: 1.15rem;
  }
  nav {
    gap: 0.65rem;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17241e;
    --ink: #f4f3e7;
    --soft: #c4cdbd;
    --line: #516557;
    --field: #203128;
    --green: #b7dec4;
    --inverse: #15251c;
  }
}
@media print {
  header,
  .tripnav,
  .actions,
  #status {
    display: none;
  }
  main {
    width: 100%;
    padding: 0;
  }
  :root {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
    --soft: #333;
    --line: #999;
    --field: #fff;
    --green: #000;
    --inverse: #fff;
  }
  .row,
  .timetable tr {
    break-inside: avoid;
  }
  a {
    color: var(--ink);
  }
}
