@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #F7F4EE;
  --navy: #072A6C;
  --ink: #161513;
  --gray: #5C5852;
  --muted: #5C5852;
  --faint: #6F6A63;
  --card: #FFFcf7;
  --line: rgba(7, 42, 108, 0.18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 70rem;
  --prose: 34rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--gray);
  background: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: var(--ivory);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.site-header {
  border-bottom: 1px solid var(--navy);
  padding-top: max(1.15rem, env(safe-area-inset-top));
  padding-bottom: 1.15rem;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-wordmark,
.hero-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
}

.motto {
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
}

.motto:hover {
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  gap: 0.55rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav-dot {
  color: var(--navy);
  font-weight: 600;
}

.hero {
  padding: clamp(3.75rem, 11vh, 7.25rem) 0 clamp(3.25rem, 10vh, 6.5rem);
}

.hero-wordmark {
  margin: 0;
  font-size: clamp(2.7rem, 10.5vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.hero-copy {
  margin: 1.5rem 0 0;
  max-width: var(--prose);
  color: var(--gray);
  font-size: 1.125rem;
}

.section {
  padding: clamp(3.25rem, 7vh, 5rem) 0;
}

.section-title {
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
}

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 17.5rem;
  padding: 2.15rem 1.85rem 1.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid var(--navy);
  color: inherit;
  text-decoration: none;
}

.card[href]:hover,
.card[href]:focus-visible {
  border-color: var(--navy);
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--navy);
}

.card-lede {
  margin: 0.85rem 0 0;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-copy {
  margin: 0.55rem 0 0;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.45;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.card[href]:hover .arrow,
.card[href]:focus-visible .arrow {
  transform: translateX(4px);
}

.card-action--soon {
  color: var(--faint);
  font-weight: 500;
}

.card--soon {
  cursor: default;
}

.about-copy {
  max-width: var(--prose);
}

.about-copy p {
  margin: 0;
  color: var(--gray);
}

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

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--navy);
  padding: 1.75rem 0 max(2rem, env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-wordmark {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.footer-contact,
.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

.footer-contact a {
  color: var(--navy);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
    padding: 1.85rem 1.6rem 1.6rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap {
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }

  .header-inner {
    gap: 0.75rem;
  }

  .motto {
    font-size: 0.95rem;
  }

  .nav {
    font-size: 0.84rem;
    gap: 0.4rem;
  }

  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-wordmark {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .hero-copy {
    margin-top: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .footer-copy {
    margin-top: 0.35rem;
  }
}

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

  .arrow {
    transition: none;
  }
}
