/* echairi.com — a signed message, mostly redacted. */

:root {
  --bg: #07080a;
  --fg: #aab3bd;
  --bright: #f3f6f9;
  --dim: #56606b;
  --accent: #6fe3ff;
  --accent-rgb: 111, 227, 255;
  --ink: #15191e;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 3rem 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Ciphertext field: visible at the edges, quiet behind the message. */
.cipher {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 55%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 55%, #000 100%);
  pointer-events: none;
}

.msg {
  position: relative;
  width: 100%;
  max-width: 38rem;
  animation: arrive 700ms ease-out both;
}

.armor,
.armor-head,
.sig {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.armor {
  white-space: nowrap;
  overflow: hidden;
}

.armor-head {
  margin-bottom: 2.2rem;
}

.name {
  margin: 0 0 1.6rem -0.04em;
  color: var(--bright);
  font-size: clamp(4.5rem, 24vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 1px rgba(var(--accent-rgb), 0.9),
    0 0 28px rgba(var(--accent-rgb), 0.45),
    0 0 90px rgba(var(--accent-rgb), 0.25);
  cursor: default;
}

/* Redaction bars. */
.redacted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.6rem;
  margin: 0 0 0.7rem;
}

.redacted span {
  flex: 0 0 var(--w);
  height: 1.05rem;
  background: linear-gradient(100deg, var(--ink) 40%, #232a31 50%, var(--ink) 60%) 0 0 / 300% 100%;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  animation: sweep 7s linear infinite;
}

.caption {
  margin: 0 0 2.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.quote {
  margin: 0 0 2.2rem;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(var(--accent-rgb), 0.55);
}

.quote p {
  margin: 0 0 0.5rem;
  color: var(--bright);
  font-size: 1.05rem;
  line-height: 1.55;
}

.quote footer {
  color: var(--dim);
  font-size: 0.8rem;
}

.contact {
  margin: 0 0 2.6rem;
}

.contact a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.contact a:hover {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.45);
}

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

.sig {
  margin: 0.4rem 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

/* 404 */
.fail {
  margin: 2.2rem 0 0.6rem;
  color: var(--bright);
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.4);
}

.caption span {
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  text-transform: none;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

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

@media (max-width: 600px) {
  body {
    padding: 2rem 1.25rem;
    font-size: 0.9rem;
  }

  .armor,
  .armor-head,
  .sig {
    font-size: 0.7rem;
  }

  /* The message is taller than a phone screen, so the field stays faint throughout. */
  .cipher {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg,
  .redacted span {
    animation: none;
  }
}
