:root {
  --ink: #102033;
  --ink-muted: #536271;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d8e0e6;
  --teal: #007f8d;
  --cyan: #64b7c2;
  --violet: #5c2a72;
  --terracotta: #a85234;
  --gold: #c79a38;
  --shadow: 0 20px 50px rgba(16, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 14px 3px 14px 3px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 850;
}

.brand-subtitle {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 10px 13px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(16, 32, 51, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(199, 154, 56, 0.38);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
  padding: 72px 0 58px;
  border-top: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-map {
  width: 100%;
  min-height: 250px;
  overflow: visible;
}

.hero-map path {
  fill: none;
  stroke: rgba(16, 32, 51, 0.28);
  stroke-width: 4;
}

.hero-map path:first-child {
  stroke: var(--teal);
}

.hero-map circle {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 4;
}

.hero-map circle:nth-of-type(2),
.hero-map circle:nth-of-type(6) {
  stroke: var(--violet);
}

.hero-map circle:nth-of-type(4),
.hero-map circle:nth-of-type(8) {
  stroke: var(--terracotta);
}

.hero-map circle:nth-of-type(7) {
  stroke: var(--gold);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.journal {
  position: relative;
  min-height: 360px;
  padding: 34px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.journal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
}

.journal-tech::before {
  background: var(--teal);
}

.journal-amauta::before {
  background: var(--terracotta);
}

.journal-kicker {
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal h2 {
  max-width: 560px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.journal p {
  max-width: 620px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 52px 0 70px;
}

.principles > div {
  padding-top: 20px;
  border-top: 3px solid rgba(16, 32, 51, 0.18);
}

.principle-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.principles h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.principles p {
  color: var(--ink-muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-map {
    min-height: 180px;
  }

  .journal-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .journal {
    min-height: auto;
    padding: 28px 24px 28px 28px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-nav a,
  .button {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
  }
}
