:root {
  --ink: #183536;
  --ink-soft: #4d6463;
  --paper: #f5f0e8;
  --paper-deep: #ebe2d5;
  --teal: #174f50;
  --teal-light: #d9e7e3;
  --coral: #b84f3a;
  --white: #fffdf9;
  --line: rgba(24, 53, 54, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(213, 111, 87, 0.13), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--teal);
  transform: translateY(-180%);
}

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

.site-header,
.site-footer,
.hero {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.wordmark-role {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: calc(100vh - 104px);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.portrait-wrap {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--teal-light);
  border-radius: 48% 48% 12px 12px;
  box-shadow: 0 26px 70px rgba(24, 53, 54, 0.16);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.portrait-note {
  position: absolute;
  right: -1.4rem;
  bottom: 3rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--coral);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.25rem;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.lead {
  max-width: 29ch;
  margin: 2.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.22;
}

.body-copy {
  max-width: 56ch;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--teal);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: #0d3d3e;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--teal);
}

.details {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 0.9fr 0.9fr;
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.details div {
  min-width: 0;
}

.details dt {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.details a {
  text-decoration: none;
}

.details a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.7rem 2rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.error-page {
  display: block;
  min-height: auto;
  padding-top: 10vh;
}

.error-title {
  max-width: 12ch;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 32px, 620px);
  }

  .site-header {
    min-height: 84px;
  }

  .wordmark-role {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: auto;
    padding-block: 2.5rem 4.5rem;
  }

  .portrait-wrap {
    width: min(85%, 420px);
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }
}

@media (max-width: 540px) {
  .portrait-wrap {
    width: calc(100% - 24px);
  }

  .portrait-note {
    right: -0.75rem;
  }

  .button {
    width: 100%;
  }

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

  .details div:nth-child(2) {
    grid-column: span 2;
    grid-row: 2;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

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

  .button {
    transition: none;
  }
}
