/* The River House Group: shared styles for journal (blog), posts and policy pages */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Roboto+Condensed:wght@300;400;500&display=swap');

:root {
  --rhg-ink: #2b2925;
  --rhg-paper: #f2eee7;
  --rhg-paper-2: #e6e0d6;
  --rhg-dark: #23231f;
  --rhg-accent: #9a6a3a;
  --rhg-accent-light: #e0b07f;
  --rhg-white: #fffdf8;
  --rhg-muted: #6f6a62;
  --rhg-line: rgba(43, 41, 37, .2);
  --rhg-serif: "Cormorant Garamond", Georgia, serif;
  --rhg-sans: "Roboto Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--rhg-paper); color: var(--rhg-ink); font-family: var(--rhg-sans); font-weight: 300; font-size: 17px; line-height: 1.62; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.rhg-page { padding-top: var(--rhg-nav-h, 70px); }
.rhg-wrap { width: min(1240px, 100% - 2 * max(24px, 5vw)); margin-inline: auto; }
.rhg-kicker { display: block; margin-bottom: 14px; color: var(--rhg-accent); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.rhg-title { margin: 0; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(44px, 6vw, 82px); line-height: 1; text-wrap: balance; }
.rhg-lead { max-width: 640px; margin: 22px 0 0; font-family: var(--rhg-serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.3; font-weight: 400; }

/* Page head */
.rhg-pagehead { padding-block: clamp(70px, 9vw, 120px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rhg-line); }

/* Journal index */
.rhg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.rhg-filters button { padding: 9px 15px; border: 1px solid var(--rhg-line); background: transparent; color: var(--rhg-ink); font: 400 12px/1 var(--rhg-sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.rhg-filters button[aria-pressed="true"] { background: var(--rhg-dark); border-color: var(--rhg-dark); color: var(--rhg-white); }
.rhg-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(48px, 6vw, 80px); text-decoration: none; border-bottom: 1px solid var(--rhg-line); }
.rhg-feature-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rhg-paper-2); }
.rhg-feature-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rhg-feature:hover .rhg-feature-photo img, .rhg-card:hover .rhg-card-photo img { transform: scale(1.03); }
.rhg-feature h2 { margin: 0 0 16px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; text-wrap: balance; }
.rhg-feature p { margin: 0; max-width: 52ch; }
.rhg-meta { display: block; margin-bottom: 14px; color: var(--rhg-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.rhg-more { display: inline-flex; gap: 8px; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.rhg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); padding-block: clamp(48px, 6vw, 80px) clamp(70px, 8vw, 110px); }
.rhg-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.rhg-card[hidden] { display: none; }
.rhg-card-photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; background: var(--rhg-paper-2); }
.rhg-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rhg-card h3 { margin: 0 0 10px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(25px, 2vw, 30px); line-height: 1.1; text-wrap: balance; }
.rhg-card p { margin: 0; color: #4c4840; font-size: 16px; line-height: 1.55; }

/* Post */
.rhg-post-head { padding-block: clamp(60px, 8vw, 110px) clamp(34px, 4vw, 50px); text-align: center; }
.rhg-post-head .rhg-title { max-width: 980px; margin-inline: auto; font-size: clamp(40px, 5.4vw, 74px); }
.rhg-post-cover { width: min(1400px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden; background: var(--rhg-paper-2); }
.rhg-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.rhg-post-body { width: min(700px, 100% - 48px); margin: 0 auto; padding-block: clamp(48px, 6vw, 80px); font-size: 18px; line-height: 1.72; }
.rhg-post-body p { margin: 0 0 1.15em; }
.rhg-post-body h2, .rhg-post-body h3 { margin: 1.8em 0 .5em; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; }
.rhg-post-body h3 { font-size: clamp(24px, 2.1vw, 29px); }
.rhg-post-body ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.rhg-post-body blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--rhg-accent); font-family: var(--rhg-serif); font-size: 24px; line-height: 1.35; }
.rhg-post-body figure { margin: 2em 0; }
.rhg-post-body a { color: var(--rhg-accent); }
.rhg-post-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(1240px, 100% - 48px); margin: 0 auto clamp(48px, 6vw, 80px); }
.rhg-post-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.rhg-post-cta { background: var(--rhg-dark); color: var(--rhg-white); text-align: center; padding: clamp(64px, 8vw, 100px) 24px; }
.rhg-post-cta h2 { margin: 0 0 14px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.rhg-post-cta p { margin: 0 auto 28px; max-width: 560px; color: #d8d3ca; }
.rhg-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border: 1px solid var(--rhg-accent); background: var(--rhg-accent); color: var(--rhg-white); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.rhg-btn--ghost { background: transparent; border-color: rgba(255, 253, 248, .7); }
.rhg-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rhg-related { padding-block: clamp(56px, 7vw, 90px); }
.rhg-related h2 { margin: 0 0 30px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); }
.rhg-related .rhg-grid { padding-block: 0; }

/* Policy pages */
.rhg-policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding-block: clamp(48px, 6vw, 80px) clamp(70px, 8vw, 110px); }
.rhg-policy-toc { position: sticky; top: calc(var(--rhg-nav-h, 70px) + 24px); align-self: start; display: grid; gap: 10px; font-size: 13px; letter-spacing: .06em; }
.rhg-policy-toc a { color: var(--rhg-muted); text-decoration: none; }
.rhg-policy-toc a:hover { color: var(--rhg-ink); }
.rhg-policy-body { max-width: 760px; }
.rhg-policy-body section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--rhg-line); scroll-margin-top: calc(var(--rhg-nav-h, 70px) + 20px); }
.rhg-policy-body h2 { margin: 0 0 14px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; }
.rhg-policy-body h3 { margin: 22px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.rhg-policy-body p, .rhg-policy-body li { margin: 0 0 .9em; }
.rhg-policy-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.rhg-policy-body table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; font-variant-numeric: tabular-nums; }
.rhg-policy-body th, .rhg-policy-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rhg-line); text-align: left; vertical-align: top; }
.rhg-policy-body th { font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.rhg-table-scroll { overflow-x: auto; }
.rhg-note { color: var(--rhg-muted); font-size: 14px; }

/* Footer */
.rhg-footer { background: var(--rhg-dark); color: var(--rhg-white); padding: 55px max(24px, 7vw) 28px; }
.rhg-footer-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.rhg-footer-logo { width: min(260px, 42vw); height: auto; }
.rhg-footer-links { display: flex; flex-wrap: wrap; gap: 20px; text-transform: uppercase; letter-spacing: .09em; font-size: 11px; }
.rhg-footer-links a { text-decoration: none; }
.rhg-footer small { display: block; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); opacity: .72; font-size: 13px; }

