:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #202d2b;
  --muted: #4e5d59;
  --rule: #c4cac2;
  --accent: #9a3e23;
  --focus: #005a7a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #182321;
    --ink: #f6f3ec;
    --muted: #c0cec7;
    --rule: #53635d;
    --accent: #ffb499;
    --focus: #8bd9f2;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #182321;
  --ink: #f6f3ec;
  --muted: #c0cec7;
  --rule: #53635d;
  --accent: #ffb499;
  --focus: #8bd9f2;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: .6rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 2rem;
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--rule);
}
.site-name { font-size: 1.1rem; font-weight: 650; text-decoration: none; }
.site-name span { font-weight: 400; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.3rem; font-size: .9rem; }
nav a, .appearance { display: inline-flex; align-items: center; min-height: 2.75rem; }
.appearance {
  border: 1px solid var(--rule);
  border-radius: .2rem;
  background: transparent;
  color: inherit;
  padding: .3rem .8rem;
  cursor: pointer;
}
.appearance:hover { border-color: var(--ink); }
.appearance[aria-pressed="true"] { border-color: var(--ink); }
main { flex: 1; }
.home {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
}
.eyebrow { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.75rem, 5.7vw, 5.2rem); letter-spacing: -.045em; margin: 0 0 2rem; }
h2 { font-size: 2rem; letter-spacing: -.025em; margin: 0 0 1.3rem; }
p { margin-block: 0 1rem; }
.lead { max-width: 33rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.contact { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.contact h2 { font-size: 2.4rem; }
.email { color: var(--accent); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; overflow-wrap: anywhere; }
.contact p { margin-top: 1.1rem; max-width: 27rem; }
.contact-note { color: var(--muted); font-size: .9rem; }
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: 0; }
  .site-footer a { min-height: 2.75rem; }
.document { max-width: 47rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.document h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.document .lead { margin-bottom: 3rem; }
.document section { margin-block: 2.4rem; }
.document h2 { font-size: 1.75rem; margin-bottom: .9rem; }
.document p { max-width: 43rem; }
.document a { overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); }
.not-found { min-height: 30rem; }

@media (max-width: 48rem) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .contact { max-width: 33rem; }
  .site-header { padding-block: 1rem; }
}

@media (max-width: 25rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; gap: .3rem; }
  nav { width: 100%; justify-content: space-between; }
  h1 { font-size: 2.65rem; }
}

@media print {
  :root, :root[data-theme] { --paper: #fff; --ink: #000; --muted: #333; --rule: #aaa; --accent: #000; }
  .appearance, .skip-link { display: none !important; }
  .wrap { width: 100%; }
  .home { display: block; padding-block: 2rem; }
  .contact { margin-top: 2rem; }
}
