/* ---- tokens ---- */
:root {
  --bg: #FAF7F2;
  --surface: #ffffff;
  --ink: #14213D;
  --body: #6b6656;
  --faint: #736c58;
  --border: #e3e8e0;

  --projects: #005BB3;
  --travel: #F86A38;
  --travel-ink: #9c3c17;
  --goodlife: #029456;
  --goodlife-ink: #01703f;
  --keythings: #D8226C;
  --keythings-ink: #a91854;
  --journal: #B2DAE4;
  --journal-ink: #00335c;

  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Red Hat Display', 'DM Sans', system-ui, sans-serif;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
}

.rhd { font-family: var(--font-display); }

/* ---- shared page shell ---- */
.page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 40px) 140px 40px;
}

.pill-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease;
  box-sizing: border-box;
}
.pill-back:hover { background: rgba(0,0,0,0.04); }
.pill-back svg { flex: none; }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  max-width: 620px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

/* ---- featured banner (projects / travel) ---- */
.banner {
  margin-top: 32px;
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.banner-copy { display: flex; flex-direction: column; gap: 6px; }
.banner-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.banner-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 3vw, 22px); }
.banner-desc { font-size: 14px; opacity: .9; max-width: 480px; }
.banner-cta { flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---- growing grid (projects / travel) ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -14px rgba(0,0,0,.18); }
.tile-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tile-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.tile-teaser { font-size: 13.5px; color: var(--faint); line-height: 1.5; }
.tile-link { font-size: 12.5px; font-weight: 700; }

/* ---- fixed 2x2 grid (unused by good-life/4-things now, kept for future fixed sets) ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 26px;
  max-width: 800px;
  margin-top: 36px;
}

/* ---- quadrant compass (good life / 4 things) ---- */
.quad-wrap {
  position: relative;
  width: clamp(260px, 70vw, 400px);
  aspect-ratio: 1;
  margin: 48px auto 0 auto;
  border-radius: 50%;
}
.quad-wrap svg { display: block; width: 100%; height: 100%; }
.wedge { transition: filter .1s ease; cursor: pointer; }
.wedge:hover { filter: brightness(1.08); }
.needle { transition: transform .08s linear; transform-origin: 220px 220px; transform-box: view-box; }
.hub-needle { transition: transform .15s ease; }

