/* Design tokens — mirrors the two token sets from the source design. */
:root {
  --bg: oklch(0.985 0.003 260);
  --fg: oklch(0.19 0.006 260);
  --muted: oklch(0.56 0.008 260);
  --line: oklch(0.19 0.006 260 / 0.14);
  --line-strong: oklch(0.19 0.006 260 / 0.34);
  --hover: oklch(0.19 0.006 260 / 0.035);
  --glow: radial-gradient(900px 500px at 12% -10%, oklch(0.72 0.16 155 / 0.09), transparent 70%);

  --font-sans: "Instrument Sans", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.006 260);
  --fg: oklch(0.97 0.004 260);
  --muted: oklch(0.66 0.008 260);
  --line: oklch(1 0 0 / 0.14);
  --line-strong: oklch(1 0 0 / 0.34);
  --hover: oklch(1 0 0 / 0.05);
  --glow: radial-gradient(900px 500px at 12% -10%, oklch(0.72 0.16 155 / 0.1), transparent 70%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
}

a { color: inherit; text-decoration: none; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.45s ease, color 0.45s ease;
}

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glow);
}

/* Header */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

/* Main */
.main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 32px 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.name {
  margin: 0;
  font-size: clamp(52px, 9vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-top: 26px;
}

.role, .place {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
}

.role { color: var(--fg); }
.place { color: var(--muted); }

.rule {
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.link-solid {
  background: var(--fg);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}

.link-solid:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.link-outline {
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.link-outline:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  transform: translateY(-1px);
}

.arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.6;
}

.arrow-muted {
  opacity: 1;
  color: var(--muted);
}

/* Footer */
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .shell, .link, .theme-toggle { transition: none; }
}

/* Once the tagline wraps to two lines the connecting rule dangles — drop it. */
@media (max-width: 640px) {
  .rule { display: none; }
  .header, .footer { padding-left: 24px; padding-right: 24px; }
  .main { padding: 48px 24px 32px; }
}
