:root {
  --paper: #f3efe6;
  --ink: #1c2623;
  --muted: #3e4944;
  --line: #d5cec1;
  --accent: #1f3d36;
  --accent-hover: #16312b;
  --on-accent: #f3efe6;
  --measure: 40rem;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d5e0db;
  color: var(--ink);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 1.75rem 4.5rem;
  overflow-wrap: break-word;
}

.mast {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  min-height: 2.5rem;
}

.mast-start {
  justify-content: flex-start;
}

.mast a {
  color: var(--muted);
  font-size: 1rem;
}

.home .wrap {
  padding-top: 1rem;
}

.identity {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.35rem 1.35rem;
  align-items: end;
  margin-top: 2.75rem;
}

.home .identity {
  margin-top: 0;
}

.portrait {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  display: block;
}

.kicker {
  margin: 2.75rem 0 0.4rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.identity .kicker {
  margin-top: 0;
}

.role {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

h1,
h2,
.quiet-title {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.identity h1 {
  font-size: clamp(1.45rem, 4.4vw, 1.85rem);
}

.quiet-title {
  margin-top: 2.25rem;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-details .wrap {
  padding-bottom: 2.25rem;
}

.page-details .prose {
  margin-top: 0.25rem;
}

.page-details .quiet-title {
  margin-top: 1rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.page-details .prose p {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.45;
}

.page-details .facts {
  margin: 0.65rem 0 0.75rem;
}

.page-details .facts div {
  padding: 0.28rem 0;
  gap: 0.2rem 1rem;
}

.page-details .foot {
  margin-top: 1.35rem;
  padding-top: 0.7rem;
}

@media (max-width: 36rem) {
  .page-details .quiet-title {
    font-size: 1.2rem;
  }

  .page-details .prose p,
  .page-details .facts {
    font-size: 0.9375rem;
    line-height: 1.4;
  }

  .page-details .facts div {
    grid-template-columns: 5.25rem 1fr;
    align-items: baseline;
    padding: 0.35rem 0;
  }
}

.letter {
  margin-top: 2rem;
}

.letter p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.aside {
  margin-top: 2rem;
  font-size: 1.05rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead,
.prose p,
.enquire p {
  margin: 0 0 1rem;
}

.lead {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--accent-hover);
}

.facts {
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt,
.facts dd {
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.enquire {
  margin-top: 2.75rem;
}

.button {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1.2rem;
  min-height: 3rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  line-height: 1.3;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.email-line {
  margin: 0;
}

.foot {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.foot p {
  margin: 0 0 0.35rem;
}

.prose {
  margin-top: 2rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

@media (max-width: 36rem) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.85rem 0;
  }
}

@media (max-width: 28rem) {
  .identity {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portrait {
    width: 8rem;
    height: 8rem;
  }
}