@media (prefers-reduced-motion: reduce) {
  .needle, .hub-needle { transition: none; }
  .hub-node:hover, .hub-node:focus-visible,
  .tile:hover, .card:hover,
  .minimap:hover {
    transform: none;
  }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.quad-label {
  position: absolute;
  width: min(140px, 34%);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.quad-label .title { font-family: var(--font-display); font-weight: 800; font-size: clamp(12px, 3.4vw, 15px); color: #fff; line-height: 1.25; }
.quad-label .teaser { font-size: clamp(11px, 2.6vw, 11.5px); color: #fff; opacity: .85; line-height: 1.35; margin-top: 3px; }

.quad-1 { left: 70%; top: 30%; }
.quad-2 { left: 70%; top: 70%; }
.quad-3 { left: 30%; top: 70%; }
.quad-4 { left: 30%; top: 30%; }

/* ---- journaling ---- */
.pull-quote {
  max-width: 600px;
  margin-top: 28px;
  padding: 20px 24px;
  background: #eaf3f7;
  border-left: 3px solid var(--journal);
  border-radius: 0 12px 12px 0;
}
.pull-quote p { font-size: 16px; font-style: italic; color: var(--journal-ink); line-height: 1.6; margin: 0; }

.routine {
  max-width: 600px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.routine-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--journal-ink); }

.toggle-row { display: flex; gap: 10px; }
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--journal-ink);
  background: transparent;
  color: var(--journal-ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  box-sizing: border-box;
}
.toggle-btn[aria-pressed="true"] { background: var(--journal-ink); color: #fff; }

.routine-panel { display: flex; flex-direction: column; gap: 22px; }
.routine-panel[hidden] { display: none; }
.step { display: flex; gap: 16px; }
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--journal);
  color: var(--journal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.step-body { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.step-desc { font-size: 14px; color: var(--faint); line-height: 1.5; }

/* ---- mini-map wayfinding widget ---- */
.minimap {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 116px;
  padding: 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 40;
  transition: box-shadow .15s ease, transform .15s ease;
}
.minimap:hover { box-shadow: 0 14px 30px -8px rgba(0,0,0,.26); transform: translateY(-2px); }
.minimap-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 640px) {
  .minimap { left: 14px; bottom: 14px; width: 92px; padding: 10px; }
}

/* ---- homepage: radial hub (desktop) ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(40px, 8vw, 64px) 20px 0 20px;
  text-align: center;
}
.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  margin: 0;
  max-width: 640px;
  color: var(--ink);
  text-wrap: balance;
}
.hero p { font-size: clamp(15px, 2.6vw, 17px); color: var(--body); max-width: 460px; margin: 0; }

.hub-radial {
  position: relative;
  width: min(92vw, 860px);
  aspect-ratio: 1;
  margin: 24px auto 0 auto;
}
.hub-compass {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(96px, 17vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -12px rgba(20,33,61,.18);
}
.hub-compass svg { width: 82%; height: 82%; }
.hub-caption {
  position: absolute;
  left: 50%; top: 61%;
  transform: translateX(-50%);
  width: min(360px, 42vw);
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--faint);
}

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(128px, 23vw, 230px);
  padding: clamp(14px, 2vw, 20px);
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hub-node:hover { transform: translate(-50%, -50%) translateY(-6px) scale(1.04); box-shadow: 0 18px 30px -12px rgba(0,0,0,.28); }
.hub-node .rhd { font-weight: 800; font-size: clamp(14px, 2vw, 19px); }
.hub-node .teaser { font-size: clamp(11px, 1.6vw, 13px); opacity: .9; line-height: 1.4; }

.hub-node.n-projects  { left: 50%;   top: 14.4%; background: var(--projects); }
.hub-node.n-travel    { left: 83.9%; top: 39%;   background: var(--travel); color: var(--ink); }
.hub-node.n-goodlife  { left: 70.9%; top: 78.8%; background: var(--goodlife); }
.hub-node.n-keythings { left: 29.1%; top: 78.8%; background: var(--keythings); }
.hub-node.n-journal   { left: 16.1%; top: 39%;   background: var(--journal); color: var(--journal-ink); }

/* ---- homepage: stacked hub (mobile fallback) ---- */
.hub-stack { display: none; }
@media (max-width: 700px) {
  .hub-radial { display: none; }
  .hub-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 460px;
    margin: 32px auto 0 auto;
    padding: 0 20px;
  }
  .hub-stack .hub-node {
    position: static;
    transform: none;
    width: 100%;
  }
  .hub-stack .hub-node:hover { transform: translateY(-3px); }
}

/* ---- article template ---- */
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 680px; }
.meta-chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

.hero-placeholder {
  position: relative;
  max-width: 680px;
  height: 280px;
  margin-top: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-placeholder .hero-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11.5px;
}

.article-body { max-width: 680px; margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.article-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); margin: 0 0 8px 0; }
.article-body p { font-size: 15px; color: var(--body); line-height: 1.7; margin: 0; }

.more-from { max-width: 680px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.more-from .more-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.more-links { display: flex; flex-direction: column; gap: 10px; }
.more-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; transition: opacity .15s ease; }
.more-links a:hover { opacity: .7; }

footer.site-foot {
  max-width: 920px;
  margin: 56px auto 0 auto;
  padding: 32px 20px 140px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color .15s ease;
  box-sizing: border-box;
}
.footer-links a:hover { color: var(--projects); }
.footer-links svg { flex: none; }
