:root {
  color-scheme: light dark;
  --page: #fbfbfc;
  --page-end: #fbfbfc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #111214;
  --muted: #707070;
  --line: rgba(17, 18, 20, 0.09);
  --accent: #222222;
  --accent-soft: rgba(17, 17, 17, 0.04);
  --shadow: none;
  --gold: #7a6047;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page) url("./paper.png") repeat;
  background-size: 204px 99px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface-strong);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 36px, 820px);
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.header-nav a {
  padding: 7px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.header-nav a[aria-current="page"],
.header-nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.page-shell {
  padding: 40px 0 64px;
}

.hero {
  padding: 38px 4px 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.62;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-card,
.document {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 150ms ease;
}

.policy-card:hover {
  background: var(--surface-strong);
}

.policy-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  font-weight: 680;
}

.arrow {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface-strong);
}

.contact-card {
  margin-top: 16px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--accent-soft);
}

.contact-card h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a,
.document a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 3px;
}

.document {
  padding: clamp(26px, 7vw, 58px);
  border-radius: 20px;
}

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

.document-header h1 {
  font-size: clamp(30px, 6vw, 38px);
}

.effective-date {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.document section {
  padding-top: 34px;
}

.document h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.document h3 {
  margin: 25px 0 8px;
  font-size: 19px;
  line-height: 1.4;
}

.document p {
  margin: 0 0 14px;
}

.document ul {
  margin: 10px 0 18px;
  padding-left: 1.35em;
}

.document li + li {
  margin-top: 8px;
}

.site-footer {
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.work-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 32px 0 64px; }
.work-icon { display: block; border-radius: 20px; margin-bottom: 24px; }
.work-description h1 { color: var(--gold); font-size: 38px; font-weight: 400; }
.work-statement { font-size: clamp(25px, 4vw, 32px); line-height: 1.5; margin: 18px 0; letter-spacing: -.025em; }
.work-summary { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.text-link { text-underline-offset: 5px; display: inline-flex; gap: 16px; align-items: center; min-height: 44px; }
.reminder-examples { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 12px; }
.reminder-examples figcaption { color: var(--gold); font-size: 16px; }
.reminder-examples ul { margin: 16px 0; padding: 0; list-style: none; }
.reminder-examples li { display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.reminder-examples li:last-child { border: 0; }
.reminder-examples time, .example-time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.reminder-examples strong { display: block; font-size: 17px; font-weight: 500; }
.reminder-examples li div span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.example-note, .feature-note { color: var(--muted); font-size: 14px; }
.work-section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.work-section h2 { font-size: 25px; font-weight: 500; margin: 0 0 16px; }
.work-section p { max-width: 700px; }
.work-section blockquote { margin: 24px 0 32px; border-left: 2px solid var(--gold); padding: 8px 0 8px 22px; font-size: 22px; }
.feature-list { margin: 0; }
.feature-list > div { display: grid; grid-template-columns: 205px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 500; }
.feature-list dd { margin: 0; color: var(--muted); font-size: 16px; }
.document-links { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 24px; }
.contact-section p a { text-underline-offset: 4px; }
.footer-inner { flex-wrap: wrap; }

@media (max-width: 640px) {
  .work-intro { grid-template-columns: 1fr; gap: 32px; padding: 8px 4px 40px; }
  .work-icon { width: 76px; height: 76px; }
  .feature-list > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .work-section { padding: 28px 4px; }
  .header-nav { font-size: 13px; }
  .header-nav a { padding: 8px 7px; }
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 820px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .header-nav {
    gap: 0;
  }

  .page-shell {
    padding: 38px 0 60px;
  }

  .hero {
    padding: 25px 4px 34px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-card {
    min-height: 196px;
    padding: 24px;
  }

  .document {
    border-radius: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #2d2d2d;
    --page-end: #2d2d2d;
    --surface: #3b3b3b;
    --surface-strong: #444444;
    --text: #ffffff;
    --muted: #b8b8b8;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #eeeeee;
    --accent-soft: rgba(255, 255, 255, 0.07);
    --shadow: none;
    --gold: #d8bd95;
  }

  body {
    background: var(--page);
  }

  .policy-card,
  .document {
    border-color: rgba(255, 255, 255, 0.07);
  }

  .arrow {
    background: rgba(255, 255, 255, 0.82);
    color: #000000;
  }
}

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

  .policy-card {
    transition: none;
  }
}
