/* Founders Coffee Club — Journal (blog) styles
   Load font: https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;700&display=swap */

:root {
  --fcc-chocolate: #362700;
  --fcc-butter: #FFEF9F;
  --fcc-blue: #CDE8FF;
  --fcc-offwhite: #F9F9F3;
  --fcc-red: #E94828;
  --fcc-black: #171D1A;
  --fcc-photo: #E1DCCB;          /* image placeholder / loading bg */
  --fcc-rule: 3px solid var(--fcc-chocolate);
  --fcc-gutter: clamp(20px, 4.5vw, 64px);
  --fcc-max: 1440px;
  --fcc-r-card: 24px;
  --fcc-r-panel: 28px;
  --fcc-r-note: 20px;
}

body {
  margin: 0;
  background: var(--fcc-offwhite);
  color: var(--fcc-chocolate);
  font-family: 'Spline Sans', Arial, sans-serif;
  letter-spacing: -0.001em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--fcc-red); }

/* ---------- shared ---------- */
.j-wrap { max-width: var(--fcc-max); margin: 0 auto; padding: 0 var(--fcc-gutter) 144px; }
.j-label { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.j-readmore { margin-top: auto; font-size: 17px; font-weight: 700; }
.j-btn {
  display: inline-block; align-self: flex-start;
  background: var(--fcc-chocolate); color: var(--fcc-offwhite);
  font-weight: 700; font-size: 18px; padding: 16px 28px;
  border-radius: 999px; text-decoration: none;
}
.j-btn:hover { background: var(--fcc-red); color: var(--fcc-offwhite); }
.j-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; background: var(--fcc-photo); }

/* ---------- JOURNAL INDEX ---------- */
.j-head { padding: 72px 0 56px; display: flex; flex-direction: column; gap: 28px; }
.j-head__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.j-head__top .j-label { font-size: 16px; }
.j-head__ill { width: clamp(110px, 13vw, 190px); aspect-ratio: 1; object-fit: contain; margin: -48px -12px -16px 0; flex-shrink: 0; }
.j-h1 { margin: 0; font-size: clamp(64px, 9.4vw, 136px); font-weight: 700; line-height: 0.86; text-transform: uppercase; }

/* featured (latest) post */
.j-featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border: var(--fcc-rule); border-radius: var(--fcc-r-panel); overflow: hidden;
  text-decoration: none; color: var(--fcc-chocolate);
}
.j-featured__media { min-height: 380px; background: var(--fcc-photo); }
.j-featured__body { padding: 48px; display: flex; flex-direction: column; gap: 20px; background: var(--fcc-butter); }
.j-featured__title { font-size: clamp(36px, 3.6vw, 52px); font-weight: 700; line-height: 1; text-wrap: pretty; }
.j-featured__blurb { font-size: 19px; line-height: 1.5; text-wrap: pretty; }
.j-featured__body .j-readmore { font-size: 18px; }
.j-featured:hover { color: var(--fcc-chocolate); }
.j-featured:hover .j-readmore { color: var(--fcc-red); }

