@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --paper: #f1f4ec;
  --surface: #fffdf7;
  --surface-soft: #f6f8ef;
  --ink: #141513;
  --muted: #5b625f;
  --line: #ced7c7;
  --accent: #16414f;
  --accent-2: #0c6b7c;
  --gold: #b47b26;
  --clay: #c94f3e;
  --green: #1c6049;
  --lime: #c4d45d;
  --blue: #d7eef2;
  --sky: #2f7387;
  --max: 1120px;
  --shadow: 0 24px 70px rgba(20, 21, 19, 0.1);
  --font: "Instrument Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Space Grotesk", "Instrument Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(201, 79, 62, 0.12), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(47, 115, 135, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(20, 21, 19, 0.03) 1px, transparent 1px) center top / 74px 74px,
    linear-gradient(rgba(20, 21, 19, 0.024) 1px, transparent 1px) center top / 74px 74px,
    linear-gradient(180deg, #fbf7ed 0%, var(--paper) 58%, #eef7f7 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  z-index: 30;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell,
.nav {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 215, 202, 0.78);
  background: rgba(251, 247, 237, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  padding: 72px 0 58px;
}

.hero-copy {
  min-width: 0;
}

.profile-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin-bottom: 34px;
  border: 1px solid rgba(20, 21, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  padding: 10px 14px 10px 10px;
  box-shadow: 0 14px 38px rgba(20, 21, 19, 0.06);
}

.profile-strip img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.profile-strip div {
  display: grid;
  gap: 2px;
}

.profile-strip span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-strip strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow.inverse {
  color: #e7c987;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: 68px;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  margin-bottom: 15px;
  font-size: 48px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 21px;
}

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

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.showcase-card {
  position: relative;
  display: grid;
  min-height: 318px;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 18px 46px rgba(20, 21, 19, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.showcase-main {
  min-height: 318px;
}

.brand-showcase {
  color: var(--ink);
}

.brand-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.novo-showcase {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94) 0 58%, rgba(184, 79, 63, 0.1) 58% 100%),
    linear-gradient(180deg, rgba(184, 79, 63, 0.12), rgba(184, 79, 63, 0));
}

.novo-showcase::before {
  border-top: 1px solid rgba(183, 61, 52, 0.18);
  background:
    linear-gradient(90deg, rgba(183, 61, 52, 0.68), rgba(183, 61, 52, 0)) left top / 58% 4px no-repeat,
    linear-gradient(90deg, rgba(20, 21, 19, 0.035) 1px, transparent 1px) center / 34px 34px;
}

.wealth-showcase {
  background:
    linear-gradient(135deg, #14483b 0 58%, #21624f 58% 100%),
    #14483b;
  color: #fff;
}

.wealth-showcase::before {
  border: 1px solid rgba(231, 201, 135, 0.18);
  background:
    linear-gradient(90deg, rgba(231, 201, 135, 0.58), rgba(231, 201, 135, 0)) left top / 60% 4px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) center / 34px 34px;
}

.tile-top {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tile-mark,
.tile-logo {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.novo-showcase .tile-mark {
  background: var(--clay);
}

.wealth-showcase .tile-mark {
  background: #e7c987;
  color: #14483b;
}

.tile-logo {
  width: 98px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.tile-logo img {
  width: 74px;
  height: auto;
}

.tile-label {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.novo-showcase .tile-label {
  color: var(--clay);
}

.wealth-showcase .tile-label,
.logo-showcase .tile-label {
  color: rgba(255, 255, 255, 0.82);
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 560px;
  align-self: center;
}

.tile-copy small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wealth-showcase .tile-copy small {
  color: #e7c987;
}

.tile-copy strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

.novo-showcase .tile-copy strong {
  font-size: 34px;
}

.wealth-showcase .tile-copy strong {
  color: #fff;
  font-size: 28px;
  line-height: 1.08;
}

.tile-copy p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.wealth-showcase .tile-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.logo-showcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 58%, rgba(231, 201, 135, 0.12) 58% 100%),
    #070707;
  color: #fff;
}

.logo-showcase .tile-copy strong {
  color: #fff;
  font-size: 28px;
}

.logo-showcase .tile-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.tile-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(20, 21, 19, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.wealth-showcase .tile-link,
.logo-showcase .tile-link {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  border-color: rgba(20, 21, 19, 0.22);
  box-shadow: 0 24px 58px rgba(20, 21, 19, 0.13);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-2);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.section {
  padding: 74px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
}

.text-stack {
  max-width: 720px;
}

.text-stack p,
.section-heading p,
.page-hero p,
.article-header p {
  color: var(--muted);
  font-size: 18px;
}

.text-stack p:last-child,
.card p:last-child,
.post-card p:last-child,
.project-card p:last-child,
.article p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.row-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.lane-grid,
.post-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.lane-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.post-grid,
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.post-card,
.archive-post,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(20, 21, 19, 0.045);
}

.card {
  min-height: 238px;
  padding: 25px;
}

.card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.card p,
.post-card p,
.archive-post p,
.project-card p {
  color: var(--muted);
}

.feature-band {
  margin-top: 48px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) center / 64px 64px,
    linear-gradient(135deg, #13202b 0 58%, #16414f 58% 100%);
  color: #fff;
}

.band-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  padding: 76px 0;
}

.feature-band h2 {
  color: #fff;
}

.feature-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.band-card {
  display: grid;
  align-content: center;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 26px;
  transition: transform 180ms ease, background 180ms ease;
}

.band-card:hover,
.band-card:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.band-card span {
  margin-bottom: 16px;
  color: #e7c987;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.band-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.post-card,
.archive-post,
.project-card {
  padding: 28px;
}

.post-card h3 a,
.archive-post h2 a,
.project-card h2 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.post-card h3 a:hover,
.archive-post h2 a:hover,
.project-card h2 a:hover {
  text-decoration-color: var(--gold);
}

.meta,
.archive-meta,
.muted-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(31, 59, 45, 0.28);
  text-underline-offset: 5px;
}

.inline-link {
  color: var(--accent);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(31, 59, 45, 0.28);
  text-underline-offset: 4px;
}

.substack-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 20px;
}

.substack-callout p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.page-main {
  padding: 78px 0 88px;
}

.page-hero {
  max-width: 820px;
  margin-bottom: 44px;
}

.page-hero h1 {
  font-size: 68px;
}

.writing-list {
  display: grid;
  gap: 16px;
}

.archive-post h2 {
  font-size: 38px;
}

.project-section {
  margin-top: 48px;
}

.project-section:first-of-type {
  margin-top: 0;
}

.project-section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.project-section-heading h2 {
  font-size: 44px;
}

.project-card.priority h2 {
  font-size: 42px;
}

.project-card.priority {
  min-height: 290px;
}

.project-card.live {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(214, 232, 235, 0.78)),
    var(--surface);
}

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

