/* ==========================================================================
   Latitude Policy — visual identity
   --------------------------------------------------------------------------
   Palette ("chart paper & deep water"):
     Ink        #1B2733  — body text
     Ink soft   #52616C  — secondary text
     Paper      #FAF8F3  — page background (warm, like nautical chart paper)
     Paper alt  #F0EDE4  — alternate section background
     Deep sea   #173A54  — hero & contact bands
     Sea        #1F4D6E  — primary accent: headings, buttons, logo
     Sea bright #2A6F9E  — links & hover
     Amber      #D99A2B  — small warm details: the "you are here" dot,
                           numbers, coordinates, top hairline
   Type:
     Inter Tight (straight, minimal) for headlines · Inter for everything else
   ========================================================================== */

:root {
  --ink: #1b2733;
  --ink-soft: #52616c;
  --paper: #faf8f3;
  --paper-alt: #f0ede4;
  --sea-deep: #173a54;
  --sea: #1f4d6e;
  --sea-bright: #2a6f9e;
  --sea-mist: #8fa8b8;
  --amber: #d99a2b;
  --on-sea: #f6f3ec;          /* text on deep-sea bands */
  --on-sea-soft: #c9d6df;
  --line: rgba(31, 77, 110, 0.18);
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

p { max-width: 64ch; }

a { color: var(--sea-bright); }

img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea-bright);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* the small amber "coordinate" flourish, e.g. 37.86° N */
.coordinate {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--amber);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img { width: 36px; height: 36px; display: block; }

.wordmark-small { font-size: 1.1rem; }
.wordmark-small img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { color: var(--sea-bright); }

.nav-cta {
  border: 1px solid var(--sea);
  color: var(--sea) !important;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--sea);
  color: var(--paper) !important;
}

/* ---------- deep-sea bands (hero, page hero, contact) ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--sea-deep) 0%, var(--sea) 70%, #24587a 100%);
  color: var(--on-sea);
}

.band h1, .band h2 { color: #f8f5ee; }
.band .lede { color: var(--on-sea-soft); }
.band .eyebrow { color: var(--amber); }
.band a { color: #dfe8ee; }

/* ---------- hero (homepage) ---------- */

.hero { padding: clamp(5.5rem, 12vw, 9.5rem) 0 clamp(5.5rem, 11vw, 9rem); }

.hero .lede { font-size: 1.25rem; max-width: 56ch; }

/* the large globe mark, side by side with the text */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 400px);
  gap: 3.5rem;
  align-items: center;
}

.hero-inner::after {
  content: "";
  aspect-ratio: 1;
  width: 100%;
  justify-self: end;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><circle cx='32' cy='32' r='28' stroke='%23f6f3ec' stroke-opacity='0.35' stroke-width='0.9'/><line x1='8.27' y1='18' x2='55.73' y2='18' stroke='%23f6f3ec' stroke-opacity='0.3' stroke-width='0.5'/><line x1='5.35' y1='25' x2='58.65' y2='25' stroke='%23f6f3ec' stroke-opacity='0.3' stroke-width='0.5'/><line x1='4.45' y1='32' x2='59.55' y2='32' stroke='%23f6f3ec' stroke-opacity='0.3' stroke-width='0.5'/><line x1='5.35' y1='39' x2='58.65' y2='39' stroke='%23f6f3ec' stroke-opacity='0.3' stroke-width='0.5'/><line x1='8.27' y1='46' x2='55.73' y2='46' stroke='%23f6f3ec' stroke-opacity='0.3' stroke-width='0.5'/><circle cx='20' cy='25' r='2.4' fill='%23d99a2b'/></svg>") no-repeat center / contain;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner::after { display: none; }   /* keep the text clean on small screens */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--sea);
  border: 1px solid var(--sea);
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover { background: var(--sea-bright); border-color: var(--sea-bright); }

.button-ghost { background: transparent; color: var(--sea); }

.button-ghost:hover { background: var(--sea); color: var(--paper); }

/* buttons on deep-sea bands: amber primary, light ghost */
.band .button { background: var(--amber); border-color: var(--amber); color: #1b2733; }
.band .button:hover { background: #e8ac3f; border-color: #e8ac3f; }
.band .button-ghost { background: transparent; border-color: rgba(246,243,236,0.6); color: var(--on-sea); }
.band .button-ghost:hover { background: var(--on-sea); color: var(--sea-deep); }

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-alt { background: var(--paper-alt); }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.stat { border-top: 3px solid var(--amber); padding-top: 1rem; }

.stat-number {
  font-family: var(--display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--sea);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- services: numbered ledger rows ---------- */

.services-list {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 2px solid var(--sea);
}

.service {
  display: grid;
  grid-template-columns: 72px 1fr 1.6fr;
  gap: 1rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-index {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.service h3 { font-size: 1.35rem; margin: 0; color: var(--sea); line-height: 1.25; }

.service p { color: var(--ink-soft); font-size: 1rem; max-width: none; }

@media (max-width: 720px) {
  .service { grid-template-columns: 52px 1fr; }
  .service p { grid-column: 2; }
}

/* ---------- about teaser / two-column grid ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

.about-grid h2 { color: var(--sea); }

.about-copy p + p { margin-top: 1.25rem; }

.about-copy { color: var(--ink-soft); }

.about-note {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--sea);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 1.5rem;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--amber);
}

.link-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--sea-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}

.link-more:hover { border-color: var(--sea-bright); }

/* ---------- page hero (About, Writing) ---------- */

.page-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.portrait {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(246,243,236,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

@media (max-width: 720px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 280px; }
}

/* ---------- about page body ---------- */

.bio p + p { margin-top: 1.35rem; }

.bio { max-width: 680px; }

.timeline { list-style: none; margin-top: 2.5rem; max-width: 680px; }

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.timeline-years {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  padding-top: 0.2rem;
}

.timeline h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }

.timeline p { font-size: 0.98rem; color: var(--ink-soft); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
}

.pillar h3 { font-size: 1.15rem; color: var(--sea); }

.pillar p { font-size: 0.98rem; color: var(--ink-soft); }

/* wide photo with caption (e.g. "Beyond the desk") */
.photo-wide { margin-bottom: 3rem; }

.photo-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.photo-wide figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- contact ---------- */

.contact-inner { text-align: center; }

.contact-inner p { margin-left: auto; margin-right: auto; }

.contact-inner .lede { margin-bottom: 2.5rem; }

.contact-alt {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.band .contact-alt { color: var(--on-sea-soft); }

/* ---------- writing page ---------- */

.posts { list-style: none; max-width: 720px; }

.post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.post-date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  padding-top: 0.25rem;
}

.post h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }

.post h3 a { color: var(--sea); text-decoration: none; }

.post h3 a:hover { color: var(--sea-bright); }

.post p { font-size: 0.98rem; color: var(--ink-soft); }

.posts + .link-more { margin-top: 2rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a { color: var(--ink-soft); text-decoration: none; }

.footer-links a:hover { color: var(--sea-bright); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 0.6rem 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .nav-links { width: 100%; gap: 1.2rem; }
  .nav-links a { font-size: 0.9rem; white-space: nowrap; }
  .nav-cta { margin-left: auto; padding: 0.35rem 0.9rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .post { grid-template-columns: 1fr; gap: 0.25rem; }
}
