:root {
  --paper: #f4f1e9;
  --paper-2: #efeae0;
  --ink: #1c1a16;
  --ink-soft: #5b554a;
  --line: #ddd6c7;
  --accent: #b8431f;
  --accent-deep: #8f3217;
  --max: 660px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(28, 26, 22, 0.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 24px;
}

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

/* ---- Masthead ---- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand .name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.brand .name b { color: var(--accent); font-weight: 600; }

.masthead .tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- Hero (landing) ---- */
.hero h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 28px 0 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 46ch;
}

/* ---- Link list (landing nav) ---- */
.linklist {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.linklist li { border-bottom: 1px solid var(--line); }

.linklist a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.25s ease, color 0.2s ease;
}

.linklist a:hover { padding-left: 14px; color: var(--accent); }

.linklist .t {
  font-family: var(--display);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  flex: none;
  min-width: 168px;
}

.linklist .d {
  color: var(--ink-soft);
  font-size: 16px;
  flex: 1;
}

.linklist a:hover .d { color: var(--accent-deep); }

.linklist .arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 20px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.linklist a:hover .arrow { transform: translateX(0); opacity: 1; }

/* ---- Article (legal pages) ---- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease, gap 0.2s ease;
}

.back:hover { color: var(--accent); gap: 11px; }

article h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
}

.updated {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

article h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

article h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 14px;
  border-radius: 2px;
}

article p { margin: 0 0 16px; }

article ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

article li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink);
}

article li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

a { color: var(--accent); text-decoration: none; }
article a, .lead a { border-bottom: 1px solid rgba(184, 67, 31, 0.35); transition: border-color 0.2s ease; }
article a:hover, .lead a:hover { border-bottom-color: var(--accent); }

strong { font-weight: 650; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer .copy { font-weight: 500; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { color: var(--ink-soft); border-bottom: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .linklist a { flex-wrap: wrap; gap: 4px 18px; }
  .linklist .t { min-width: 100%; }
  .linklist .arrow { display: none; }
  .site-footer nav { margin-left: 0; }
  .masthead .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