.about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.about-card.wide {
  grid-column: 1 / -1;
}

.about-card h2 {
  font-size: 52px;
}

.about-card p {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 22px;
  align-items: start;
}

.contact-form,
.contact-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(167, 131, 66, 0.22);
  border-color: var(--gold);
}

.contact-form .button {
  justify-self: start;
}

.hidden-field {
  display: none;
}

.contact-aside h2 {
  font-size: 36px;
}

.contact-aside p {
  color: var(--muted);
}

.article-shell {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  padding: 72px 0 92px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 54px;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article h1 {
  font-size: 62px;
}

.article h2 {
  margin-top: 34px;
  font-size: 30px;
}

.article p,
.article li {
  color: #33332f;
  font-size: 19px;
}

.article blockquote {
  margin: 34px 0;
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 22px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.22;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink);
  font-weight: 800;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(167, 131, 66, 0.45);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .split,
  .band-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .showcase-main {
    min-height: 282px;
  }

  .lane-grid,
  .band-cards,
  .post-grid,
  .project-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell,
  .nav,
  .article-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 68px 14px auto 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    padding: 12px;
    border-radius: 8px;
  }

  .hero {
    padding-top: 66px;
  }

  .profile-strip {
    width: 100%;
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  h2,
  .page-hero h1,
  .about-card h2,
  .article h1 {
    font-size: 36px;
  }

  .project-section-heading h2,
  .archive-post h2,
  .project-card.priority h2,
  .contact-aside h2 {
    font-size: 32px;
  }

  .lead,
  .text-stack p,
  .feature-band p,
  .page-hero p {
    font-size: 17px;
  }

  .actions,
  .substack-callout,
  .contact-strip,
  .site-footer,
  .row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button,
  .contact-strip .button {
    width: 100%;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .showcase-main {
    grid-column: auto;
  }

  .showcase-card,
  .showcase-main {
    min-height: 288px;
  }

  .brand-showcase {
    padding: 28px;
  }

  .novo-showcase .tile-copy strong,
  .wealth-showcase .tile-copy strong,
  .logo-showcase .tile-copy strong {
    font-size: 30px;
  }

  .lane-grid,
  .band-cards,
  .post-grid,
  .project-grid,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-card.wide {
    grid-column: auto;
  }

  .section {
    padding: 58px 0;
  }

  .band-inner {
    padding: 64px 0;
  }

  .article {
    padding: 24px;
  }

  .article p,
  .article li {
    font-size: 17px;
  }

  .article blockquote {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
