/* ---------------------------------------------------------------------------
   Method Labs — holding page ("Terminal" direction)
   Single screen, zero JavaScript. Design tokens below mirror the handoff spec.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-700.woff2') format('woff2');
}

:root {
  --bg: #0a0b0a;
  --fg: #c9cbc4;
  --fg-bright: #f2f1ec;
  --accent: #ffb000;
  --accent-hover: #ffc94d;
  --accent-70: rgba(255, 176, 0, .7);
  --rule: rgba(201, 203, 196, .14);
  --rule-soft: rgba(201, 203, 196, .1);
  --muted-50: rgba(201, 203, 196, .5);
  --muted-42: rgba(201, 203, 196, .42);
  --muted-40: rgba(201, 203, 196, .4);
  --scanline: rgba(255, 255, 255, .028);
  --glow: rgba(255, 176, 0, .07);

  --gutter: 44px;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout ------------------------------------------------------------------ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Atmosphere — decorative overlays behind the content. */

.scanlines,
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    var(--scanline) 0px,
    var(--scanline) 1px,
    transparent 1px,
    transparent 3px
  );
}

.glow {
  background: radial-gradient(120% 90% at 50% 40%, var(--glow), transparent 65%);
}

/* Header bar -------------------------------------------------------------- */

.bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bar__domain {
  color: var(--accent);
}

.bar__status {
  color: var(--muted-50);
}

/* Main block -------------------------------------------------------------- */

.main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}

.log {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-42);
  margin-bottom: 44px;
}

/* Dot leaders are literal characters in the copy — the monospace font is what
   keeps the trailing "ok" column aligned. Never let these lines wrap. */
.log > span {
  white-space: pre;
}

.log__pending {
  color: var(--accent-70);
}

.wordmark {
  margin: 0;
  font-size: 112px;
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--fg-bright);
}

.caret {
  display: inline-block;
  width: 52px;
  height: 96px;
  background: var(--accent);
  margin-left: 18px;
  vertical-align: -8px;
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1 }
  50%, 100% { opacity: 0 }
}

/* Meta footer ------------------------------------------------------------- */

.meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}

.cell {
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-right: 1px solid var(--rule-soft);
}

.cell:last-child {
  border-right: 0;
}

.cell__label {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-40);
}

.cell__value {
  font-size: 14px;
  color: var(--fg-bright);
}

.cell__value--link {
  color: var(--accent);
}

.cell__value--link:hover {
  color: var(--accent-hover);
}

/* Preferences ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .wordmark {
    font-size: 64px;
  }

  .caret {
    width: 30px;
    height: 56px;
    margin-left: 10px;
    vertical-align: -4px;
  }

  .meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell {
    border-bottom: 1px solid var(--rule-soft);
  }
}

/* Below 466px a two-column footer clips the email addresses against
   .page { overflow: hidden }. Stack the cells so both stay readable. */
@media (max-width: 466px) {
  .meta {
    grid-template-columns: 1fr;
  }

  .cell {
    border-right: 0;
  }
}
