:root {
  --ink: #16202b;
  --ink-soft: #4b5b6b;
  --paper: #fbf9f5;
  --paper-alt: #f2ede4;
  --line: #e2dacd;
  --tide: #1f4f5f;
  --tide-deep: #143741;
  --moon: #c9a961;
  --wrap: 68rem;
  --radius: 0.625rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--tide-deep);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 2.25rem;
  width: auto;
  display: block;
}

.brand-mark {
  color: var(--moon);
  font-size: 1.25rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--tide);
  text-decoration: underline;
}

/* Hero */
.hero {
  background: linear-gradient(170deg, var(--tide-deep), var(--tide) 60%, #2c6474);
  color: #f6f3ec;
}

.hero-inner {
  padding-block: clamp(4rem, 12vw, 7.5rem);
  max-width: 46rem;
  margin-inline: auto;
}

.hero a {
  color: inherit;
}

.eyebrow {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moon);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1875rem;
  color: #d9e4e6;
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--moon);
  color: #1d1608;
}

.btn-primary:hover {
  background: #d8b872;
  color: #1d1608;
}

.btn-ghost {
  border-color: rgba(246, 243, 236, 0.45);
  color: #f6f3ec;
}

.btn-ghost:hover {
  background: rgba(246, 243, 236, 0.1);
}

/* Sections */
.section {
  padding-block: clamp(3rem, 8vw, 3rem);
}

.section-alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.prose {
  max-width: 40rem;
}

/* Photo beside a block of copy; stacks on narrow screens */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.split .prose {
  flex: 1 1 22rem;
  min-width: 0;
}

.feature-photo {
  flex: 0 0 auto;
  width: clamp(12rem, 28vw, 19rem);
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(22, 32, 43, 0.1);
}

.prose p {
  color: var(--ink-soft);
}

/* Cards */
.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Contact */
.portrait {
  flex: 0 0 auto;
  width: clamp(11rem, 24vw, 16rem);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--moon);
  box-shadow: 0 0 0 1px var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(4.5rem, max-content) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
}

.contact dt {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.2rem;
}

.contact dd {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

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

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
