@import url("variables.css");
@import url("animations.css");

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "IBM Plex Sans", sans-serif;
}

/* Noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 6%;
}

/* Header */
header {
  padding: 28px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}

.logo:hover {
  opacity: 0.8;
}

.logo:hover b {
  color: var(--orange2);
}

.logo b {
  color: var(--orange);
  font-weight: 400;
  transition: color 0.15s;
}

.hdr-loc {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
  gap: 52px;
}

/* Name block */
.name-block {
  animation: up 0.6s ease 0.1s both;
}

.name-pre {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-pre::after {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--orange);
  opacity: 0.3;
}

.name-h1 {
  font-family: "Lora", serif;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.name-h1 .cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: var(--orange);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

.name-bio {
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  opacity: 0.72;
  line-height: 1.82;
  max-width: 480px;
}

.name-bio em {
  font-family: "Lora", serif;
  font-style: italic;
  color: var(--orange2);
  opacity: 1;
  font-weight: 400;
}

/* Status block */
.status-block {
  border-left: 1px solid rgba(230, 225, 214, 0.12);
  padding-left: 22px;
  animation: up 0.6s ease 0.35s both;
}

.status-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.status-line {
  font-family: "Lora", serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  opacity: 0.65;
  line-height: 1.45;
  margin-bottom: 22px;
}

.status-line em {
  font-style: normal;
  color: var(--orange2);
  opacity: 1;
}

/* Progress */
.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.prog-track {
  flex: 1;
  height: 1px;
  background: var(--bg3);
}

.prog-fill {
  height: 100%;
  width: 30%;
  background: var(--orange);
  animation: pulse-prog 3s ease-in-out infinite alternate;
}

.prog-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Notify */
.notify-lede {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.notify-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notify-input {
  flex: 1;
  min-width: 190px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 13px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notify-input::placeholder {
  color: var(--muted);
}

.notify-input:focus {
  border-color: rgba(232, 137, 42, 0.35);
  box-shadow: 0 0 0 2px rgba(232, 137, 42, 0.12);
}

.notify-btn {
  background: var(--orange);
  border: none;
  border-radius: 5px;
  padding: 9px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.notify-btn:hover {
  background: var(--orange2);
  transform: translateY(-1px);
}

.notify-btn:active {
  transform: translateY(0);
}

.notify-fine {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.5;
}

.notify-ok {
  display: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--orange);
  padding: 9px 0;
  letter-spacing: 0.04em;
}

/* Footer */
footer {
  padding: 22px 0 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-links {
  display: flex;
  gap: 16px;
}

.ft-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ft-links a:hover {
  color: var(--orange);
}

.ft-copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.3;
}

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
