:root {
  --ink: #142225;
  --deep: #102a2e;
  --deep-soft: #183b3f;
  --teal: #0c7477;
  --teal-light: #d9eeee;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --rust: #bf593d;
  --gold: #d6a847;
  --muted: #657174;
  --line: #cdd5d3;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --content: 1180px;
  --shadow: 0 24px 70px rgba(16, 42, 46, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 42, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 46, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--deep);
  transform: translateY(-200%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 3rem), var(--content));
  min-height: 90px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(20, 34, 37, 0.18);
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: white;
  background: var(--deep);
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  place-items: center;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.nav-contact):hover,
.site-nav a:not(.nav-contact):focus-visible {
  color: var(--teal);
}

.nav-contact {
  padding: 0.6rem 1rem;
  color: white;
  background: var(--deep);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: end;
  width: min(calc(100% - 3rem), var(--content));
  min-height: 610px;
  margin: 0 auto;
  padding: 4rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.6rem;
  font-size: clamp(3.2rem, 6.2vw, 5.75rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 em {
  color: var(--rust);
  font-weight: 400;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 2.25rem;
  color: #455356;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--deep);
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 5px 5px 0 var(--gold);
  transform: translate(-2px, -2px);
}

.button-primary {
  color: white;
  background: var(--deep);
}

.button-secondary {
  background: transparent;
}

.hero-note {
  position: relative;
  padding: 3rem 2rem 2rem;
  color: white;
  background: var(--deep);
  box-shadow: 14px 14px 0 var(--teal-light);
}

.hero-note::before {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.note-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.hero-note p {
  margin-bottom: 0.65rem;
  color: #a7cbca;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.25;
}

.note-location {
  display: block;
  margin-top: 2rem;
  color: #c6d8d7;
  font-size: 0.8rem;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - var(--content)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  letter-spacing: -0.025em;
}

.section-heading > p {
  max-width: 480px;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.work-section {
  color: white;
  background: var(--deep);
}

.work-section .eyebrow {
  color: #8ec7c6;
}

.work-section .section-heading > p {
  color: #b8c8c8;
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.project-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.project-index {
  color: #719193;
  font-family: var(--serif);
  font-size: 2.2rem;
}

.project-body {
  max-width: 910px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: #9db3b4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.status-complete {
  color: #9ee1d8;
}

.status-progress {
  color: #e5c67e;
}

.project-card h3 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
}

.project-card p {
  max-width: 760px;
  color: #c2d0d0;
  font-size: 1.02rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.4rem 0.7rem;
  color: #cae1e0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  font-size: 0.78rem;
}

.text-link {
  display: inline-block;
  color: inherit;
  font-weight: 700;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
}

.text-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 150ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, -3px);
}

.project-card-upcoming {
  opacity: 0.68;
}

.text-link-muted {
  color: #9db3b4;
  cursor: default;
  text-decoration: none;
}

.skills-section {
  background: var(--cream);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-grid article {
  min-height: 285px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-number {
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 700;
}

.skill-grid h3 {
  margin: 3rem 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.skill-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.skills-link {
  margin-top: 2.5rem;
}

.about-section {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: clamp(3rem, 8vw, 8rem);
  background: var(--paper);
}

.about-rule {
  display: block;
  width: 1px;
  height: 130px;
  margin-left: 0.3rem;
  background: var(--rust);
}

.about-copy {
  max-width: 860px;
}

.about-copy h2 {
  margin-bottom: 3rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  color: var(--muted);
}

.contact-section {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - var(--content)) / 2));
  color: white;
  background: var(--teal);
  text-align: center;
}

.contact-section .eyebrow {
  color: #cae8e5;
}

.contact-section h2 {
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.contact-section > p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 auto 2rem;
  color: #ddf0ee;
}

.button-light {
  color: var(--deep);
  background: var(--paper);
  border-color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1.5rem, calc((100% - var(--content)) / 2));
  color: #a8bcbd;
  background: var(--deep);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.article-hero {
  padding: clamp(4rem, 9vw, 8rem) max(1.5rem, calc((100% - 900px) / 2)) 3rem;
  color: white;
  background: var(--deep);
}

.article-hero .eyebrow {
  color: #8ec7c6;
}

.article-hero h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6rem);
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: clamp(2rem, 7vw, 6rem);
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem) 1.5rem;
  background: var(--paper);
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.article-sidebar p {
  color: var(--muted);
  font-size: 0.8rem;
}

.article-sidebar a {
  font-weight: 700;
  text-decoration-color: var(--rust);
  text-underline-offset: 4px;
}

.prose {
  min-width: 0;
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

.prose h2 {
  margin: 4rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 4vw, 3rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 2.5rem 0 0.8rem;
  font-size: 1.6rem;
}

.prose p,
.prose li {
  color: #3f4e51;
}

.prose a {
  color: var(--teal);
  font-weight: 700;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--cream);
}

.prose code {
  padding: 0.1rem 0.3rem;
  background: var(--cream);
  border-radius: 2px;
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 0.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prose hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-note {
    max-width: 400px;
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-rule {
    width: 130px;
    height: 1px;
    margin: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 650px) {
  .site-header {
    width: min(calc(100% - 2rem), var(--content));
    min-height: 74px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    width: min(calc(100% - 2rem), var(--content));
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2.5rem 0;
  }

  .project-index {
    font-size: 1.3rem;
  }

  .skill-grid,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .skill-grid article {
    min-height: auto;
  }

  .skill-grid h3 {
    margin-top: 1.8rem;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
