:root {
  --color-ivory: #f3f0e8;
  --color-carbon: #1d1e1c;
  --color-slate: #62635e;
  --color-bronze: #8a6745;
  --color-bronze-ink: #866341;
  --color-rule: #d4cfc3;
  --color-dark: #20211f;
  --color-reversed: #f5f2ea;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-max: 80rem;
  --page-gutter: clamp(1.25rem, 4.5vw, 4rem);
  --grid-gap: clamp(1.25rem, 2.5vw, 2rem);
  --transition-fast: 180ms ease;
}

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

html {
  background: var(--color-ivory);
  color: var(--color-carbon);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-carbon);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.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;
}

:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--color-bronze);
  outline-offset: 5px;
}

.site-header {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--grid-gap);
  align-items: center;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.brand {
  display: inline-block;
  width: clamp(8.75rem, 13vw, 10.75rem);
  color: var(--color-carbon);
  text-decoration: none;
}

.brand__logo {
  width: 100%;
  height: auto;
}

.site-header__contact {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-carbon);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  min-height: 100lvh;
  display: grid;
  place-items: center;
  padding-block: clamp(8rem, 15vh, 10rem);
}

.hero__content {
  width: min(100%, 37.5rem);
  margin-inline: auto;
  text-align: left;
}

.hero h1 {
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.92;
}

.hero p {
  width: 100%;
  margin-bottom: 0;
  color: var(--color-slate);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.hero p + p {
  margin-top: 1.25rem;
}

.site-footer {
  background: var(--color-dark);
  color: var(--color-reversed);
}

.site-footer__inner {
  min-height: 12rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--grid-gap);
  padding-block: 4rem;
}

.site-footer__email {
  grid-column: 1;
  justify-self: start;
  color: #aeada6;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-footer__copyright,
.site-footer__location {
  margin-bottom: 0;
  color: #aeada6;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-footer__copyright {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.site-footer__location {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .brand__streamlines path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: streamline-reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .brand__streamlines path:nth-child(2) { animation-delay: 60ms; }
  .brand__streamlines path:nth-child(3) { animation-delay: 120ms; }
  .brand__streamlines path:nth-child(4) { animation-delay: 180ms; }

  .hero__content {
    animation: text-arrival 600ms 100ms ease both;
  }
}

@keyframes streamline-reveal {
  to { stroke-dashoffset: 0; }
}

@keyframes text-arrival {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 47.99rem) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__email,
  .site-footer__copyright,
  .site-footer__location {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 25rem) {
  .brand {
    width: 7.5rem;
  }

}

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