/* Longleaf Content — editorial broadsheet system */
:root {
  --paper: #faf6ee;
  --paper-deep: #f3ede0;
  --ink: #16130e;
  --ink-soft: #4f4a40;
  --hairline: #d8d0bf;
  --cobalt: #1f3dd6;
  --cobalt-deep: #162ca3;
  --max: 1080px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rule { border: none; border-top: 1px solid var(--hairline); }
.rule--heavy { border-top: 3px solid var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* masthead */
.masthead {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.masthead .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 20px; padding-bottom: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700; font-size: 22px; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.wordmark em { font-style: italic; color: var(--cobalt); }
.masthead nav { display: flex; gap: 28px; align-items: baseline; }
.masthead nav a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
}
.masthead nav a:hover { color: var(--cobalt); }
.masthead nav a.cta {
  color: var(--paper); background: var(--ink);
  padding: 8px 18px; border-radius: 2px;
}
.masthead nav a.cta:hover { background: var(--cobalt); color: var(--paper); }

/* kicker labels */
.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cobalt); font-weight: 600;
  display: flex; align-items: center; gap: 14px;
}
.kicker::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.kicker .no { color: var(--ink); }

/* article + policy pages */
.article {
  max-width: 720px; margin: 0 auto; padding: 64px 24px 96px;
}
.article-label {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cobalt); font-weight: 600; margin-bottom: 18px;
}
.article h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: 28px;
}
.article h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 27px; line-height: 1.25; margin: 44px 0 14px;
}
.article h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 21px; margin: 32px 0 10px;
}
.article p { margin: 0 0 18px; color: var(--ink-soft); }
.article ul, .article ol { margin: 0 0 18px 24px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.article a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:hover { color: var(--cobalt-deep); }
.article blockquote {
  border-left: 3px solid var(--cobalt); padding: 4px 0 4px 20px;
  margin: 0 0 18px; font-style: italic;
}
.article table {
  width: 100%; border-collapse: collapse; margin: 8px 0 24px;
  font-size: 15px;
}
.article th {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: left;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 10px 12px 8px;
}
.article td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 12px; vertical-align: top; color: var(--ink-soft);
}
.article strong { color: var(--ink); }
.sample-note {
  background: var(--paper-deep); border: 1px solid var(--hairline);
  border-radius: 2px; padding: 14px 18px; font-size: 14px;
  color: var(--ink-soft); margin-bottom: 36px;
}
.backlink {
  display: inline-block; margin-bottom: 40px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
}
.backlink:hover { color: var(--cobalt); }

/* footer */
.colophon {
  border-top: 3px solid var(--ink);
  margin-top: 40px;
}
.colophon .wrap {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: baseline;
  padding-top: 28px; padding-bottom: 48px;
  font-size: 13px; color: var(--ink-soft);
}
.colophon a { color: var(--ink-soft); text-decoration: none; margin-right: 20px; }
.colophon a:hover { color: var(--cobalt); }

@media (max-width: 640px) {
  .masthead nav { gap: 14px; }
  .masthead nav a:not(.cta):not(:nth-child(-n+2)) { display: none; }
}
