/* applevisionstuff — Apple.com-minimal Vision rumor blog */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --line: #d2d2d7;
  --link: #0066cc;
  --max: 980px;
  --wide: 1120px;
  --radius: 18px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--fg); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.placeholder {
  background: #e8f4ff;
  border-left: 3px solid #0066cc;
  padding: 0.25em 0.5em;
  font-style: italic;
  color: #003d7a;
  display: inline;
}

.site-header {
  background: rgba(251,251,253,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; opacity: 0.7; }
.nav-links {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  font-size: 0.8rem; color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); text-decoration: none; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

.page-hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.page-hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 28em;
  margin: 0 auto;
}

/* Visual-forward cards */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}
a.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}
.post-card.featured {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .post-card.featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
  }
  .post-card.featured .card-visual { min-height: 280px; }
}
.card-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #2c2c2e 0%, #5a5a5e 45%, #a1a1a6 100%);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card:nth-child(2) .card-visual {
  background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 50%, #7eb6ff 100%);
}
.post-card:nth-child(3) .card-visual {
  background: linear-gradient(145deg, #1a1025 0%, #4a2870 50%, #e0b0ff 100%);
}
.post-card.featured .card-visual {
  background: linear-gradient(135deg, #000 0%, #1d1d1f 40%, #6e6e73 100%);
  aspect-ratio: auto;
  min-height: 200px;
}
.post-card.featured .card-visual img {
  min-height: 200px;
}
.card-body { padding: 1.35rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.card-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.post-card.featured .card-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}
.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.card-body .date {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Article */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.article .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.article h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.article .lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.article-visual {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #111 0%, #3a3a3c 50%, #8e8e93 100%);
  margin-bottom: 2rem;
  overflow: hidden;
}
.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prose p { margin-bottom: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer a { color: var(--muted); }
