:root {
  --bg: #F4F1EB;
  --bg-elevated: #FAF8F3;
  --ink: #1A2538;
  --ink-muted: #6F6F6F;
  --rule: #DDD7CB;
  --accent: #9F4E1F;
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  transform: translateY(-2px);
}

nav.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 560px;
  color: var(--ink);
}

.hero .meta {
  margin-top: 3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero .meta span::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--accent);
}

/* About */
.about {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

.about h2 {
  font-family: var(--body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Legal pages */
.legal {
  padding: 4rem 0 6rem;
}

.legal .page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.legal .page-subtitle {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.legal h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}

.legal h3 {
  font-family: var(--body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal h4 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.legal p,
.legal li {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

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

.legal strong {
  font-weight: 600;
}

.legal .meta-block {
  font-family: var(--body);
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal .meta-block p {
  margin-bottom: 0.5rem;
}

.legal .meta-block p:last-child {
  margin-bottom: 0;
}

.legal table.subprocessor {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
}

.legal table.subprocessor th,
.legal table.subprocessor td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.legal table.subprocessor th {
  font-family: var(--body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.legal .last-updated {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer.site-footer .legal-links {
  display: flex;
  gap: 1.5rem;
}

footer.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

footer.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .site-header .container,
  footer.site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav.site-nav {
    gap: 1.25rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero .meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .legal {
    padding: 3rem 0 4rem;
  }
  
  .legal table.subprocessor {
    font-size: 0.85rem;
  }
  
  .legal table.subprocessor th,
  .legal table.subprocessor td {
    padding: 0.6rem 0.5rem;
  }
}

/* Subtle entry animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .lede,
.hero .meta,
.legal .page-title {
  animation: fadeUp 0.7s ease-out forwards;
}

.hero .lede {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero .meta {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}
