:root {
  --bg: #f8f6f3;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --accent: #166534;
  --accent-light: #22c55e;
  --line: #e5e2de;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  padding: clamp(2rem, 8vw, 4rem);
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  margin-right: 1.25rem;
}

nav a:hover {
  color: var(--accent);
}

.banner {
  background: var(--accent);
  color: white;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.banner p {
  margin: 0;
  color: inherit;
}

/* Future: .banner will hold sign in / create account / my account buttons */

header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

.tagline {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

main {
  flex: 1;
  padding-top: 2rem;
}

main p, main li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

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

main ul {
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

main h2:first-child {
  margin-top: 0;
}

main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

main a {
  color: var(--accent);
  text-decoration: none;
}

main a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

main code {
  background: var(--line);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.highlight {
  color: var(--text);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-soft);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}
