:root {
  --paper: #efece6;
  --ink: #1c1a17;
  --ink-soft: #5a564e;
  --rule: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --font: "Valley Sans", Arial, sans-serif;

  --measure: 38rem;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.25rem);
  --header-offset: 5.75rem;

  --step-0: clamp(1.05rem, 0.35vw + 1rem, 1.2rem);
  --step-1: clamp(1.2rem, 1.1vw + 0.85rem, 1.55rem);
  --step-2: clamp(1.55rem, 2vw + 0.7rem, 2.35rem);
  --step-3: clamp(2.4rem, 6.4vw + 0.4rem, 5.15rem);

  --space-s: clamp(0.75rem, 1.2vw, 1.1rem);
  --space-m: clamp(1.25rem, 2vw, 2rem);
  --space-l: clamp(2.5rem, 6vw, 4.5rem);
  --space-xl: clamp(4.5rem, 12vw, 8.5rem);
  --space-hero: clamp(3.5rem, 14vh, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:hover {
  color: var(--ink-soft);
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.frame {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem 2.5rem;
  padding-block: 1.1rem 1.05rem;
}

.brand {
  font-size: 0.98rem;
  line-height: 1.35;
}

.brand a {
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
  color: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

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

.hero {
  display: grid;
  gap: 0;
  padding-top: var(--space-hero);
  padding-bottom: var(--space-l);
}

.hero-text {
  display: grid;
  align-content: start;
  min-width: 0;
}

.hero-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1.12 / 1;
  margin-top: var(--space-l);
  background: #dedede;
  align-self: start;
}

.hero-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  max-width: 11.5em;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead,
.dek,
.hero-link {
  font-family: var(--font);
  font-size: calc(var(--step-0) * 1.12 * 1.18);
  font-style: normal;
  font-weight: 400;
}

.lead {
  max-width: calc(22 * var(--step-1));
  margin-top: var(--space-m);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.dek {
  margin-top: calc(var(--step-0) * 1.12 * 1.55);
  max-width: var(--measure);
  color: var(--ink);
}

.hero-link {
  margin-top: calc(var(--step-0) * 1.12 * 1.55);
}

.hero-link a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.12em;
}

.prologue {
  padding-bottom: var(--space-xl);
}

.prologue .prose {
  max-width: var(--measure);
}

.block {
  display: grid;
  gap: var(--space-m);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-offset);
}

.block:last-of-type {
  padding-bottom: calc(var(--space-xl) + 1rem);
}

.block h2 {
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.prose p + p {
  margin-top: 1.15em;
}

.facts {
  max-width: var(--measure);
}

.facts > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule);
}

.facts > div:last-child {
  border-bottom: 1px solid transparent;
}

.facts dt {
  color: var(--ink-soft);
  font-weight: 400;
}

.facts dd {
  margin: 0;
}

.contact {
  max-width: var(--measure);
}

.contact-details {
  display: grid;
  margin-top: var(--space-l);
  font-style: normal;
}

.contact-details a {
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step-0);
  letter-spacing: -0.015em;
  text-decoration: none;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-details a:last-child {
  border-top-color: transparent;
  border-bottom: 1px solid var(--rule);
}

.contact-details a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem 2rem;
  }
}

@media (min-width: 48rem) {
  .header-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-block: 1.2rem;
  }

  .site-nav ul {
    justify-content: flex-end;
  }
}

@media (min-width: 64rem) {
  .hero,
  .prologue,
  .block {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2vw, 1.75rem);
  }

  .hero-text {
    grid-column: 1 / 8;
  }

  .hero-composition {
    position: relative;
  }

  .hero-portrait {
    position: absolute;
    top: var(--space-hero);
    bottom: var(--space-xl);
    left: max(
      calc((100% + clamp(1rem, 2vw, 1.75rem)) * 7 / 12),
      calc(var(--measure) + clamp(1rem, 2vw, 1.75rem))
    );
    right: min(0px, calc((100% - 100vw) / 2 + 1rem));
    width: auto;
    aspect-ratio: auto;
    align-self: stretch;
    margin-top: 0;
  }

  .prologue .prose {
    grid-column: 1 / 8;
  }

  .block h2 {
    grid-column: 1 / 4;
  }

  .block .prose,
  .block .facts,
  .block .contact {
    grid-column: 5 / 13;
  }
}

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

/* The native disclosure menu is only shown on small screens. */
.mobile-menu {
  display: none;
}

@media (max-width: 600px) {
  .hero .dek {
    line-height: 1.4;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.5rem;
  }

  .header-inner > .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu {
    align-self: flex-start;
  }

  .mobile-menu summary {
    justify-content: flex-end;
    align-items: flex-start;
    height: 44px;
    padding: 12px 0;
    border: 0;
    line-height: 0;
  }

  .menu-icon {
    display: block;
    width: 24px;
    height: 20px;
    flex: 0 0 24px;
    padding: 0;
    margin: 0;
    border: 0;
    transform: none;
  }

  .hero .dek,
  .hero .hero-link {
    margin-top: 0.8em;
  }

  .mobile-menu .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .mobile-menu .site-nav ul {
    display: block;
  }

  .mobile-menu .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .hero-composition {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: var(--space-xl);
  }

  .hero {
    display: contents;
  }

  .hero-text {
    order: 0;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 7vw, 2.75rem);
  }

  .hero .lead,
  .hero .dek,
  .hero .hero-link {
    font-size: calc(var(--step-0) * 1.12);
  }

  .hero-composition .prologue {
    order: 2;
    padding-top: var(--space-l);
    padding-bottom: 0;
  }

  .hero-portrait {
    order: 1;
    width: 100%;
    aspect-ratio: auto;
    margin-top: calc(var(--space-l) - 20px);
  }

  .hero-portrait > img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }
}

/* Desktop header: equal outer tracks keep the name viewport-centered. */
@media (min-width: 64rem) {
  .header-inner {
    --header-gap: clamp(1.35rem, 2.75vw, 3rem);
    width: 100%;
    padding-inline: var(--header-gap);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 0;
  }

  .header-inner > .brand {
    grid-column: 2;
    grid-row: 1;
    font-size: calc(0.98rem * 1.18);
    line-height: calc(0.98rem * 1.35);
    font-weight: 500;
  }

  .header-inner > .site-nav {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header-inner > .site-nav ul {
    flex-wrap: nowrap;
    column-gap: var(--header-gap);
  }
}

@media (max-width: 600px) {
  .mobile-pointer-focus:focus {
    outline: none;
  }
}

.prose .text-toggle {
  display: none;
}

.prose .text-toggle + p {
  margin-top: 1.15em;
}

.contact-form {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.form-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 60%, white);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button,
.text-toggle {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}

.contact-form button {
  justify-self: start;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-form button:disabled {
  cursor: default;
}

.form-status:empty {
  display: none;
}

@media (max-width: 600px) {
  .prose .text-toggle {
    display: block;
    min-width: 44px;
    margin-top: 0.5rem;
    text-align: left;
    font-size: 1.4em;
  }
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: color-mix(in srgb, var(--paper) 35%, white);
}