@media (max-width: 900px) {
  .rhg-feature { grid-template-columns: 1fr; }
  .rhg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhg-policy { grid-template-columns: 1fr; }
  .rhg-policy-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhg-footer-main { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .rhg-grid { grid-template-columns: 1fr; }
  .rhg-post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhg-post-body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rhg-feature-photo img, .rhg-card-photo img { transition: none; }
}

/* ---------- Journal, editorial layout (October 2026) ---------- */
.rhg-journal-hero { position: relative; display: grid; align-items: end; min-height: min(88svh, 860px); padding: calc(var(--rhg-nav-h, 70px) + 60px) max(24px, 6vw) clamp(48px, 6vw, 84px); color: var(--rhg-white); text-decoration: none; isolation: isolate; overflow: hidden; }
.rhg-journal-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s ease; }
.rhg-journal-hero:hover img { transform: scale(1.05); }
.rhg-journal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,10,.45), rgba(12,12,10,.05) 35%, rgba(12,12,10,.25) 60%, rgba(12,12,10,.78)); }
.rhg-journal-hero-inner { max-width: 1680px; width: 100%; margin: 0 auto; }
.rhg-journal-hero .rhg-kicker { color: var(--rhg-accent-light); }
.rhg-journal-hero h1 { max-width: 980px; margin: 0; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 98px); line-height: .98; text-wrap: balance; }
.rhg-journal-hero p { max-width: 620px; margin: 22px 0 0; font-family: var(--rhg-serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.32; color: #ece8e1; }
.rhg-journal-hero .rhg-meta { color: #d8d3ca; }
.rhg-journal-hero .rhg-more { color: var(--rhg-white); }

.rhg-tabs { position: sticky; top: var(--rhg-nav-h, 70px); z-index: 20; display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); padding: 0 24px; background: rgba(242, 238, 231, .96); border-bottom: 1px solid var(--rhg-line); backdrop-filter: blur(6px); }
.rhg-tabs button { position: relative; padding: 20px 0 18px; border: 0; background: none; color: var(--rhg-muted); font: 500 12px/1 var(--rhg-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.rhg-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rhg-accent); transform: scaleX(0); transition: transform .25s ease; }
.rhg-tabs button[aria-pressed="true"] { color: var(--rhg-ink); }
.rhg-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.rhg-tabs button:focus-visible { outline: 2px solid var(--rhg-accent); outline-offset: 4px; }

.rhg-journal-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(28px, 6vw, 90px); max-width: 1680px; margin: 0 auto; padding: clamp(70px, 8vw, 110px) max(24px, 6vw) clamp(30px, 4vw, 50px); }
.rhg-journal-intro .rhg-title { font-size: clamp(52px, 6.4vw, 96px); }
.rhg-journal-intro p { max-width: 480px; margin: 0; font-family: var(--rhg-serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; }
.rhg-mag { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(18px, 2vw, 32px); max-width: 1680px; margin: 0 auto; padding: 10px max(24px, 6vw) clamp(90px, 9vw, 130px); }
.rhg-mag .rhg-card { grid-column: span 2; }
.rhg-mag .rhg-card:nth-child(-n+2) { grid-column: span 3; }
.rhg-mag .rhg-card:nth-child(-n+2) .rhg-card-photo { aspect-ratio: 3 / 2; }
.rhg-mag .rhg-card:nth-child(-n+2) h3 { font-size: clamp(30px, 2.6vw, 40px); }
.rhg-card-photo { position: relative; }
.rhg-card .rhg-meta { margin-bottom: 10px; }
.rhg-card h3 { transition: color .2s ease; }
.rhg-card:hover h3 { color: var(--rhg-accent); }

/* Post */
.rhg-post-hero { position: relative; display: grid; align-items: end; min-height: min(92svh, 900px); padding: calc(var(--rhg-nav-h, 70px) + 60px) max(24px, 6vw) clamp(48px, 6vw, 84px); color: var(--rhg-white); isolation: isolate; overflow: hidden; }
.rhg-post-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rhg-post-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,12,10,.5), rgba(12,12,10,.05) 35%, rgba(12,12,10,.2) 55%, rgba(12,12,10,.8)); }
.rhg-post-hero-inner { width: 100%; max-width: 1100px; margin: 0 auto; text-align: center; }
.rhg-post-hero .rhg-kicker a { color: var(--rhg-accent-light); text-decoration: none; }
.rhg-post-hero h1 { margin: 0 auto; max-width: 1000px; font-family: var(--rhg-serif); font-weight: 400; font-size: clamp(42px, 5.6vw, 84px); line-height: 1; text-wrap: balance; }
.rhg-post-hero .rhg-meta { margin: 24px 0 0; color: #d8d3ca; }
.rhg-post-lead { width: min(760px, 100% - 48px); margin: clamp(60px, 7vw, 96px) auto 0; font-family: var(--rhg-serif); font-size: clamp(25px, 2.3vw, 32px); line-height: 1.32; text-align: center; text-wrap: balance; }
.rhg-post-lead::after { content: ""; display: block; width: 46px; height: 1px; margin: 40px auto 0; background: var(--rhg-accent); }
.rhg-post-body { padding-top: clamp(40px, 5vw, 64px); }
.rhg-post-body > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; font-family: var(--rhg-serif); font-size: 4.6em; line-height: .78; color: var(--rhg-accent); }
.rhg-post-body h2 { position: relative; padding-top: 22px; }
.rhg-post-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 1px; background: var(--rhg-accent); }
.rhg-post-body figure { width: min(1100px, 100vw - 48px); margin: 2.4em 0 2.4em 50%; transform: translateX(-50%); }
.rhg-post-body figure img { width: 100%; }
.rhg-post-body .rhg-facts-box { margin: 2em 0; padding: 28px 30px; background: var(--rhg-paper-2); font-size: 16px; }
.rhg-post-body .rhg-facts-box h3 { margin-top: 0; }
.rhg-post-body .rhg-facts-box ul { margin-bottom: 0; }
.rhg-post-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rhg-post-gallery img { grid-column: span 2; aspect-ratio: 4 / 5; }
.rhg-post-gallery img:nth-child(5n+1), .rhg-post-gallery img:nth-child(5n+2) { grid-column: span 3; aspect-ratio: 3 / 2; }
.rhg-related { max-width: 1680px; width: 100%; padding-inline: max(24px, 6vw); }
.rhg-related .rhg-mag { padding: 0; }
.rhg-related .rhg-mag .rhg-card, .rhg-related .rhg-mag .rhg-card:nth-child(-n+2) { grid-column: span 2; }
.rhg-related .rhg-mag .rhg-card:nth-child(-n+2) .rhg-card-photo { aspect-ratio: 4 / 3; }
.rhg-related .rhg-mag .rhg-card:nth-child(-n+2) h3 { font-size: clamp(25px, 2vw, 30px); }

/* Policy pages: gentler head */
.rhg-pagehead { max-width: 1680px; }

@media (max-width: 900px) {
  .rhg-journal-intro { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .rhg-mag { grid-template-columns: 1fr 1fr; }
  .rhg-mag .rhg-card, .rhg-mag .rhg-card:nth-child(-n+2), .rhg-related .rhg-mag .rhg-card, .rhg-related .rhg-mag .rhg-card:nth-child(-n+2) { grid-column: span 1; }
  .rhg-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .rhg-tabs button { flex: 0 0 auto; }
  .rhg-post-gallery { grid-template-columns: 1fr 1fr; }
  .rhg-post-gallery img, .rhg-post-gallery img:nth-child(5n+1), .rhg-post-gallery img:nth-child(5n+2) { grid-column: span 1; aspect-ratio: 1; }
}
@media (max-width: 600px) {
  .rhg-mag { grid-template-columns: 1fr; }
  .rhg-journal-hero, .rhg-post-hero { min-height: 78svh; }
}
