/* style.css — The Analog Atlas */
:root {
  --paper: #f7f4ef;
  --ink: #1e1b17;
  --ink-light: #3d3730;
  --accent: #8b5a2b;
  --accent-soft: #c7a27a;
  --line: #d9d2c5;
  --card-bg: #ffffff;
  --footer-bg: #eae5db;
}

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

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Georgia', 'Times New Roman', 'Palatino', serif;
  line-height: 1.6;
  font-size: 1.05rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  position: relative;
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: bold;
  letter-spacing: 0.5px;
}

.logo-svg {
  color: var(--accent);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.35rem;
  font-family: 'Georgia', serif;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.6rem;
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-light);
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent-soft);
}

.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Main */
main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 680px;
  color: var(--ink-light);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  text-decoration: none;
  border-radius: 2px;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background-color: #3d3730;
  border-color: #3d3730;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
  border-radius: 3px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--ink-light);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.card-link:hover {
  border-bottom-color: var(--accent);
}

/* Quote */
.quote-section {
  background-color: #ede8df;
  padding: 2.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

blockquote {
  font-size: 1.6rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 0.8rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.4;
}

.quote-author {
  text-align: center;
  color: var(--ink-light);
  font-size: 0.95rem;
}

/* Page intro */
.page-intro {
  margin-bottom: 2.5rem;
}

.page-intro h1 {
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
}

.page-intro p {
  font-size: 1.12rem;
  color: var(--ink-light);
  max-width: 680px;
}

/* Explore grid */
.explore-grid .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.explore-item {
  border-top: 2px solid var(--accent-soft);
  padding-top: 1rem;
}

.explore-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.explore-item p {
  color: var(--ink-light);
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}

.tag {
  display: inline-block;
  background: #e4ddd2;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: var(--ink);
  border-radius: 2px;
}

/* Region highlight */
.region-highlight {
  margin-top: 3rem;
}

.region-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 2rem 2rem;
  border-radius: 3px;
}

.region-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.region-card p {
  color: var(--ink-light);
  max-width: 640px;
  margin-bottom: 1.2rem;
}

/* Collection list */
.collection-list .wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.collection-entry {
  border-left: 3px solid var(--accent-soft);
  padding-left: 1.5rem;
}

.collection-entry h2 {
  font-size: 1.5rem;
}

.meta {
  font-size: 0.9rem;
  color: #6b6258;
  margin-bottom: 0.4rem;
  font-family: 'Helvetica', 'Arial', sans-serif;
  letter-spacing: 0.2px;
}

.collection-entry p:last-child {
  color: var(--ink-light);
}

/* About & contact */
.about-content .wrapper,
.contact-content .wrapper {
  max-width: 720px;
}

.about-content h2,
.contact-block h2 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.7rem;
}

.about-content h2:first-of-type,
.contact-block h2:first-of-type {
  margin-top: 0;
}

.about-content p,
.contact-block p {
  color: var(--ink-light);
  margin-bottom: 0.8rem;
}

.contact-block {
  margin-bottom: 2rem;
}

.email-display {
  font-family: 'Courier New', monospace;
  background: #ede8df;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin: 0.3rem 0 0.8rem;
}

/* Error 404 */
.error-page {
  text-align: center;
  padding: 2rem 0;
}

.error-page h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--ink-light);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.error-actions {
  margin: 2rem 0 1rem;
}

.compass-ornament {
  margin-top: 2rem;
  color: var(--accent-soft);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-light);
}

.site-footer .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-links a {
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

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

/* Responsive */
@media (max-width: 700px) {
  .site-header .wrapper {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  blockquote {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}