/* phoneballs — SpaceX-derived black canvas, D-DIN uppercase, ghost button */

@import url('https://cdn.jsdelivr.net/npm/@fontsource/d-din@5.0.5/index.css');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/d-din@5.0.5/700.css');

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

:root {
  --bg: #000000;
  --ink: #f0f0fa;
  --ink-muted: rgba(240, 240, 250, 0.65);
  --hairline: rgba(240, 240, 250, 0.12);
  --ghost-bg: rgba(240, 240, 250, 0.1);
  --ghost-border: rgba(240, 240, 250, 0.35);
  --hover-white: #ffffff;
  --overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'D-DIN', Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(240, 240, 250, 0.35);
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--hover-white);
  text-decoration-color: var(--hover-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============ NAV ============ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 8vw, 96px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.wordmark {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--hover-white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--hover-white);
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
  }

  .nav-links {
    gap: 20px;
  }
}

/* ============ HOMEPAGE HERO (text-only) ============ */

.page-hero {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 160px clamp(24px, 8vw, 96px) 96px;
}

.page-hero__inner {
  max-width: 720px;
  width: 100%;
}

/* ============ INLINED POST (homepage) ============ */

.post-inline {
  width: 100%;
  padding: 64px clamp(24px, 8vw, 96px);
  border-top: 1px solid var(--hairline);
}

.post-inline__inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.post-inline .eyebrow {
  margin-bottom: 16px;
}

.post-inline .headline {
  margin-bottom: 32px;
}

.post-inline .prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.post-inline .prose > * + * {
  margin-top: 20px;
}

.post-inline .prose h3 {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.post-inline .prose ul,
.post-inline .prose ol {
  padding-left: 24px;
}

.post-inline .prose li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.post-inline .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ghost-border);
}

.post-inline .prose a:hover {
  color: var(--hover-white);
  text-decoration-color: var(--hover-white);
}

.post-inline .prose strong {
  font-weight: 700;
}

.post-inline__more {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
}

.post-inline__more a {
  color: var(--ink);
  text-decoration: none;
}

.post-inline__more a:hover {
  color: var(--hover-white);
}

/* ============ CLOSING SCENE (Earth image at bottom) ============ */

.closing-scene {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}

.closing-scene__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0.85;
}

.display {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.headline {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

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

.headline a:hover {
  color: var(--hover-white);
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 640px;
}

.page-hero .lead {
  margin-bottom: 40px;
}

/* ============ GHOST BUTTON ============ */

.ghost-btn {
  display: inline-block;
  background: var(--ghost-bg);
  border: 1px solid var(--ghost-border);
  border-radius: 32px;
  padding: 14px 22px;
  font-family: 'D-DIN', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--hover-white);
  color: var(--hover-white);
  text-decoration: none;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--bg);
  padding: 48px clamp(24px, 8vw, 96px);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--hover-white);
}

/* ============ ARTICLE BODY PAGE ============ */

.article-page {
  min-height: 100vh;
  padding: 160px 24px 96px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0.85;
}

.article__title {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.article__meta {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 48px;
}

.article__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.article__body > * + * {
  margin-top: 24px;
}

.article__body h2 {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
}

.article__body h3 {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.article__body p {
  font-size: 16px;
  line-height: 1.65;
}

.article__body ul,
.article__body ol {
  padding-left: 24px;
}

.article__body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ghost-border);
}

.article__body a:hover {
  color: var(--hover-white);
  text-decoration-color: var(--hover-white);
}

.article__footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.article__footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.article__footer a:hover {
  color: var(--hover-white);
}

/* ============ BLOG INDEX ============ */

.blog-index {
  min-height: 100vh;
  padding: 160px 24px 96px;
}

.blog-index__inner {
  max-width: 880px;
  margin: 0 auto;
}

.blog-index__title {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.blog-index__dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 64px;
  max-width: 640px;
  text-transform: none;
  letter-spacing: 0;
}

.post-row {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}

.post-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.post-row__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  opacity: 0.85;
}

.post-row__title {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-row__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-row__title a:hover {
  color: var(--hover-white);
}

.post-row__dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.post-row__date {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ ABOUT PAGE ============ */

.about-page {
  min-height: 100vh;
  padding: 160px 24px 96px;
}

.about-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-page p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ============ 404 ============ */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.not-found__code {
  font-family: 'D-DIN', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 14vw, 160px);
  line-height: 1.0;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.not-found__msg {
  font-size: 13px;
  letter-spacing: 1.17px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}
