@font-face {
  font-family: DM;
  src: url("/assets/dm-sans.woff2");
}
@font-face {
  font-family: Instrument;
  src: url("/assets/instrument-serif.woff2");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f2f5ef;
  color: #14383b;
  font:
    16px/1.5 DM,
    system-ui,
    sans-serif;
}
header,
footer {
  max-width: 1550px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 70px);
}
header {
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.58em;
  color: inherit;
  text-decoration: none;
  font: 600 27px/1 DM;
  letter-spacing: -1.3px;
}
.brand img {
  width: 37px;
}
nav,
.actions,
.voice-line,
.heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
nav button,
button {
  font:
    600 14px/1.25 DM,
    sans-serif;
  border: 1px solid #a4b9b2;
  border-radius: 10px;
  background: transparent;
  color: #153e41;
  padding: 11px 16px;
  cursor: pointer;
}
nav button:first-child,
.quiet,
#back,
.close {
  border-color: transparent;
}
button:hover {
  background: #dde8de;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #008598;
  outline-offset: 3px;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 0 clamp(14px, 3vw, 50px);
}
.cover {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  min-height: min(710px, 79vh);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}
.landscape {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  padding: clamp(25px, 4.2vw, 72px);
  background: #264849 url("/assets/glacier.webp") center/cover no-repeat;
}
.landscape:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    #07292905 12%,
    #122e3780 55%,
    #092c33eb 100%
  );
}
h1,
h2,
h3,
p {
  margin: 0 0 0.6em;
}
h1,
h2 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.intro h1 {
  font-size: clamp(68px, 6.9vw, 122px);
  line-height: 0.92;
  margin-bottom: 0.26em;
}
.intro p {
  max-width: 37ch;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.45;
}
.credit {
  font-size: 11px;
  color: #eff8ed;
  align-self: flex-start;
  margin-top: 2.4em;
  text-underline-offset: 3px;
}
.composer {
  align-self: center;
  padding: clamp(26px, 4vw, 64px);
  width: 100%;
}
.composer h2 {
  font-size: clamp(44px, 4.1vw, 70px);
  margin-bottom: 0.55em;
}
label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin: 0.75em 0 0.45em;
}
textarea,
input:not([type="file"]),
select {
  font: inherit;
  color: inherit;
  border: 1px solid #a9bcb4;
  border-radius: 12px;
  background: #fbfcf8;
  padding: 13px;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
textarea::placeholder {
  color: #60736e;
}
#brief {
  font-size: 17px;
  line-height: 1.5;
}
.voice-line {
  justify-content: space-between;
  margin: 7px 0;
}
.quiet {
  padding: 10px 1px;
}
.quiet span {
  font-size: 20px;
  color: #427873;
  vertical-align: -1px;
}
#clock,
.hint,
.muted {
  font-size: 13px;
  color: #526863;
}
.primary {
  background: #164b4a;
  color: white;
  border-color: #164b4a;
}
.primary:hover {
  background: #22605d;
}
#start {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 16px 20px;
  font-size: 16px;
}
#start span {
  color: #d7ee8f;
  font-size: 22px;
  line-height: 1;
}
#intakeMsg:empty,
#dialogMsg:empty {
  display: none;
}
#intakeMsg,
#dialogMsg {
  margin-top: 12px;
}
footer {
  font-size: 12px;
  color: #60706a;
  padding-top: 22px;
}
.sheet {
  background: white;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 60px);
  min-height: 58vh;
}
.sheet h1 {
  font-size: clamp(44px, 5vw, 84px);
  overflow-wrap: anywhere;
}
.sheet h2,
dialog h2 {
  font-size: 37px;
}
.heading {
  justify-content: space-between;
}
.trip-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin: 12px 0;
  background: #f3f6f0;
  padding: 20px;
}
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 5px;
  margin: 22px 0 10px;
}
.steps li {
  flex: 1;
  border-top: 4px solid #d6e0dc;
  padding: 6px 0;
  font-size: 13px;
  color: #536662;
}
.steps .done {
  border-color: #348679;
}
.steps .current {
  border-color: #b0bf44;
  color: #153c3a;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  margin: 25px 0;
}
.detail-grid .hint {
  margin-top: 12px;
}
.actions {
  margin: 12px 0;
}
.trip-map {
  height: 350px;
  border-radius: 14px;
  background: #e3eee9;
}
.section {
  margin-top: 30px;
}
.event {
  padding: 14px 0;
  border-bottom: 1px solid #dce5dc;
}
.event h3 {
  font-size: 18px;
}
.event p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.event small,
a {
  color: #275f64;
}
ul {
  padding-left: 20px;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #163e40;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  max-width: min(90vw, 650px);
  z-index: 4;
}
#notice:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 18px;
  color: inherit;
  padding: 32px;
  width: min(440px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #142d34a6;
}
.close {
  float: right;
  font-size: 22px;
  padding: 0 6px;
}
.footer-actions {
  border-top: 1px solid #d5dfd8;
  padding-top: 18px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
#result a {
  display: inline-block;
}
.key {
  font: 16px/1.6 monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.money {
  font-weight: 600;
}
.sheet button {
  min-height: 42px;
}
#stageMsg {
  min-height: 1.4em;
}
.maplibregl-map {
  font-family: inherit;
}
@media (max-width: 760px) {
  header {
    height: 68px;
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 31px;
  }
  nav {
    gap: 2px;
  }
  nav button {
    padding: 9px 11px;
  }
  .cover {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .landscape {
    min-height: 240px;
    padding: 25px;
    background-position: 50% 55%;
  }
  .intro h1 {
    font-size: 52px;
    line-height: 1;
  }
  .intro h1 br {
    display: none;
  }
  .intro p {
    font-size: 15px;
    max-width: 43ch;
  }
  .credit {
    margin-top: 10px;
    font-size: 10px;
  }
  .composer {
    padding: 25px;
  }
  .composer h2 {
    font-size: 39px;
    margin-bottom: 12px;
  }
  #brief {
    height: 110px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .trip-map {
    height: 260px;
  }
  .sheet {
    padding: 22px 16px;
  }
  .sheet h2 {
    font-size: 31px;
  }
  .steps {
    gap: 3px;
  }
  .steps li {
    font-size: 12px;
  }
  .trip-row {
    align-items: start;
    gap: 12px;
  }
  .voice-line {
    gap: 5px;
  }
  footer {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
  .sheet {
    animation: reveal 0.22s ease-out;
  }
  @keyframes reveal {
    from {
      opacity: 0.5;
      transform: translateY(3px);
    }
  }
}
@media (max-width: 760px) {
  .landscape:before {
    background:
      linear-gradient(90deg, #102d38bd, #183b4166 80%),
      linear-gradient(0deg, #12343ca1, transparent);
  }
}
details {
  padding: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
#result .event button {
  display: block;
  margin-top: 8px;
  padding: 6px 12px;
  min-height: 36px;
}
.composer h2 {
  letter-spacing: -0.018em;
  word-spacing: 0.035em;
}
#voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #8fa79c;
  border-radius: 9px;
}
#voice:before {
  content: "";
  display: block;
  width: 16px;
  height: 20px;
  background: currentColor;
  mask: url("/assets/mic.svg") center/contain no-repeat;
}
#start {
  justify-content: center;
}
#dialogBody > a {
  display: inline-block;
  margin: 10px;
}
