/* ── Base & Typography ── */

:root {
  --accent: #2c3e6b;
  --accent-dark: #1e2d4f;
  --gold: #b8943e;
  --ink: #1a1a1a;
  --warm-gray: #f3f2ee;
  --parchment: #faf9f6;
  --border: #d6d0c4;
  --text: #333;
  --text-light: #6b6356;
  --serif: "Georgia", "Times New Roman", "Times", serif;
  --sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--parchment);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

header {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 4px solid var(--gold);
}

.site-logo {
  width: 52px;
  height: auto;
  margin-bottom: 0.6rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.wordmark-icon {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: left;
  margin-bottom: 0;
}

.site-subtitle {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Navigation ── */

nav {
  background: var(--ink);
  text-align: center;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #e0dcd4;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem 1.2rem;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: #fff;
}

/* Auth slot at the end of the nav. Inherits the link styling above for
   the Sign in / Sign out anchors. The email is rendered slightly muted
   so it reads as a status, not a clickable thing. */
.auth-nav {
  margin-left: 1.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid #4a4a4a;
}
.auth-nav:empty {
  border-left: 0;
  padding-left: 0;
  margin-left: 0;
}
.auth-nav .auth-email {
  color: #9c958a;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: 0.4rem 0.4rem 0.4rem 0;
}
.auth-nav .auth-sep {
  color: #4a4a4a;
  padding: 0 0.2rem;
}

/* ── Main Content ── */

main {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

/* ── Hero ── */

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

.hero h2 {
  border-bottom: none;
  font-size: 1.6rem;
}

.hero p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* ── Card ── */

.card {
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem 1.8rem;
  margin-top: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card h3 a {
  color: var(--accent);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
}

/* ── Resource list ── */

.resource-list {
  list-style: none;
  margin-top: 0.8rem;
}

.resource-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.resource-list li:last-child {
  border-bottom: none;
}

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

.resource-list a:hover {
  text-decoration: underline;
}

.resource-desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── About ── */

.about p {
  color: var(--text-light);
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .site-title {
    font-size: 1.8rem;
  }

  header {
    padding: 2rem 1rem 1.5rem;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }
}
