/* Home (landing + feed), discover/topics, search and static pages. */

/* ---------- Page heading ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head__title { font-weight: 500; margin: 4px 0 6px; }
.page-head p { margin: 0; max-width: 60ch; }

/* ---------- Landing hero ---------- */
.landing-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.landing-hero__collage {
  position: absolute; inset: -40px -10%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: rotate(-6deg) scale(1.08); opacity: .4; filter: saturate(1.1);
}
.landing-hero__tile { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.landing-hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.landing-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 90% at 25% 50%, rgba(11, 12, 16, .92) 0%, rgba(11, 12, 16, .7) 55%, rgba(11, 12, 16, .35) 100%),
              linear-gradient(to bottom, transparent 60%, var(--bg));
}
.landing-hero__content { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.landing-hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 7vw, 76px); letter-spacing: -.02em; max-width: 12ch; margin: 18px 0 16px; }
.landing-hero__pitch { font-size: 18px; color: var(--text-soft); max-width: 54ch; margin: 0 0 28px; }
.landing-hero__avatars { display: flex; margin-top: 36px; }
.landing-hero__avatars a { margin-left: -10px; transition: transform .2s; }
.landing-hero__avatars a:first-child { margin-left: 0; }
.landing-hero__avatars a:hover { transform: translateY(-4px); z-index: 1; }
.landing-hero__avatars .avatar { box-shadow: 0 0 0 3px var(--bg); }

.landing-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.landing-pillars h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; }
.landing-pillars p { margin: 0; font-size: 14px; }
@media (max-width: 860px) { .landing-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .landing-pillars { grid-template-columns: 1fr; } }

.landing-cta { margin-top: 56px; text-align: center; padding: 48px 24px; }
.landing-cta h2 { font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); max-width: 22ch; margin: 0 auto 10px; }

/* ---------- Review of the week ---------- */
.rotw { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.rotw__art { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.rotw__art img { width: 100%; height: 100%; object-fit: cover; }
.rotw__art-avatar { width: 100%; height: 100%; display: grid; place-items: center; }
.rotw__quote { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; margin: 12px 0 18px; }
.rotw__quote p { margin: 0 0 .5em; }
.rotw__quote p:first-child::before { content: "“"; }
.rotw__quote p:last-child::after { content: "”"; }
@media (max-width: 760px) { .rotw { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Sidebar bits ---------- */
.mini-channels { display: grid; gap: 4px; }
.mini-channels--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mini-channel { display: flex; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius-sm); }
.mini-channel:hover { background: var(--surface); }
.mini-channel > span { display: flex; flex-direction: column; min-width: 0; }
.mini-channel__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nudge { padding: 18px; }
.nudge h3 { margin-bottom: 4px; }
.nudge p { margin: 0 0 12px; }

/* ---------- Feed ---------- */
.feed-log { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed-log__text { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.feed-log__thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; }
.feed-log__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Discover / topics ---------- */
.channel-list { list-style: none; padding: 0; margin: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.topic-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-raised); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.topic-card__avatars { display: flex; margin-bottom: 8px; }
.topic-card__avatars .avatar { margin-left: -10px; box-shadow: 0 0 0 3px var(--bg-raised); }
.topic-card__avatars .avatar:first-child { margin-left: 0; }
.topic-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin: 0; }
.topic-card p { margin: 0; }
.topic-intro { font-size: 17px; }

/* ---------- Search ---------- */
.search-page__form { flex-wrap: nowrap; max-width: 640px; }
.search-page__form .input { flex: 1; }
.search-import { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.search-import p { margin: 0; }

/* ---------- Static pages ---------- */
.about__mark { margin-bottom: 16px; }
.about__title { font-weight: 500; font-size: clamp(34px, 5vw, 54px); }
.about__grid { display: grid; gap: 16px; }
.about__grid p { margin: 0; }
.steps { padding-left: 20px; color: var(--text-soft); }
.steps li { margin: 6px 0; }
code { font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 4px; }

/* ---------- Legal pages ---------- */
.legal__title { font-weight: 500; font-size: clamp(32px, 4vw, 44px); margin-bottom: 4px; }
.legal__body { font-family: var(--font-sans); font-size: 16px; line-height: 1.7; }
.legal__body h2 { font-size: 20px; }
.legal__body h3 { font-size: 16px; margin-top: 1.4em; }
.legal__body h4 { font-size: 15px; margin: 1.2em 0 .3em; color: var(--text-soft); }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin: 6px 0; }
.legal__body code { font-size: 14px; }
