:root {
  --bg: #f3f1ec;
  --ink: #1b1916;
  --muted: #4a453f;
  --line: #ddd6cc;
  --accent: #8a4632;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --ink: #f3f1ec;
    --muted: #c8c2b8;
    --line: #322e2a;
    --accent: #e0a08c;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

#content:focus {
  outline: none;
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex: none;
}

.mark rect {
  fill: currentColor;
}

.mark path {
  fill: var(--bg);
}

.header-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.header-mail:hover,
.header-mail:focus-visible {
  text-decoration-thickness: 2px;
}

main {
  flex: 1 0 auto;
  padding-block: 3.25rem 3.75rem;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 1.1rem;
  background: var(--accent);
}

.home h1 {
  font-size: clamp(2.6rem, 1.15rem + 5.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.home h1::after {
  width: 2.75rem;
  margin-top: 1.35rem;
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

.tagline {
  margin: 1.2rem 0 0;
  max-width: 16em;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: pretty;
}

.intro-copy p {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.intro-copy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.intro-copy a:hover,
.intro-copy a:focus-visible {
  text-decoration-thickness: 2px;
}

.email {
  margin-top: 2.25rem;
}

.label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.email a {
  font-size: 1.125rem;
}

.prose {
  max-width: 38rem;
}

.prose h1 {
  margin-bottom: 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.prose a:hover,
.prose a:focus-visible {
  text-decoration-thickness: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 0.85rem 1.35rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
}

.legal {
  margin: 0;
  font-size: 0.9375rem;
}

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

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  text-decoration-thickness: 2px;
}

.address {
  margin: 0.15rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.5;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 4rem, 68rem);
  }

  main {
    padding-block: 6.25rem 5rem;
  }

  .intro {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 4rem;
  }
}

@media (forced-colors: active) {
  :root {
    --bg: Canvas;
    --ink: CanvasText;
    --muted: CanvasText;
    --line: CanvasText;
    --accent: LinkText;
  }

  .skip {
    background: CanvasText;
    color: Canvas;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    min-height: 0;
  }

  .skip {
    display: none;
  }

  .site-header,
  .site-footer {
    border-color: #000;
  }

  a {
    text-decoration: underline;
  }
}
