:root {
  color-scheme: dark;
  --bg: #17120e;
  --surface: #211912;
  --line: rgba(232, 199, 139, 0.16);
  --line-soft: rgba(232, 199, 139, 0.09);
  --text: #efe6d2;
  --muted: #c6b796;
  --dim: #8f7d5c;
  --amber: #d89b43;
  --amber-soft: #b67c34;
  --field: rgba(255, 244, 219, 0.035);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(70, 45, 20, 0.12), transparent 38%),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.site {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(56px, 13vh, 118px) 28px 56px;
}

.station {
  width: min(100%, 720px);
  padding: 34px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 8vw, 4.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.station-id {
  margin: 0 0 18px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.status {
  margin: 34px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  color: var(--amber);
  background: var(--field);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.7;
}

.status p {
  margin: 0;
}

.status p::before {
  content: "> ";
  color: var(--dim);
}

.contact {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.contact h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-action {
  margin: 18px 0 0;
}

.home-link {
  margin: 0 0 18px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.home-link a {
  color: var(--dim);
}

.contact-form {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.field {
  display: grid;
  gap: 8px;
  cursor: text;
}

.field + .field {
  margin-top: 24px;
}

label {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.field:hover label,
.field:focus-within label {
  color: var(--amber);
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  line-height: 1.55;
  cursor: text;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

input {
  min-height: 44px;
  padding: 0;
}

textarea {
  min-height: 170px;
  padding: 10px 0;
  resize: vertical;
}

.field:hover input,
.field:hover textarea,
input:focus-visible,
textarea:focus-visible {
  border-color: var(--amber-soft);
  box-shadow: 0 8px 18px -18px rgba(216, 155, 67, 0.72);
}

input:focus-visible,
textarea:focus-visible {
  background: rgba(255, 244, 219, 0.035);
}

.screened-field {
  position: absolute;
  left: -9999px;
}

button {
  justify-self: start;
  min-height: 44px;
  margin-top: 30px;
  padding: 0 0.1rem 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 1px solid transparent;
  outline-offset: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    outline-color 220ms ease,
    outline-offset 220ms ease;
}

button:hover,
button:focus {
  border-color: var(--amber-soft);
  color: #fff3cf;
}

button:focus-visible {
  outline-color: rgba(216, 155, 67, 0.38);
  outline-offset: 5px;
}

a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover,
a:focus {
  color: #d8c6a1;
  text-decoration: underline;
  text-decoration-color: var(--amber-soft);
}

a:focus-visible {
  outline: 2px solid rgba(216, 155, 67, 0.38);
  outline-offset: 4px;
}

.signal-link {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.signal-link:hover,
.signal-link:focus {
  border-color: var(--amber-soft);
}

footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .site {
    align-items: flex-start;
    padding: 36px 22px;
  }

  .station {
    padding: 28px 0 24px;
  }

  .status {
    padding: 14px;
  }

  .contact {
    margin-top: 30px;
    padding-top: 22px;
  }
}
