:root {
  color-scheme: light;
  --background: #f6f1e7;
  --surface: #fbf8f1;
  --text: #292b27;
  --muted: #62665d;
  --olive: #667052;
  --olive-dark: #4b543b;
  --blue: #dbe8eb;
  --border: #d9d4c8;
  --focus: #315d68;
  --shadow: 0 18px 48px rgba(48, 49, 43, 0.07);
  --content-width: 840px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(219, 232, 235, 0.7), transparent 30rem),
    var(--background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--olive-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.site-header,
.site-footer {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(102, 112, 82, 0.11);
}

.page-shell {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.eyebrow,
.meta-line {
  margin: 0 0 0.75rem;
  color: var(--olive-dark);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 9vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.document h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 7vw, 4.3rem);
}

h2 {
  margin-top: 3rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin-top: 2rem;
  font-size: 1.18rem;
  font-weight: 650;
}

p,
ul {
  margin-block: 1rem;
}

.lede {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.65;
}

.case-name {
  display: block;
  margin-top: 0.65rem;
  color: var(--olive-dark);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.link-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.link-card {
  display: block;
  min-height: 9.5rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  color: var(--text);
  background: rgba(251, 248, 241, 0.8);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.link-card:hover {
  border-color: #aeb39f;
  color: var(--text);
  background: var(--surface);
  transform: translateY(-2px);
}

.link-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.document-body {
  max-width: 46rem;
  padding-top: 0.75rem;
}

.document-body p,
.document-body li {
  color: #3b3d38;
}

.document-body strong {
  color: var(--text);
}

.notice,
.contact-card {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--olive);
  border-radius: 0.75rem;
  background: var(--surface);
}

.notice p,
.contact-card p {
  margin: 0;
}

.support-list {
  padding-left: 1.35rem;
}

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

.email-link,
.protected-reveal {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.protected-reveal {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--olive-dark);
  background: transparent;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.protected-reveal:hover {
  color: var(--text);
}

.protected-reveal:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.protected-note {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.developer-name {
  color: inherit;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-title {
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0.08em;
}

@media (min-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

  .link-card {
    transition: none;
  }
}
