@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap');

/* =========================================================================
   Tokens
   ========================================================================= */
:root {
  --bg:             #f8f6f2;
  --surface:        #ffffff;
  --ink:            #1a1917;
  --ink-2:          #5a5852;
  --ink-3:          #8a877f;
  --navy:           #1e3a5f;
  --navy-deep:      #162d49;
  --navy-soft:      rgba(30,58,95,0.08);
  --rule:           #e8e3da;
  --rule-strong:    #d4ccbd;
  --font-sans:      'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif:     'Source Serif 4', ui-serif, Georgia, serif;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --shadow-whisper: 0 1px 2px rgba(26,25,23,0.06);
  --ease:           cubic-bezier(0.2,0,0,1);
  --dur-base:       200ms;
  --dur-fast:       140ms;
  --section-y:      clamp(48px, 6vw, 80px);
  --gutter:         32px;
  --container-max:  1200px;
}

/* =========================================================================
   Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(30,58,95,0.18); color: var(--ink); }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.jg-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.jg-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.jg-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* =========================================================================
   Type roles
   ========================================================================= */
.jg-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.jg-eyebrow--accent { color: var(--navy); }

.jg-display {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--ink);
}

.jg-h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.jg-h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}

.jg-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.jg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
}
.jg-btn:hover  { background: var(--navy-deep); }
.jg-btn:active { transform: translateY(1px); }

.jg-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.jg-btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* =========================================================================
   NAV
   ========================================================================= */
.gh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,242,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}
.gh-nav.is-stuck { border-bottom-color: var(--rule); }
.gh-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: currentColor;
  transition: right var(--dur-base) var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-links a.nav-cta {
  color: var(--navy);
  font-weight: 600;
}

/* =========================================================================
   HERO
   ========================================================================= */
.jg-hero { padding-bottom: 72px;
  padding-top: 64px;
  padding-bottom: 120px;
}
.jg-hero .jg-display {
  margin-top: 18px;
}
.jg-hero .jg-lede {
  max-width: 560px;
  margin-top: 28px;
}
.jg-hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.jg-about {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 64px;
  align-items: start;
}
.jg-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #c9b89a 0%, #7d6a52 60%, #3a3027 100%);
  box-shadow: var(--shadow-whisper);
  position: relative;
}
.jg-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jg-portrait__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,248,232,0.85);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jg-portrait__placeholder span { font-size: 12px; font-weight: 400; opacity: 0.75; text-transform: none; letter-spacing: 0; }

.jg-about__body .jg-h2 { margin-top: 12px; }
.jg-about__body .jg-lede { margin-top: 24px; }
.jg-about__body p { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

.jg-about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.jg-about-fact {
  background: var(--surface);
  padding: 18px 20px;
}
.jg-about-fact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.jg-about-fact__value {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* =========================================================================
   APPROACH
   ========================================================================= */
.jg-approach-header { max-width: 820px; }
.jg-approach-header .jg-h2 { margin-top: 12px; }

.jg-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
}
.jg-approach-cell {
  padding: 40px 36px 0 36px;
  border-left: 1px solid var(--rule);
}
.jg-approach-cell:first-child { border-left: 0; padding-left: 0; }
.jg-approach-cell .jg-h3 { margin-top: 14px; }
.jg-approach-cell p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

.jg-pull-quote { margin-bottom: 0 !important;
  margin: 56px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--navy);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
  max-width: 680px;
}

/* =========================================================================
   SELECTED WORK
   ========================================================================= */
.jg-work-header { max-width: 820px; }
.jg-work-header .jg-h2 { margin-top: 12px; }

.jg-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.jg-work-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.jg-work-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-whisper);
}
.jg-work-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.jg-work-card__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.jg-work-card__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 16px;
}
.jg-work-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 12px;
}
.jg-work-card__stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.jg-work-card__stat { display: flex; flex-direction: column; gap: 4px; }
.jg-work-card__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}
.jg-work-card__stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.jg-work-card__note {
  margin-top: 16px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  font-family: var(--font-serif);
}

