/* TuftPlan support site — shared styles */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #24211d;
  --ink-soft: #55504a;
  --accent: #8a5a3b;
  --accent-ink: #ffffff;
  --border: #e7e1d8;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

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

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

section {
  margin: 2.5rem 0;
}

section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

section p {
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.button:hover,
.button:focus {
  background: #74492f;
  text-decoration: none;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site-footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 0;
  margin: 0 0 0.75rem;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .header-inner {
    padding: 1rem 1.25rem;
  }

  main {
    padding: 2.25rem 1.25rem 3rem;
  }

  nav.site-nav ul {
    gap: 1rem;
  }
}
