:root {
  color-scheme: light dark;
  --bg: #f7f1e6;
  --surface: #fffaf2;
  --ink: #2b2018;
  --muted: #6e5d4f;
  --line: #e6dccb;
  --accent: #8a6539;
  --cta: #2b2018;
  --cta-ink: #fffaf2;
  --focus: #b4552d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", ui-serif, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1813;
    --surface: #2a211a;
    --ink: #f3eadc;
    --muted: #bfae9a;
    --line: #3a2e24;
    --accent: #d9b27c;
    --cta: #f3eadc;
    --cta-ink: #1f1813;
    --focus: #e58a5c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

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

/* Layout: header, photo, intro, footer stacked on mobile; photo becomes a
   sticky right column on wide screens. */

.layout {
  --gutter: clamp(1.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(1.75rem, 5vw, 3rem);
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.header,
.intro,
.footer {
  width: 100%;
  max-width: calc(38rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header {
  padding-top: clamp(1.25rem, 4vw, 3rem);
}

.visual {
  margin: 0;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}

.visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 55%;
  border-radius: 1.25rem;
  background: var(--line);
}

.footer {
  margin-top: 1rem;
}

@media (min-width: 60em) {
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 0;
    row-gap: 3rem;
    padding-bottom: 0;
  }

  .layout--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .header,
  .intro,
  .footer {
    grid-column: 1;
    max-width: calc(40rem + 2 * var(--gutter));
  }

  .intro {
    align-self: center;
  }

  .footer {
    margin-top: 0;
    padding-bottom: 2.5rem;
  }

  .visual {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 1rem 1rem 1rem 0;
  }

  .visual picture,
  .visual img {
    height: 100%;
  }

  .visual img {
    aspect-ratio: auto;
    border-radius: 1.5rem;
  }
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-name {
  font: 600 1.125rem/1.2 var(--serif);
  letter-spacing: 0.01em;
}

/* Intro */

.intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 500 clamp(2.4rem, 1.6rem + 3.6vw, 4rem) / 1.06 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 8px 24px -12px rgb(43 32 24 / 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.14), 0 14px 32px -14px rgb(43 32 24 / 0.6);
}

.cta:active {
  transform: translateY(0);
}

.cta .icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

.alt-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.alt-contact a {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Details */

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.25rem 2rem;
  margin: 1.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.details dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  overflow-wrap: break-word;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  /* The headline and photo stay static so they paint immediately (LCP). */
  .lede,
  .actions,
  .details {
    animation: rise 0.7s var(--ease) both;
  }

  .actions { animation-delay: 80ms; }
  .details { animation-delay: 160ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

@media (forced-colors: active) {
  .cta {
    border: 2px solid ButtonText;
  }
}
