:root {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #123940;
  background: #edf3ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #123940;
  --ink-soft: #31575b;
  --muted: #667d7b;
  --canvas: #edf3ef;
  --paper: #fbfdf9;
  --line: #c9d7d1;
  --lime: #d7f46b;
  --coral: #f1a28b;
  --blue: #a9d5d2;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.topbar,
.content-grid,
.page-footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
}

.brand-mark span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  position: relative;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -4px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--lime);
}

.open-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b9b56;
  box-shadow: 0 0 0 4px rgba(107, 155, 86, 0.13);
}

.content-grid {
  padding-top: 54px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "intro form"
    "notes form";
  align-items: start;
  column-gap: clamp(48px, 8vw, 112px);
  row-gap: 54px;
}

.intro {
  grid-area: intro;
  max-width: 610px;
}

.route-note {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 12px;
}

.route-note svg {
  width: 67px;
  overflow: visible;
}

.route-note path {
  stroke: #83a6a0;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.route-note circle {
  fill: var(--coral);
}

.route-note circle:last-child {
  fill: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.8vw, 72px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 49ch;
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.entry-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.summary-number {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.form-panel {
  grid-area: form;
  padding: 25px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}

.form-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 23px;
}

.form-kicker,
.section-kicker {
  margin-bottom: 4px;
  color: #b5ccbe;
  font-size: 12px;
}

.form-heading h2,
.notes-heading h2 {
  margin-bottom: 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.form-panel label {
  display: block;
  margin-bottom: 8px;
  color: #eef5ed;
  font-size: 12px;
  font-weight: 600;
}

.form-panel input,
.form-panel textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(230, 243, 233, 0.28);
  border-radius: 7px;
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 14px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.form-panel input {
  min-height: 44px;
  margin-bottom: 19px;
}

.form-panel textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.5;
}

.optional-label {
  margin-left: 4px;
  color: #aec3bb;
  font-size: 11px;
  font-weight: 400;
}

.form-panel input[type="file"] {
  min-height: 42px;
  margin-bottom: 4px;
  padding: 6px;
  color: #d2e7d9;
  font-size: 11px;
}

.form-panel input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: #d2e7d9;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.upload-note {
  margin: 0 0 15px;
  color: #aec3bb;
  font-size: 10px;
  line-height: 1.5;
}

.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: #aec3bb;
  opacity: 1;
}

.form-panel input:focus,
.form-panel textarea:focus {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.11);
}

.form-panel input:focus-visible,
.form-panel textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.message-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.message-label-row span {
  margin-bottom: 8px;
  color: #aec3bb;
  font-size: 11px;
}

.turnstile-slot {
  min-height: 0;
  margin-top: 0;
}

.turnstile-slot:empty {
  display: none;
}

.turnstile-slot:not(:empty) {
  min-height: 70px;
  margin-top: 15px;
}

.form-panel button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 120ms ease, transform 120ms ease;
}

.form-panel button:hover:not(:disabled) {
  background: #e2ff84;
  transform: translateY(-1px);
}

.form-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-panel button span:last-child {
  font-size: 18px;
}

.form-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #d2e7d9;
  font-size: 12px;
  line-height: 1.5;
}

.form-status[data-state="error"] {
  color: #ffb7a4;
}

.form-status[data-state="success"] {
  color: var(--lime);
}

.privacy-note {
  margin: 0;
  color: #b5c9c0;
  font-size: 11px;
  line-height: 1.5;
}

.notes-section {
  grid-area: notes;
  max-width: 650px;
}

.notes-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: var(--muted);
}

.notes-heading h2 {
  font-size: 24px;
}

.notes-latest {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.note-initial {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.note-initial-0 {
  background: var(--lime);
}

.note-initial-1 {
  background: var(--blue);
}

.note-initial-2 {
  background: #f3c5a7;
}

.note-initial-3 {
  background: #d9c9ef;
}

.note-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin: 1px 0 6px;
}

.note-author {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.note-date {
  color: var(--muted);
  font-size: 11px;
}

.note-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.note-photo {
  display: block;
  width: min(100%, 360px);
  max-height: 280px;
  margin-top: 13px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.note-actions {
  margin-top: 10px;
}

.share-card-link {
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.share-card-link:hover {
  color: var(--ink);
}

.loading-note,
.empty-note {
  padding: 24px 0;
  color: var(--muted);
}

.empty-note h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.035em;
}

.empty-note p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.retry-button {
  min-height: 36px;
  margin-top: 15px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.retry-button:hover {
  background: var(--paper);
}

.page-footer {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .topbar,
  .content-grid,
  .page-footer {
    width: min(100% - 36px, 560px);
  }

  .topbar {
    min-height: 70px;
  }

  .content-grid {
    padding-top: 35px;
    padding-bottom: 48px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "form"
      "notes";
    row-gap: 36px;
  }

  .intro {
    max-width: none;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(42px, 12vw, 62px);
  }

  .intro-copy {
    font-size: 15px;
  }

  .form-panel {
    padding: 22px;
  }

  .notes-section {
    max-width: none;
  }

  .page-footer {
    min-height: 72px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
