/* domain_placeholder: one page, guhhammer.dev's warm near-black and its
   orange (the tokens in rust-guhhammer's input.css, kept by hand), laid out
   like trek's dashboard: a dot grid under a light from the top, one raised
   surface with a lit top edge, a pulsing status dot, figures in mono.
   Dark only, like guhhammer.dev. Nothing loads from another host. */

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ground: #0c0a09;
  --surface: #151210;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);

  /* Contrast on ground: 17.3 / 9.2 / 5.7 : 1. */
  --ink: #f4efe9;
  --ink-2: #b8b0a6;
  --ink-3: #918980;

  --flare-300: #ffa26e;
  --flare-400: #ff8f4c;
  --flare-500: #e8793a;
  --flare-600: #c85f26;
  /* Text on orange is near-black: 6.8:1 on flare-500. */
  --on-flare: #0c0a09;
  --ember-35: rgba(232, 121, 58, 0.35);

  --good: #7ad17f;

  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, "DejaVu Sans Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--ground);
  /* trek's plane: an orange light from the top over a dot grid. */
  background-image:
    radial-gradient(900px 420px at 50% -160px, rgba(232, 121, 58, 0.12), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font: 17px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ember-35); }

:focus-visible {
  outline: 2px solid var(--flare-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--flare-500);
  color: var(--on-flare);
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}
.skip:focus { top: 16px; }

.wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 16px;
}

/* guhhammer.dev's wordmark: the name in mono and its orange block cursor. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 56px;
  color: var(--ink);
  font: 600 1rem var(--mono);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.cursor {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--flare-500);
  animation: cursor 1.1s steps(1, end) infinite;
}
@keyframes cursor { 50% { opacity: 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink-2);
  font: 500 0.8125rem var(--mono);
  letter-spacing: 0.04em;
}

/* trek's status dot: green, and only it pulses. */
.dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px rgba(122, 209, 127, 0.55);
  flex: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(3); opacity: 0; }
}

/* guhhammer.dev's kinetic title: the name rises into a clipped line, and
   the width axis narrows under the pointer. */
.domain {
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(2.5rem, 9vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.rise {
  display: inline-block;
  padding-bottom: 0.08em;
  font-stretch: 100%;
  animation: rise 0.9s var(--ease-out) both;
  transition: font-stretch 0.5s var(--ease-out);
}
.domain:hover .rise { font-stretch: 82%; }
@keyframes rise {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

.lede {
  max-width: 34rem;
  margin: 22px 0 36px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.link {
  color: var(--flare-300);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ember-35);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.link:hover { color: var(--flare-400); text-decoration-color: currentColor; }
.arrow { display: inline-block; margin-left: 0.3em; transition: transform 0.25s var(--ease-out); }
.link:hover .arrow { transform: translateX(3px); }

/* trek's surface: a step above the ground, a hairline, and a lit top edge
   (React Bits' Border Glow, as trek ported it), here in the brand orange. */
.card {
  position: relative;
  padding: 6px 22px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface), rgba(12, 10, 9, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}
.card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ember-35), transparent);
}

.card dl { margin: 0; }
.row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.row:first-child { border-top: 0; }
.row dt {
  color: var(--ink-3);
  font: 500 0.8125rem/1.9 var(--mono);
  letter-spacing: 0.02em;
}
.row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.actions { margin: 28px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--flare-600);
  border-radius: 6px;
  background: var(--flare-500);
  color: var(--on-flare);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--flare-400); }
.btn:active { background: var(--flare-600); }

.foot {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font: 0.75rem/1.6 var(--mono);
}

@media (max-width: 560px) {
  .wordmark { margin-bottom: 40px; }
  .card { padding: 4px 16px; }
  .row { grid-template-columns: 1fr; padding: 12px 0; }
  .row dt { line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor, .dot::after, .rise { animation: none; }
  .rise, .arrow { transition: none; }
}
