/* Dark operations desk. One amber accent, 2px radius, Outfit for text, IBM Plex Mono for figures. */

:root {
  --bg: #14160f;
  --raised: #1c1f16;
  --text: #ebe4d4;
  --muted: #c4bbaa;
  --amber: #e0a24a;
  --amber-hot: #e8b15f;
  --ink: #1a140c;
  --clay: #e7a090;
  --line: rgba(235, 228, 212, 0.16);
  --border: #a39888;
  --radius: 2px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; }

p { margin: 0 0 0.75em; }

h1, h2, h3 {
  font-weight: 600;
  hyphens: none;
  page-break-after: avoid;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 0.4em;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.landing h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }

h2 {
  margin: 0 0 0.45em;
  font-size: 1.45rem;
}

h3 {
  margin: 1.1em 0 0.35em;
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 0.5rem; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 2px 0 var(--amber);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.brand {
  flex: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main { padding-bottom: 4rem; }

.lede, .prose { max-width: 65ch; }

.quiet { color: var(--muted); }

.caps {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 2.5rem;
  align-items: start;
  min-height: calc(100dvh - 64px);
  padding-top: 1.25rem;
}

.hero-photo {
  width: 100%;
  height: min(68dvh, 640px);
  object-fit: cover;
  border-radius: var(--radius);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.button,
button {
  appearance: none;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

.primary { background: var(--amber); color: var(--ink); }
.primary:hover { background: var(--amber-hot); }
.secondary { box-shadow: inset 0 0 0 1px var(--text); }
.secondary:hover { background: rgba(235, 228, 212, 0.06); }

button:disabled { cursor: not-allowed; opacity: 0.72; }

.button:active:not(:disabled),
button:active:not(:disabled) { transform: translateY(1px); }

.block { margin-top: 5rem; }

.slot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.45em;
  color: var(--amber);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 0.95;
}

.slot-time { font-size: clamp(3.4rem, 9vw, 7rem); }

.slot-zone {
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.08em;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

ul { margin: 0; padding-left: 1.15em; list-style-type: circle; }
li { margin: 0 0 0.55em; }

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.caption { margin-top: 0.65rem; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-top: 1.5rem;
}

.auth img {
  width: 100%;
  height: min(70dvh, 640px);
  object-fit: cover;
  border-radius: var(--radius);
}

form.stack { display: grid; gap: 1rem; max-width: 28rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.help { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }

.error {
  margin: 0.35rem 0 0;
  color: var(--clay);
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--raised);
  color: var(--text);
  font: inherit;
}

input::placeholder { color: var(--muted); opacity: 1; }

.banner { max-width: 65ch; color: var(--clay); margin: 0 0 1rem; }

.readout {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.time {
  margin: 0;
  color: var(--amber);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}

.num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums lining-nums;
}

.failed, .status-error { color: var(--clay); }

.who {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.avatar, .avatar-fallback {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--raised);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.qr {
  width: min(260px, 100%);
  height: auto;
  background: #f3ead7;
  padding: 10px;
  border-radius: var(--radius);
}

.table-wrap { overflow-x: auto; margin-top: 0.5rem; }

.runs { width: 100%; min-width: 36rem; border-collapse: collapse; }

.runs th, .runs td {
  padding: 0.55em 1em 0.55em 0;
  text-align: left;
  vertical-align: top;
  border: none;
}

.runs thead th {
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.break { overflow-wrap: anywhere; }

.icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-block;
  background: currentColor;
  mask-image: url("/icons/clock.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("/icons/clock.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.skeleton { padding-top: 2rem; }

.bar {
  display: block;
  height: 0.85rem;
  margin: 0.7rem 0;
  border-radius: var(--radius);
  background: #24281e;
}

.w1 { width: 34%; }
.w2 { width: 68%; }
.w3 { width: 48%; }

@media (prefers-reduced-motion: no-preference) {
  .stage { animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .bar {
    background: linear-gradient(90deg, #24281e 0%, #34392c 45%, #24281e 100%);
    background-size: 200% 100%;
    animation: shimmer 1.1s ease-in-out infinite;
  }
  .primary, .secondary, button { transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 800px) {
  .hero, .pair, .auth { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 1.25rem; }
  .hero-photo { height: 180px; margin-top: 1.25rem; }
  .auth img { display: none; }
  .block, .foot { margin-top: 3rem; }
  .wrap { width: min(1120px, calc(100% - 2rem)); }
}

@media (min-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }
}
