:root {
  --bg: #0b1118;
  --bg-soft: #101923;
  --surface: rgba(15, 22, 31, 0.76);
  --surface-strong: rgba(18, 27, 39, 0.94);
  --card: rgba(255, 255, 255, 0.045);
  --text: #f5f1e8;
  --muted: #99a8b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #f5784f;
  --accent-soft: #ffd9ca;
  --accent-cool: #8de4ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 120, 79, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(141, 228, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #091018 0%, var(--bg) 58%, #0d1520 100%);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
}

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

.bg-orb {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.34;
  pointer-events: none;
}

.orb-left {
  top: 50px;
  left: -110px;
  background: rgba(245, 120, 79, 0.48);
}

.orb-right {
  top: 240px;
  right: -120px;
  background: rgba(92, 153, 255, 0.28);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto;
  padding: 24px 0 36px;
}

.site-header,
.hero,
.manifesto,
.posts,
.about,
.connect,
.newsletter {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.nav a,
.header-cta,
.button,
.section-label,
.post-meta,
.featured-link,
.newsletter-form input,
.newsletter-form button,
.panel-label,
.text-link,
.focus-tags span {
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #111822;
}

.hero,
.manifesto,
.posts,
.about,
.connect,
.newsletter {
  margin-bottom: 18px;
  padding: 34px;
  border-radius: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  min-height: 72vh;
}

.eyebrow,
.section-label,
.panel-label {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-card h2,
.newsletter h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.hero-emphasis {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--accent-soft);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-copy,
.manifesto-grid p,
.featured-copy p,
.post-card p,
.about-card p,
.newsletter-copy p,
.section-copy,
.mini-stats span,
.stack-list span,
.connect-copy span {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 58ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff7f2;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.focus-tags span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.detail-card,
.manifesto-grid article,
.post-card,
.about-card,
.stack-card,
.connect-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}

.detail-card {
  padding: 24px;
}

.detail-card-alt {
  background: linear-gradient(180deg, rgba(141, 228, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.hero-list li + li {
  margin-top: 10px;
}

.mini-stats {
  display: grid;
  gap: 14px;
}

.mini-stats div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-copy {
  max-width: 62ch;
  margin-top: 12px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link,
.featured-link,
.post-card a {
  color: var(--accent-cool);
}

.manifesto-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manifesto-grid article,
.post-card,
.about-card,
.stack-card {
  padding: 24px;
}

.manifesto-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(245, 120, 79, 0.14);
  color: var(--accent-soft);
  font-weight: 800;
}

.manifesto-grid h3,
.featured-copy h3,
.post-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(245, 120, 79, 0.2);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 120, 79, 0.08), rgba(141, 228, 255, 0.05)),
    rgba(255, 255, 255, 0.02);
}

.post-card {
  min-height: 260px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.post-card:hover,
.post-card:focus-within,
.connect-card:hover,
.connect-card:focus-visible,
.about-card:hover,
.stack-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(245, 120, 79, 0.12), rgba(255, 255, 255, 0.03)),
    var(--card);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
}

.portrait-card,
.about-card h2,
.newsletter h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.portrait-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.about-card h2,
.newsletter h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.stack-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stack-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.stack-list strong {
  font-size: 1rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.connect .section-heading {
  margin-bottom: 18px;
}

.connect .section-heading h2 {
  max-width: 10ch;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 0.98;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.connect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  flex: 0 0 48px;
}

.connect-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.connect-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.connect-copy strong {
  font-size: 1rem;
}

.connect-copy span {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
  line-height: 1.45;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: min(100%, 430px);
}

.newsletter-form input {
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.newsletter-form button {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #111822;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .site-header,
  .hero,
  .featured-post,
  .section-row,
  .about-layout,
  .newsletter {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-cta {
    width: fit-content;
  }

  .connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .manifesto-grid,
  .post-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-card img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding: 12px 0 24px;
  }

  .site-header,
  .hero,
  .manifesto,
  .posts,
  .about,
  .connect,
  .newsletter {
    padding: 22px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.95rem;
  }

  .section-heading h2,
  .about-card h2,
  .newsletter h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .newsletter-form {
    flex-direction: column;
  }

  .button,
  .newsletter-form input,
  .newsletter-form button,
  .header-cta {
    width: 100%;
  }

  .brand-copy span:last-child {
    display: none;
  }
}
