:root {
  --color-cream: #f5efe3;
  --color-graphite: #2a2620;
  --color-graphite-muted: #5a544a;
  --color-terracotta: #d85a30;
  --radius-card-sm: 14px;
  --radius-card-lg: 18px;
  --radius-button: 16px;

  --color-academic-bg: #DFE3D4;
  --color-academic-label: #5A6B3D;
  --color-narrative-bg: #E0D4DD;
  --color-narrative-label: #6B3D5A;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--color-cream);
  color: var(--color-graphite);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

main,
header,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

header {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header .brand {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-graphite);
  text-decoration: none;
}

header .meta {
  font-size: 13px;
  color: var(--color-graphite-muted);
}

main {
  padding-bottom: 48px;
}

footer {
  border-top: 1px solid rgba(42, 38, 32, 0.1);
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--color-graphite-muted);
  line-height: 1.5;
}

footer p {
  margin: 0 0 4px;
}

footer p:last-child {
  margin-bottom: 0;
}

h1 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  margin: 32px 0 24px;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}

h3 {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-graphite-muted);
  margin: 28px 0 8px;
}

p,
li {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
}

strong {
  font-weight: 500;
}

a {
  color: var(--color-graphite);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-graphite-muted);
}

footer a {
  color: var(--color-terracotta);
}

footer a:hover {
  color: var(--color-graphite);
}

ul,
ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul > li {
  padding-left: 20px;
  position: relative;
}

ul > li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-graphite-muted);
}

ol > li::marker {
  color: var(--color-graphite-muted);
}

hr {
  border: none;
  border-top: 1px solid rgba(42, 38, 32, 0.1);
  margin: 32px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(42, 38, 32, 0.1);
}

th {
  font-weight: 500;
  color: var(--color-graphite);
  background: rgba(42, 38, 32, 0.03);
}

.disclaimer {
  background: transparent;
  padding: 0;
  margin: 0 0 48px;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.55;
}

.disclaimer p {
  margin: 0 0 8px;
}

.disclaimer p:first-child {
  font-weight: 500;
}

.disclaimer p:last-child {
  margin-bottom: 0;
  color: var(--color-graphite-muted);
  font-size: 15px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 28px 24px;
  border-radius: var(--radius-card-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 38, 32, 0.08);
}

.doc-card .label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.doc-card .title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-graphite);
}

.doc-card.academic {
  background: var(--color-academic-bg);
}

.doc-card.academic .label {
  color: var(--color-academic-label);
}

.doc-card.narrative {
  background: var(--color-narrative-bg);
}

.doc-card.narrative .label {
  color: var(--color-narrative-label);
}

@media (max-width: 480px) {
  main,
  header,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  body {
    font-size: 16px;
  }

  p,
  li {
    font-size: 16px;
  }

  .doc-card {
    padding: 24px 20px;
  }

  .doc-card .title {
    font-size: 20px;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}
