:root {
  --navy: #10233f;
  --navy-deep: #09182c;
  --blue: #2864a7;
  --sky: #dceaf8;
  --ink: #17212f;
  --muted: #556171;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --line: #d8e0e8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: var(--navy-deep);
  background: #fff;
  font-weight: 700;
  transform: translateY(-200%);
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-inner {
  min-height: 80px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

nav {
  display: flex;
  gap: 1.6rem;
}

nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: 70vh;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(9, 24, 44, 0.99), rgba(16, 35, 63, 0.94)),
    var(--navy-deep);
}

.hero-content {
  padding-block: 7rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #91bde8;
}

h1,
h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: -0.045em;
}

.hero h1 {
  color: #fff;
}

.hero h1 span {
  color: #9dc3e8;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
}

.lead {
  max-width: 720px;
  margin: 2rem 0 2.5rem;
  color: inherit;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero .lead {
  color: #e0e9f3;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border: 1px solid #8db7df;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--navy-deep);
  background: #fff;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section-muted {
  background: var(--soft);
}

.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.project-copy,
.contact-grid > :last-child {
  font-size: 1.08rem;
}

.project-copy p:first-child {
  margin-top: 0;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.page-intro {
  padding-block: clamp(5rem, 12vw, 9rem);
  color: #fff;
  background: var(--navy-deep);
}

.page-intro h1 {
  color: #fff;
}

.page-intro .eyebrow {
  color: #91bde8;
}

.prose h2 {
  margin-top: 3rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

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

.prose p {
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
    padding-block: 1rem;
  }

  .header-inner,
  .footer-inner,
  .project-grid,
  .contact-grid {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  nav {
    width: 100%;
    gap: 1.1rem;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-block: 5rem;
  }
}

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