/* ==========================================================================
   On a Quest — base styles
   ========================================================================== */

/* ============================
   FINANCIER DISPLAY
   NOTE: these are Klim's free "Test" files (test/mockup license only,
   not cleared for a live public site) — see README for the caveat.
   ============================ */

@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Light-BF6617577302761.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-LightItalic-BF66175772ecbb3.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Regular-BF66175772f0c08.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-RegularItalic-BF66175772e2ffb.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Medium-BF66175772f1b99.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-MediumItalic-BF66175772a68ae.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Semibold-BF66175772a85c7.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-SemiboldItalic-BF66175772e11c7.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Bold-BF661757723d7e3.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-BoldItalic-BF66175772cbe41.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-Black-BF6617577273d88.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierDisplay";
  src: url("../fonts/financier/TestFinancierDisplay-BlackItalic-BF6617577248bda.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============================
   FINANCIER TEXT
   ============================ */

@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-Regular-BF66175773066ef.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-RegularItalic-BF66175772ca8b9.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-Medium-BF66175772edb27.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-MediumItalic-BF66175772ad058.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-Bold-BF66175772cf1e5.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-BoldItalic-BF66175772c74e7.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-Black-BF66175772e3db2.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FinancierText";
  src: url("../fonts/financier/TestFinancierText-BlackItalic-BF66175771925e6.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============================
   GT ALPINA (body/UI typeface)
   NOTE: trial files from a third-party redistributor (befonts.com),
   not an official Grilli Type production license — see README caveat.
   ============================ */

@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Light-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Light-Italic-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Regular-Italic-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Medium-Italic-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GTAlpina";
  src: url("../fonts/gt-alpina/GT-Alpina-Standard-Bold-Italic-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "FinancierDisplay", "Source Serif 4", Georgia, serif;
  --font-serif: "FinancierText", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "GTAlpina", "Source Serif 4", Georgia, serif;

  /* dark & moody — warm near-black ground, cream ink, copper/gold/teal accents,
     in the spirit of the JPM-style report reference */
  --bg: #100c08;
  --bg-raised: #1a140d;
  --ink: #ece1cf;
  --ink-soft: #9c8b73;
  --line: #322920;
  --accent: #b8834a;
  --accent-soft: #d4a574;
  --gold: #c49a3c;
  --teal: #4a9d9d;
  --tag-journal: #b8834a;
  --tag-other: #4a9d9d;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, .site-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header / nav ---- */

.site-header {
  border-bottom: 2px solid var(--accent);
  padding: 40px 0 20px;
}

.site-title {
  font-size: 1.9rem;
  margin: 0 0 14px;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a {
  color: var(--ink-soft);
  padding-bottom: 4px;
}

.site-nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

/* ---- main content ---- */

main {
  padding: 48px 0 80px;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 8px;
}

.page-subtitle {
  color: var(--ink-soft);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin: 48px 0 20px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading h2 {
  font-size: 1.3rem;
  margin: 0;
}

.section-heading .see-all {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- post list / cards ---- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item a.title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
}

.tag-journal { background: var(--tag-journal); }
.tag-other   { background: var(--tag-other); }

.post-excerpt {
  color: var(--ink-soft);
  margin: 0;
}

.empty-note {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- timeline ---- */

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 48px 0 4px;
  color: var(--accent);
}

.timeline-year:first-of-type {
  margin-top: 0;
}

.timeline {
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 6px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding: 10px 0 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

/* ---- post page ---- */

.post-header {
  margin-bottom: 32px;
}

.post-header h1 {
  font-size: 2.1rem;
  margin: 8px 0 12px;
}

.post-body p {
  margin: 0 0 20px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