/* =========================================================================
   INVESTING
   ========================================================================= */
.jg-investing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.jg-investing .jg-h2 { margin-top: 12px; }
.jg-investing .jg-lede { margin-top: 24px; }
.jg-investing__cta { margin-top: 36px; }

.jg-thesis {
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.jg-thesis__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.jg-thesis__item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.jg-thesis__item:last-child { margin-bottom: 0; }
.jg-thesis__dash {
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 1px;
}

/* =========================================================================
   NOTES
   ========================================================================= */
.jg-notes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
}
.jg-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.jg-note-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease);
}
.jg-note-card:hover { border-color: var(--ink); }
.jg-note-card__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.jg-note-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 12px;
}
.jg-note-card__dek {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 10px;
  flex: 1;
}
.jg-note-card__more {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.jg-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.jg-link:hover { color: var(--navy-deep); }

/* =========================================================================
   CONNECT
   ========================================================================= */
.jg-connect {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 96px;
  align-items: start;
}
.jg-connect .jg-h2 { margin-top: 12px; max-width: 700px; }
.jg-connect .jg-lede { margin-top: 24px; max-width: 560px; }

.jg-connect-options {
  padding-top: 18px;
}
.jg-connect-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.jg-connect-option:first-child { border-top: 1px solid var(--rule); }
.jg-connect-option__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.jg-connect-option__link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-base) var(--ease);
}
.jg-connect-option__link:hover { color: var(--navy); }
.jg-connect-option__link::after { content: '→'; opacity: 0.4; font-size: 12px; }
.jg-connect__cta { margin-top: 36px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.gh-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 64px;
}
.gh-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.gh-footer__name {
  font-weight: 700;
  color: var(--ink);
}

/* =========================================================================
   POST PAGE
   ========================================================================= */
.post-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px var(--gutter) 96px;
}
.post-back {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 56px;
  transition: color var(--dur-base) var(--ease);
}
.post-back:hover { color: var(--navy); }
.post-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: balance;
}
.post-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.post-body {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}
.post-body p { margin: 0; }
.post-body p + p { margin-top: 1.5em; }
.post-body h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2em 0 0.5em;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 1.8em 0 0.4em;
  color: var(--ink);
}
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease);
}
.post-body a:hover { color: var(--navy); }
.post-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--navy);
  font-style: italic;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1.55;
}
.post-body ol, .post-body ul { padding-left: 1.4em; margin: 1.2em 0; }
.post-body li { margin-bottom: 0.4em; }
.post-footer-nav {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

/* Ghost kg classes — required */
.kg-width-wide { margin: 0 -40px; }
.kg-width-full { margin: 0 calc(-1 * var(--gutter)); }

/* =========================================================================
   Animations
   ========================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .jg-about { grid-template-columns: 1fr; gap: 40px; }
  .jg-approach-grid { grid-template-columns: 1fr; }
  .jg-approach-cell { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); padding-top: 32px; }
  .jg-approach-cell:first-child { border-top: 0; padding-top: 40px; }
  .jg-work-grid { grid-template-columns: 1fr; }
  .jg-investing { grid-template-columns: 1fr; gap: 48px; }
  .jg-notes-grid { grid-template-columns: 1fr 1fr; }
  .jg-connect { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .jg-display { font-size: 48px; }
  .jg-notes-grid { grid-template-columns: 1fr; }
  .jg-hero__ctas { flex-direction: column; align-items: flex-start; }
  .post-container { padding-top: 64px; }
}
.jg-display em { font-style: italic; opacity: 0.55; }

/* Post subscribe */
.post-subscribe {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 72px 0;
}
.post-subscribe__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-subscribe__h {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 8px 0 28px;
}
.post-subscribe__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-subscribe__input {
  flex: 1 1 280px;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.post-subscribe__input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.post-subscribe__success {
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
  padding-top: 12px;
}

/* Post more notes */
.post-more {
  padding: 72px 0;
}
