/* Tokens lifted from photo.volki.me (wfolio theme). */
:root {
  --bg: #1e1e1e;
  --surface: #2a2a2a;
  --ink: #ffffff;
  --muted: #ffffff99;
  --faint: #ffffff66;
  --line: #ffffff40;
  --line-bright: #ffffff80;
  --form-bg: #ffffff1a;
  --button-bg: #31472d;
  --button-text: #ffffff;
  --danger: #d9887c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Ubuntu, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--muted); }

/* ---- site frame: sidebar like the main site, content column beside it ---- */
.frame { display: flex; min-height: 100vh; }

.sidebar {
  flex: 0 0 auto;
  width: 320px;
  padding: 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sidebar .icons { display: flex; gap: 14px; margin-bottom: 20px; }
.sidebar .icons a { display: inline-flex; color: var(--ink); text-decoration: none; }
.sidebar .icons a:hover { color: var(--muted); }
.sidebar .icons svg { width: 22px; height: 22px; fill: currentColor; }
.sidebar .say { margin: 0; }

.content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 40px 80px 0;
}

.tagline {
  position: fixed;
  right: 40px;
  bottom: 40px;
  margin: 0;
  max-width: 240px;
  text-align: right;
}
.wrap { max-width: 560px; }

@media (max-width: 900px) {
  .frame { display: block; }
  .sidebar { width: auto; height: auto; position: static; padding: 24px 20px 8px; }
  .content { padding: 16px 20px 32px; }
  .tagline { position: static; max-width: none; padding: 0 20px 32px; }
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 20px;
}

.promise {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 36px;
  padding-left: 16px;
  border-left: 1px solid var(--line-bright);
}
.promise p { margin: 0 0 0.8em; }
.promise p:last-child { margin-bottom: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }

legend, label.block {
  display: block;
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  margin-bottom: 4px;
}

.hint { color: var(--muted); margin: 0 0 10px; }
.field { margin-bottom: 16px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="datetime-local"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--form-bg);
  border: 1px solid transparent;
  border-radius: 0;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus-visible, textarea:focus-visible { border-color: var(--line-bright); }
button:focus-visible, a:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
textarea { min-height: 96px; resize: vertical; }
::placeholder { color: var(--faint); }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }

.contact-grid { display: grid; gap: 10px; }
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
}
.contact-row label { color: var(--muted); }
@media (max-width: 420px) {
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* slot picker */
.window { margin-bottom: 14px; }
.window-head { margin-bottom: 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  min-width: 84px;
  text-align: center;
  padding: 9px 12px;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-text); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.chip.taken { cursor: default; }
.chip.taken span { color: var(--faint); border-color: var(--line); text-decoration: line-through; }
.chip.taken:hover span { border-color: var(--line); }
.standby { margin: 12px 0 0; padding-left: 16px; border-left: 1px solid var(--line-bright); }

/* Buttons: the site's filled button and its outline variant. */
button, .btn {
  font: inherit;
  font-weight: 400;
  color: var(--button-text);
  background: var(--button-bg);
  border: 1px solid var(--button-bg);
  border-radius: 0;
  padding: 11px 14px;
  min-width: 180px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
button:hover, .btn:hover { background: var(--ink); color: var(--button-bg); border-color: var(--ink); }
button:disabled { opacity: 0.5; cursor: default; }
button.quiet, .btn.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
button.quiet:hover, .btn.quiet:hover { background: var(--ink); color: var(--bg); }
button.small, .btn.small { min-width: 0; padding: 7px 12px; font-size: 13px; }
button.danger { color: var(--danger); border-color: var(--line); }
button.danger:hover { background: var(--danger); color: var(--bg); border-color: var(--danger); }

.error { color: var(--danger); margin: 0 0 12px; min-height: 1.6em; }
.hidden { display: none !important; }

/* confirmation */
.code {
  font-size: clamp(64px, 20vw, 112px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 24px 0 4px;
  font-variant-numeric: tabular-nums;
}
.code-label { color: var(--muted); margin: 0 0 28px; }
.summary {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 28px;
}
.summary span { color: var(--ink); }

footer.fine { margin-top: 40px; color: var(--muted); font-size: 12px; }

#closed:empty { display: none; }
