/* === City Aligned — Global Styles === */

:root {
  --linen: #f8f0e4;
  --black: #000000;
  --autumn-ember: #ba5c12;
  --dark-cyan: #55868c;
  --glaucous: #7272ab;
  --linen-dark: #ede4d4;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--linen);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Typography === */

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  max-width: 38em;
}

a {
  color: var(--autumn-ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--autumn-ember);
}

/* === Layout === */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 960px;
}

/* === Header / Nav === */

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linen-dark);
}

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

.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--black);
  border-bottom: none;
}

.site-logo:hover {
  border-bottom: none;
  color: var(--autumn-ember);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.2s;
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  border-bottom: none;
}

/* === Hero (Homepage) === */

.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 30em;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

.hero-banner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
  display: block;
}

/* === Sections === */

section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid var(--linen-dark);
}

/* === City Cards (Homepage) === */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.city-card {
  border: 1px solid var(--linen-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--linen);
}

.city-card:hover {
  border-color: var(--autumn-ember);
  transform: translateY(-2px);
}

.city-card a {
  display: block;
  text-decoration: none;
  border-bottom: none;
  color: var(--black);
}

.city-card a:hover {
  border-bottom: none;
}

.city-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.city-card-body {
  padding: 1.25rem;
}

.city-card-body h3 {
  font-family: 'Fraunces', serif;
  margin-bottom: 0.25rem;
}

.city-card-body p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0;
}

/* === City Page Hero === */

.city-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.city-hero img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.city-hero h1 {
  margin-bottom: 0.5rem;
}

.city-hero .tagline {
  font-size: 1.15rem;
  opacity: 0.7;
}

/* === Info Blocks (WHAT / WHO / WHY) === */

.info-block {
  padding: 2.5rem 0;
}

.info-block + .info-block {
  border-top: 1px solid var(--linen-dark);
}

.info-block h2 {
  color: var(--autumn-ember);
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.info-block p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Detail row === */

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.detail-item {
  flex: 1;
  min-width: 160px;
}

.detail-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.detail-item .value {
  font-size: 1rem;
}

/* === CTA Button === */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--black);
  border-radius: 4px;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  border-bottom: 1px solid var(--black);
}

.btn:hover {
  background: var(--black);
  color: var(--linen);
  border-bottom-color: var(--black);
}

.btn--primary {
  background: var(--autumn-ember);
  color: var(--linen);
  border-color: var(--autumn-ember);
  border-bottom-color: var(--autumn-ember);
}

.btn--primary:hover {
  background: #9a4c0f;
  border-color: #9a4c0f;
  border-bottom-color: #9a4c0f;
  color: var(--linen);
}

/* === Footer === */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--linen-dark);
  font-size: 0.85rem;
  opacity: 0.5;
  text-align: center;
}

/* === Utility === */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* === Responsive === */

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

  h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }

  .city-hero img {
    width: 200px;
    height: 200px;
  }

  .detail-row {
    flex-direction: column;
    gap: 1rem;
  }

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