/* homehunt.ch — the journal (blog)
   Faithful to the reference design: warm neutral, single deep-blue accent,
   editorial cards and a long-form reading view. Uses the brand tokens from app.css. */

.journal-masthead {
  border-bottom: 1px solid var(--hh-line);
  background: var(--hh-surface);
}
.journal-masthead .wrap { padding: clamp(2.2rem, 5vw, 2.75rem) 0 1.9rem; }
.journal-kicker {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hh-blue);
}
.journal-masthead h1 {
  font-size: clamp(2rem, 4vw, 2.6rem); margin-top: .6rem;
  letter-spacing: -0.03em; max-width: 720px;
}
.journal-masthead p { font-size: 1.06rem; color: var(--hh-ink-2); margin-top: .7rem; max-width: 560px; }

.journal-body { padding-top: 2rem; }

/* ---- meta line ---- */
.j-meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--hh-muted); }
.j-meta .dot { width: 3px; height: 3px; border-radius: 100px; background: currentColor; opacity: .5; }
.j-meta--light { color: rgba(255,255,255,.82); }

/* ---- feature card ---- */
.feature-card {
  position: relative; display: flex; min-height: 440px; cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hh-line);
}
.feature-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover img { transform: scale(1.04); }
.feature-card .grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,18,16,.9) 0%, rgba(18,18,16,.45) 42%, rgba(18,18,16,.08) 100%);
}
.feature-card .fc-body { position: relative; margin-top: auto; padding: clamp(1.4rem,3vw,2.25rem); color: #fff; max-width: 680px; }
.feature-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; margin-top: 1rem; letter-spacing: -0.025em; }
.feature-card .dek { font-size: 1.03rem; color: rgba(255,255,255,.86); margin-top: .75rem; line-height: 1.5; }
.fc-byline { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.fc-byline .name { font-weight: 600; font-size: .85rem; }

.cat-pill-strong {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: var(--hh-blue); color: #fff;
  padding: .32rem .7rem; border-radius: 100px;
}

/* ---- category filter ---- */
.cat-pills { display: flex; gap: .56rem; margin: 2.25rem 0 1.6rem; overflow-x: auto; padding-bottom: .25rem; }
.cat-pill {
  padding: .44rem .9rem; border-radius: 100px; font-size: .82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; border: 1px solid var(--hh-line);
  background: var(--hh-surface); color: var(--hh-ink-2);
}
.cat-pill:hover { border-color: var(--hh-blue); color: var(--hh-blue); }
.cat-pill.is-active { border-color: var(--hh-blue); background: var(--hh-blue-tint); color: var(--hh-blue); }

/* ---- post grid + cards ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
  border: 1px solid var(--hh-line); border-radius: var(--radius); background: var(--hh-surface);
  transition: box-shadow .18s, transform .18s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { height: 190px; overflow: hidden; background: var(--hh-surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card__media img { transform: scale(1.055); }
.post-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hh-blue); }
.post-card h3 { font-size: 1.16rem; margin-top: .45rem; line-height: 1.2; }
.post-card h3 a { color: var(--hh-ink); }
.post-card h3 a:hover { color: var(--hh-blue); }
.post-card .dek { font-size: .88rem; color: var(--hh-ink-2); margin-top: .5rem; line-height: 1.5; flex: 1; }
.post-card__foot { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--hh-line-2, var(--hh-line)); display: flex; align-items: center; justify-content: space-between; }
.post-card__foot .name { font-size: .82rem; font-weight: 600; color: var(--hh-ink-2); }

/* ---- newsletter ---- */
.newsletter {
  margin-top: 3rem; padding: clamp(1.6rem, 4vw, 2.5rem); background: var(--hh-blue);
  border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.9rem; align-items: center;
}
.newsletter h2 { color: #fff; font-size: 1.7rem; }
.newsletter p { color: rgba(255,255,255,.85); margin-top: .6rem; font-size: .98rem; max-width: 420px; }
.newsletter form { display: flex; gap: .6rem; position: relative; z-index: 2; }
.newsletter input { flex: 1; padding: .75rem .95rem; border-radius: var(--radius-sm); border: none; outline: none; font-size: .92rem; color: var(--hh-ink); }
.newsletter button { padding: .75rem 1.25rem; border-radius: var(--radius-sm); border: none; background: #fff; color: var(--hh-blue); font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.newsletter .orb { position: absolute; right: -90px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* avatar (monogram) */
.avatar { display: flex; align-items: center; gap: .65rem; }
.avatar__badge {
  width: 38px; height: 38px; border-radius: 100px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--hh-blue-tint); color: var(--hh-blue);
  font-weight: 700; font-size: .85rem; font-family: var(--font-mono);
}
.avatar__badge img { width: 100%; height: 100%; object-fit: cover; }
.avatar__name { font-weight: 600; font-size: .84rem; }
.avatar__role { font-size: .76rem; color: var(--hh-muted); }

/* =================== ARTICLE =================== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--hh-blue); z-index: 60; transition: width .1s linear; }

.article-hero {
  position: relative; height: clamp(340px, 44vw, 460px); overflow: hidden; background: var(--hh-ink);
}
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.article-hero .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,16,.92), rgba(18,18,16,.3)); }
.article-hero .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2.5rem; }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.04; margin-top: 1.1rem; letter-spacing: -0.03em; max-width: 800px; }
.article-hero .dek { font-size: 1.18rem; color: rgba(255,255,255,.88); margin-top: 1rem; max-width: 640px; line-height: 1.5; }
.article-back {
  position: absolute; top: 1.6rem; left: 0; display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .84rem; font-weight: 600; padding: .5rem .85rem; border-radius: 100px;
}
.article-back:hover { background: rgba(255,255,255,.24); color: #fff; }

.article-wrap { max-width: 720px; margin: 0 auto; }
.byline { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; border-bottom: 1px solid var(--hh-line); flex-wrap: wrap; gap: .9rem; }
.byline .right { display: flex; align-items: center; gap: 1.1rem; }
.share { display: flex; gap: .5rem; }
.share a { width: 36px; height: 36px; border-radius: 100px; border: 1px solid var(--hh-line); background: var(--hh-surface); display: grid; place-items: center; color: var(--hh-ink-2); }
.share a:hover { border-color: var(--hh-blue); color: var(--hh-blue); }

.article-body { padding: 2.25rem 0 1rem; }
.article-body p { font-size: 1.12rem; line-height: 1.7; color: var(--hh-ink-2); margin-bottom: 1.4rem; }
.article-body h2 { font-size: 1.55rem; margin: .6rem 0 1rem; letter-spacing: -0.02em; }
.article-body blockquote { margin: .6rem 0 1.75rem; padding-left: 1.5rem; border-left: 3px solid var(--hh-blue); }
.article-body blockquote p { font-family: var(--font-ui); font-size: 1.5rem; line-height: 1.35; color: var(--hh-ink); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.article-body blockquote footer { font-size: .88rem; color: var(--hh-muted); margin-top: .75rem; }
.article-body figure { margin: .5rem 0 1.9rem; }
.article-body figure .img-wrap { border-radius: var(--radius); overflow: hidden; background: var(--hh-surface-2); }
.article-body figure img { width: 100%; display: block; }
.article-body figcaption { font-size: .82rem; color: var(--hh-muted); margin-top: .65rem; text-align: center; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: .6rem 0 1.9rem; border-bottom: 1px solid var(--hh-line); }
.article-tags a { font-size: .82rem; padding: .38rem .8rem; border-radius: 100px; background: var(--hh-surface-2); border: 1px solid var(--hh-line); color: var(--hh-ink-2); }
.article-tags a:hover { border-color: var(--hh-blue); color: var(--hh-blue); }

.author-bio { display: flex; gap: 1.1rem; align-items: center; padding: 1.9rem 0; }
.author-bio .badge { width: 64px; height: 64px; border-radius: 100px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; background: var(--hh-blue-tint); color: var(--hh-blue); font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.author-bio .badge img { width: 100%; height: 100%; object-fit: cover; }
.author-bio .label { font-size: .74rem; color: var(--hh-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.author-bio .name { font-weight: 700; font-size: 1.05rem; margin-top: .2rem; }
.author-bio .role { font-size: .9rem; color: var(--hh-ink-2); }
.author-bio .bio { font-size: .92rem; color: var(--hh-ink-2); margin-top: .4rem; max-width: 60ch; }

.keep-reading { border-top: 1px solid var(--hh-line); padding-top: 2.25rem; margin-top: 1.25rem; }
.keep-reading h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 380px; }
}
