:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #202c21;
  background: #f8f7ef;
  line-height: 1.6;
  --pine: #183b2b;
  --lime: #e5eea4;
  --line: #d8decf;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark span, .label {
  font: 650 0.875rem/1.4 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wordmark span {
  display: block;
  margin-top: 0.2rem;
}

nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero, .intro, .wave-card, .routes article {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero {
  background: var(--pine);
  color: #f8f7ef;
  min-height: 28rem;
}

.hero .label { color: var(--lime); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.9rem, 8.5vw, 6.5rem); line-height: 1; letter-spacing: -0.055em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.hero h1 { margin-top: 1rem; }
.hero p:not(.label), .intro p { max-width: 34rem; margin-top: 1.25rem; font-size: 1.16rem; }

.button {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--pine);
  border-radius: 0.2rem;
  color: var(--pine);
  background: var(--lime);
  font: 650 1rem/1.5 system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.button:hover:not(:disabled) { background: #f1f6c7; }
.button:disabled { opacity: 0.65; cursor: default; }
:focus-visible { outline: 2px solid #326a52; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }

.note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0.75rem 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-top: 0;
}

.intro { background: #edf0e2; }
.routes, .guestbook { display: grid; gap: 1rem; }
.routes {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.routes article { border: 1px solid var(--line); }
.routes h2 { margin-block: 0.55rem; }

.guestbook { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.wave-card { background: var(--pine); color: #f8f7ef; }
.wave-card :focus-visible { outline-color: var(--lime); }
.wave-count { margin-top: 0.65rem; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; overflow-wrap: anywhere; }
.wave-count.waiting { font-size: 1.05rem; line-height: 1.6; }
.send-error, noscript p { margin-top: 0.75rem; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 42rem) {
  .guestbook { grid-template-columns: 1fr; }
}