/* post grid (2 columns → 1) */
.j-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; margin-top: 20px; }
.j-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--fcc-chocolate);
  border: var(--fcc-rule); border-radius: var(--fcc-r-card); overflow: hidden;
}
.j-card__tag { padding: 24px 28px; border-bottom: var(--fcc-rule); }   /* + bg modifier */
.j-card__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 220px; }
.j-card__title { font-size: 30px; font-weight: 700; line-height: 1.05; text-wrap: pretty; }
.j-card__blurb { font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.j-card:hover { color: var(--fcc-chocolate); }
.j-card:hover .j-readmore { color: var(--fcc-red); }
/* tag-strip colours rotate butter → blue → red by post index */
.bg-butter { background: var(--fcc-butter); }
.bg-blue   { background: var(--fcc-blue); }
.bg-red    { background: var(--fcc-red); }

/* home-page "THE JOURNAL" teaser: 3 cards, all in a row or all stacked (never 2+1) */
.j-home-head { border-top: var(--fcc-rule); margin-top: 72px; padding-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.j-home-head__title { font-size: clamp(48px, 5vw, 72px); font-weight: 700; line-height: 0.88; text-transform: uppercase; }
.j-home-head a { font-size: 20px; font-weight: 700; }
.j-home-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.j-home-row .j-card { flex: 1 1 calc((960px - 100%) * 999); min-width: 0; }
.j-home-row .j-card__title { font-size: 28px; }

/* ---------- JOURNAL POST ---------- */
.p-article { max-width: var(--fcc-max); margin: 0 auto; padding: 56px var(--fcc-gutter) 144px; display: flex; flex-direction: column; gap: 56px; }
.p-back { align-self: flex-start; font-size: 18px; font-weight: 700; text-decoration: none; }

.p-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: end; }
.p-hero__text { display: flex; flex-direction: column; gap: 24px; }
.p-h1 { margin: 0; font-size: clamp(44px, 5.4vw, 80px); font-weight: 700; line-height: 0.9; text-transform: uppercase; text-wrap: balance; }
.p-dek { margin: 0; font-size: 24px; line-height: 1.4; text-wrap: pretty; }
.p-hero__media { height: clamp(320px, 36vw, 520px); border-radius: var(--fcc-r-panel); overflow: hidden; background: var(--fcc-photo); }

.p-layout { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; border-top: var(--fcc-rule); padding-top: 56px; }

/* sticky ticket box (left on desktop, drops above article on mobile) */
.p-aside { flex: 1 1 240px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.p-aside__ill { width: 180px; height: 180px; object-fit: contain; margin-left: -24px; }
.p-aside__title { font-size: 28px; font-weight: 700; line-height: 0.95; text-transform: uppercase; }
.p-aside__text { font-size: 18px; line-height: 1.5; }

/* article body — style the CMS/markdown output directly */
.p-body { flex: 3 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 24px; font-size: 20px; line-height: 1.6; }
.p-body > * { margin: 0; }
.p-body p { text-wrap: pretty; }
.p-body h2 { margin-top: 24px; font-size: clamp(30px, 3vw, 40px); line-height: 0.95; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.p-body h3 { margin-top: 8px; font-size: 24px; line-height: 1.1; font-weight: 700; }   /* lowercase subhead */
.p-body hr { border: 0; border-top: var(--fcc-rule); margin: 16px 0; width: 100%; }
.p-body strong, .p-body b { font-weight: 700; }                    /* "Best for:" / "When:" lead-ins */
.p-body a { color: var(--fcc-red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.p-body a:hover { color: var(--fcc-chocolate); }
.p-body ul, .p-body ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.p-body img, .p-body figure { width: 100%; border-radius: var(--fcc-r-note); }
.p-body figcaption { font-size: 16px; line-height: 1.4; margin-top: 8px; }
.p-body blockquote { border-left: 0; background: var(--fcc-butter); border-radius: var(--fcc-r-note); padding: 28px; font-size: 24px; line-height: 1.35; font-weight: 700; }
.p-note { background: var(--fcc-blue); border-radius: var(--fcc-r-note); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.p-note a { color: var(--fcc-chocolate); }

/* more from the journal */
.p-more { display: flex; flex-direction: column; gap: 24px; border-top: var(--fcc-rule); padding-top: 56px; }
.p-more .j-label { font-size: 16px; }
.p-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.p-more__card { border-radius: var(--fcc-r-card); padding: 36px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--fcc-chocolate); min-height: 220px; } /* + bg modifier */
.p-more__card .j-label { font-size: 14px; }
.p-more__title { font-size: 30px; font-weight: 700; line-height: 0.95; text-wrap: balance; }
.p-more__card:hover { color: var(--fcc-chocolate); }
.p-more__card:hover .j-readmore { text-decoration: underline; }

@media (max-width: 860px) {
  .p-aside { position: static; }
  .j-featured__body { padding: 32px; }
}
