body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: one yellow field. The logo holds the centre; the wire from the logo becomes the form's input lines. */
:root {
  --yellow: #F7E089;
  --ink: #000000;
  --ink-soft: #4A3F1A;
  --error: #8A1C0F;
  --scrim: rgba(0, 0, 0, .6);
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; }
body {
  background: var(--yellow); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.view {
  min-height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  padding-block: 2.5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.splash { text-align: center; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.logo img { display: block; width: 100%; height: auto; }
.splash .logo { width: min(68vw, 54vh, 520px); }
.wordmark {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance;
}
.tagline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .7rem; margin: .625rem 0 0; font-size: clamp(.75rem, 3.2vw, .8125rem); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.tagline span { white-space: nowrap; }
.sep { width: .6rem; height: .55rem; flex: none; color: var(--ink); }

.btn {
  display: inline-block; box-sizing: border-box; padding: .8rem 1.75rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--yellow);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }

dialog {
  width: min(30rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow-y: auto;
  padding: 1.75rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--yellow); color: var(--ink);
}
dialog::backdrop { background: var(--scrim); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
dialog h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; text-wrap: balance; }
.close { flex: none; width: 2.5rem; height: 2.5rem; margin: -.5rem -.5rem 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.75rem/1 var(--body); cursor: pointer; }
.fallback { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--ink-soft); }
.fallback a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.trap { position: absolute; left: -9999px; }
form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .25rem; }
label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
input, textarea {
  width: 100%; box-sizing: border-box; padding: .5rem 0; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.0625rem/1.5 var(--body); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 5.5rem; }
.err:empty, .status:empty { display: none; }
.err { margin: 0; color: var(--error); font-size: .9375rem; }
.status { margin: 0; font-weight: 500; }
.status.problem { color: var(--error); }
form .btn { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
