/* ============================================================
   grisshaus — components.css
   All site-specific component styles
   Requires: base.css loaded first
   ============================================================ */

/* ---- NAV ---- */
.gh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  height: 110px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gh-nav__logo {
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-nav__links {
  display: flex;
  gap: 60px;
}

.gh-nav__links a {
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.gh-nav__links a:hover,
.gh-nav__links a.active {
  color: var(--text);
}

.gh-nav__yt {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.gh-nav__yt:hover {
  color: var(--accent);
}

/* ---- HERO ---- */
.gh-hero {
  padding: 160px var(--page-pad) 140px;
  border-bottom: 0.5px solid var(--border);
}

.gh-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  color: var(--accent2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.gh-hero__eyebrow-line {
  width: 60px;
  height: 0.5px;
  background: var(--accent2);
  flex-shrink: 0;
}

.gh-hero__title {
  font-size: clamp(80px, 12vw, 128px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 60px;
  max-width: 1200px;
}

.gh-hero__title em {
  color: var(--accent);
  font-style: normal;
}

.gh-hero__sub {
  font-size: 30px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 1000px;
  margin-bottom: 0;
}

/* ---- POST LIST ---- */
.gh-posts {}

.gh-post {
  display: grid;
  grid-template-columns: 80px 1fr 180px;
  border-top: 0.5px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.gh-post:hover {
  background: var(--surface);
}

.gh-post__num {
  padding: 56px 0 56px var(--page-pad);
  font-size: 13px;
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding-right: 0;
  align-self: start;
  padding-top: 58px;
}

.gh-post__body {
  padding: 56px 56px;
  border-left: 0.5px solid var(--border);
}

.gh-post__cat {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gh-post__title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
  transition: color var(--transition);
}

.gh-post:hover .gh-post__title {
  color: var(--accent);
}

.gh-post__excerpt {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.gh-post__meta {
  padding: 56px var(--page-pad) 56px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  border-left: 0.5px solid var(--border);
}

.gh-post__date,
.gh-post__read {
  font-size: 13px;
  color: var(--dim);
}

/* ---- LOWER SHELF (3-col) ---- */
.gh-lower {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 0.5px solid var(--border);
}

.gh-lower__col {
  padding: 64px var(--page-pad);
  border-right: 0.5px solid var(--border);
}

.gh-lower__col:last-child {
  border-right: none;
}

/* Topics */
.gh-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--dim);
  cursor: pointer;
  transition: color var(--transition);
}

.gh-topic-row:last-child {
  border-bottom: none;
}

.gh-topic-row:hover .gh-topic-row__name {
  color: var(--accent);
}

.gh-topic-row__name {
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color var(--transition);
}

.gh-topic-row__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gh-topic-row__count {
  font-size: 13px;
  color: var(--muted);
}

/* Requests */
.gh-req-row {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--dim);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.gh-req-row:last-child {
  border-bottom: none;
}

.gh-req-row__name {
  font-size: 17px;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.gh-req-row__votes {
  font-size: 14px;
  color: var(--accent2);
  font-weight: 500;
  flex-shrink: 0;
}

/* YouTube / Channel block */
.gh-channel__name {
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.gh-channel__handle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.gh-channel__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.gh-channel__desc strong {
  color: var(--text);
  font-weight: 500;
}

.gh-channel__link {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 0.5px solid rgba(196, 136, 58, 0.4);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.gh-channel__link:hover {
  border-color: var(--accent);
}

/* ---- FOOTER ---- */
.gh-footer {
  border-top: 0.5px solid var(--border);
  padding: 32px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.gh-footer__left {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.gh-footer__links {
  display: flex;
  gap: 36px;
}

.gh-footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}

.gh-footer__links a:hover {
  color: var(--text);
}

/* ---- SINGLE POST / ARTICLE ---- */
.gh-article {
  max-width: 900px;
  padding: 100px var(--page-pad);
  margin: 0 auto;
}

.gh-article__header {
  margin-bottom: 64px;
}

.gh-article__cat {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gh-article__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
}

.gh-article__meta {
  font-size: 14px;
  color: var(--dim);
  display: flex;
  gap: 28px;
}

.gh-article__body {
  font-size: 20px;
  line-height: 1.85;
  color: var(--muted);
}

.gh-article__body h2 {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin: 64px 0 20px;
}

.gh-article__body h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin: 48px 0 16px;
}

.gh-article__body p {
  margin-bottom: 32px;
  max-width: 100%;
}

.gh-article__body a {
  color: var(--accent);
  border-bottom: 0.5px solid rgba(196, 136, 58, 0.4);
}

.gh-article__body code {
  font-family: var(--font-mono);
  font-size: 16px;
  background: var(--card);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  color: var(--text);
}

.gh-article__body pre {
  background: var(--card);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  overflow-x: auto;
  margin-bottom: 36px;
}

.gh-article__body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 16px;
}

.gh-article__body blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 28px;
  margin: 40px 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.7;
}

.gh-article__body img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-md);
  margin: 40px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root {
    --page-pad: 32px;
  }

  .gh-nav__links {
    display: none;
  }

  .gh-post {
    grid-template-columns: 56px 1fr;
  }

  .gh-post__meta {
    display: none;
  }

  .gh-post__body {
    border-left: none;
  }

  .gh-lower {
    grid-template-columns: 1fr;
  }

  .gh-lower__col {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .gh-lower__col:last-child {
    border-bottom: none;
  }
}