@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/pd-source-serif-4-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f6f0;
  --sheet: #fcfbf7;
  --stone-tint: #eae4d7;
  --ink: #181816;
  --ink-2: #43423d;
  --bronze: #705e3e;
  --rule: #d4cfc2;
  --serif: "Source Serif 4", "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-folio: 0 18px 42px -24px rgba(24, 24, 22, 0.16), 0 2px 6px rgba(24, 24, 22, 0.05);
}

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

html {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--bronze) var(--paper);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  caret-color: var(--bronze);
}

main {
  flex: 1 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  background: var(--ink);
  color: var(--sheet);
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
}

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

.desk {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}

.letterhead {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-folio);
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 2.75rem);
}

.letterhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
}

.letterhead::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bronze);
  transform-origin: left center;
  animation: draw-rule 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes draw-rule {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.letterhead-head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

.monogram {
  width: 3.375rem;
  height: 3.375rem;
  flex-shrink: 0;
  display: block;
}

.monogram-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.letterhead-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(1.625rem, 3vw, 2.3125rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

.letterhead-body {
  padding: clamp(1.75rem, 4vw, 2.625rem) 0;
}

.statement {
  margin: 0;
  max-width: 60ch;
  font-family: var(--sans);
  font-size: clamp(1.09375rem, 1.4vw, 1.21875rem);
  line-height: 1.68;
  color: var(--ink);
}

.colophon {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.875rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  border-top: 1px solid rgba(24, 24, 21, 0.08);
  font-size: 0.75rem;
  color: #5c5952;
  font-variant-numeric: tabular-nums;
}

.colophon-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem 0.875rem;
  white-space: nowrap;
}

.colophon-copy {
  margin: 0;
}

.colophon-copy a {
  color: #5c5952;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transition: color 0.15s ease;
}

.colophon-copy a:hover {
  color: var(--ink);
  text-decoration: none;
}

.colophon-address {
  margin: 0;
  letter-spacing: 0.01em;
}

.legal-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  margin: 0 -0.375rem;
  white-space: nowrap;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.375rem;
  color: #5c5952;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.28em;
  font-size: 0.8125rem;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

.legal-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--ink);
}

/* Legal & 404 Document Layout */
.doc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.doc-brand-name {
  font-family: var(--serif);
  font-weight: 580;
  font-size: 1.1875rem;
  letter-spacing: -0.012em;
}

.doc-article {
  padding: 2rem 0 1.75rem;
  max-width: 65ch;
}

.doc-article h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.doc-updated {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.doc-lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.64;
  color: var(--ink);
}

.doc-article h2 {
  margin: 2rem 0 0.625rem;
  font-family: var(--serif);
  font-weight: 580;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc-article p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}

.return-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 0.15s ease;
}

.return-btn:hover {
  background: #2c2b27;
}

/* Cookie Consent Bar */
.cookiebar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: 28rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-folio);
  padding: 1rem 1.125rem;
}

.cookiebar[hidden] {
  display: none;
}

.cookiebar p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.cb-actions button {
  flex: 1 1 8.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cb-actions button[data-consent="granted"] {
  background: var(--ink);
  color: var(--sheet);
}

.cb-actions button:hover {
  background: var(--stone-tint);
  color: var(--ink);
}

.cb-actions button[data-consent="granted"]:hover {
  background: #2c2b27;
  color: var(--sheet);
}

@media (max-width: 640px) {
  .desk {
    justify-content: flex-start;
    padding: 1rem;
  }
  .letterhead {
    padding: 1.75rem 1.25rem 1.375rem;
  }
  .letterhead-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }
  .colophon-meta,
  .legal-nav {
    flex-wrap: wrap;
    white-space: normal;
  }
  .cookiebar {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
