@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:            #faf9f7;
  --bg-subtle:     #f2ede7;
  --surface:       #ffffff;
  --border:        #e8e4de;
  --text:          #1a1612;
  --text-muted:    #7a736b;
  --accent:        #c17a3b;
  --accent-hover:  #a8672e;
  --accent-light:  #fff7f0;
  --accent-border: #f0d5b8;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
}

html {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
}

/* ── Typography ──────────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h2 {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Links ───────────────────────────────────────────────── */

a {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:active, a:focus {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ── Header ──────────────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header a {
  text-decoration: none;
}

/* ── Brand ───────────────────────────────────────────────── */

.brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Navigation ──────────────────────────────────────────── */

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-border);
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-icons a:hover,
.footer-icons a:focus {
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

p.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Layout ──────────────────────────────────────────────── */

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}

section {
  padding: 2% 0;
}

/* ── Container ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 800px;
  padding: 3.5rem 2.5rem 4rem;
  margin: 0 auto;
}

/* ── Misc ────────────────────────────────────────────────── */

.error {
  color: #dc2626;
  width: 100%;
  margin-top: .25rem;
  font-size: 80%;
}

ul li {
  line-height: 1.6;
  margin-left: 1.4rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.screenreader-text {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  top: auto;
}

.screenreader-text:focus {
  color: var(--text);
  display: inline-block;
  height: auto;
  width: auto;
  position: static;
  margin: auto;
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  header {
    padding: 0 1.25rem;
  }

  .container {
    padding: 2rem 1.25rem 3rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}
