/* rain.astrae.me - static facade inspired by sALAH8 */
:root {
  --bg: #f7f5f1;
  --paper: #fffdf9;
  --text: #111111;
  --muted: #5f5a53;
  --line: #dfd8ce;
  --accent: #1c1c1c;
  --soft: #ece7df;
  --max: 1160px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(223, 216, 206, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111111, #4e4a44);
  box-shadow: 0 0 0 8px rgba(17, 17, 17, 0.08);
}

.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  padding: 4.4rem 0 3rem;
}

.hero__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 2.5rem;
  align-items: end;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.25rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero__lead {
  max-width: 48rem;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.hero__panel-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.hero__panel-value {
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
}

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

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 600;
  transition: 180ms ease;
}

.button--solid {
  background: var(--accent);
  color: #ffffff;
}

.button--solid:hover {
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
}

.button--ghost {
  color: var(--accent);
  background: transparent;
}

.button--ghost:hover {
  background: #ffffff;
  text-decoration: none;
}

.section {
  padding: 2.6rem 0 0;
}

.section__title {
  margin: 0 0 1.6rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.section__desc {
  margin: -0.4rem 0 1.8rem;
  max-width: 42rem;
  color: var(--muted);
}

.featured {
  margin-bottom: 2.5rem;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-card__media {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(17,17,17,0.08), rgba(17,17,17,0.02)),
    radial-gradient(circle at top left, rgba(17,17,17,0.12), transparent 36%),
    linear-gradient(135deg, #e7e2d9, #f7f5f1);
}

.featured-card__body {
  padding: 2rem 2rem 1.8rem 0.2rem;
  align-self: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.featured-card h3,
.note-card h3,
.article h1 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.featured-card h3 {
  font-size: clamp(2rem, 3.3vw, 3.6rem);
}

.featured-card p {
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2rem;
  margin-bottom: 3rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.note-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(17,17,17,0.05), rgba(17,17,17,0.02)),
    linear-gradient(135deg, #ebe6de, #faf8f4);
  border: 1px solid var(--line);
}

.note-card__body {
  padding-top: 1rem;
}

.note-card h3 {
  font-size: 1.9rem;
}

.note-card p {
  color: var(--muted);
  margin: 0.8rem 0 1rem;
}

.note-card__link {
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 3.2rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.article-wrap {
  padding: 3.5rem 0 4rem;
}

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

.article__back {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.article h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.article__lead {
  font-size: 1.16rem;
  color: var(--muted);
  margin-top: 1rem;
}

.article__hero {
  margin: 2rem 0 2.2rem;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17,17,17,0.06), rgba(17,17,17,0.02)),
    linear-gradient(135deg, #e8e2d8, #fbf9f4);
}

.article h2 {
  margin-top: 2.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.article p,
.article li {
  color: #2e2a25;
}

.article blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid #111111;
  background: #f1ece4;
  color: #2e2a25;
}

.article code {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  background: #efebe4;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  font-size: 0.94em;
}

@media (max-width: 980px) {
  .hero__wrap,
  .featured-card,
  .split {
    grid-template-columns: 1fr;
  }

  .featured-card__body {
    padding: 0 1.5rem 1.6rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 0.9rem;
    font-size: 0.92rem;
  }

  .section__title {
    margin-bottom: 1.2rem;
  }
}
