/* PythonCave minimal cover
   One screen, one name, one line. Accent used only on interaction. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07080a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaecf0;
  --text-dim: #a3a9b3;
  --text-mute: #7e8592;
  --accent: #86efac;
  --accent-soft: rgba(134, 239, 172, 0.12);
  --accent-line: rgba(134, 239, 172, 0.30);
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(22px, 5vw, 48px);
  --maxw: 1160px;
}

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

html {
  height: 100%;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(860px 520px at 50% 18%, rgba(134, 239, 172, 0.075), transparent 66%),
    radial-gradient(1100px 780px at 84% 96%, rgba(134, 239, 172, 0.04), transparent 70%),
    linear-gradient(180deg, #090b0e 0%, #07080a 52%, #060709 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: #05130c;
}

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

/* ---------- cover ---------- */

.cover {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(64px, 12vh, 128px) var(--gutter);
}

.mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  margin-bottom: clamp(26px, 4vh, 40px);
  border: 1.6px solid var(--accent-line);
  border-radius: 17px 17px 5px 5px;
  background: linear-gradient(180deg, rgba(134, 239, 172, 0.20), transparent 74%);
}
.mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.6px;
  width: 1.6px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: 0.7;
}

h1 {
  margin: 0;
  font-size: clamp(2.85rem, 9vw, 6.1rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 600;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #cfd5dd 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: clamp(20px, 3.2vh, 30px) 0 0;
  max-width: 22em;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-dim);
  text-wrap: balance;
}

.links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(34px, 5.5vh, 52px);
}

.links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.22s ease, border-color 0.22s ease;
}
.links a span { transition: transform 0.22s ease; }
.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
}
.links a:hover span { transform: translate(2px, -2px); }

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

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.foot-inner {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- entrance ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  .cover > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .cover > :nth-child(1) { animation-delay: 0.05s; }
  .cover > :nth-child(2) { animation-delay: 0.13s; }
  .cover > :nth-child(3) { animation-delay: 0.24s; }
  .cover > :nth-child(4) { animation-delay: 0.34s; }
}

@media (prefers-reduced-motion: reduce) {
  .links a,
  .links a span { transition: none; }
  .cover > * { animation: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 520px) {
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
