:root {
  --text: #161616;
  --muted: #5d564d;
  --card: rgba(255, 250, 242, 0.8);
  --stroke: rgba(22, 22, 22, 0.08);
  --shadow: 0 24px 60px rgba(38, 31, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 103, 25, 0.18), transparent 32%),
    radial-gradient(circle at right 20%, rgba(36, 41, 47, 0.12), transparent 28%),
    linear-gradient(160deg, #f6f1e7 0%, #efe6d9 52%, #e6dac7 100%);
}

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

.shell {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.shell__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.8;
  pointer-events: none;
}

.shell__glow--one {
  top: 0;
  right: -1rem;
  width: 180px;
  height: 180px;
  background: rgba(255, 103, 25, 0.18);
}

.shell__glow--two {
  bottom: 3rem;
  left: -2rem;
  width: 220px;
  height: 220px;
  background: rgba(36, 41, 47, 0.12);
}

.hero {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: rgba(255, 249, 240, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.links {
  display: grid;
  gap: 1rem;
}

.card {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(38, 31, 24, 0.18);
}

.card:focus-visible {
  outline: 3px solid rgba(22, 22, 22, 0.18);
  outline-offset: 3px;
}

.card--x:hover,
.card--x:focus-visible {
  border-color: rgba(17, 17, 17, 0.34);
}

.card--github:hover,
.card--github:focus-visible {
  border-color: rgba(36, 41, 47, 0.34);
}

.card--substack:hover,
.card--substack:focus-visible {
  border-color: rgba(255, 103, 25, 0.42);
}

.card__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-size: 1.28rem;
  line-height: 1.2;
}

.card__meta {
  font-size: 0.96rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.25rem, 720px);
    padding: 1.25rem 0 2rem;
  }

  .hero,
  .card {
    border-radius: 22px;
  }

  .hero {
    padding: 1.4rem;
  }

  .card {
    padding: 1rem 1.05rem;
  }
}
