/* Hafenguide Hamburg — site.css
   Independent food & harbour dining blog, est. 2024 */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --burgundy: #6B2D3E;
  --burgundy-light: #8A3C52;
  --burgundy-dark: #52202E;
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --text: #2C2420;
  --text-light: #6B6058;
  --text-lighter: #9A918A;
  --border: #E5DDD3;
  --white: #FFFFFF;
  --tag-bg: #F0E8DC;
  --shadow: rgba(44, 36, 32, 0.08);
  --shadow-hover: rgba(44, 36, 32, 0.14);
}

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

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--burgundy-light); }

img { max-width: 100%; height: auto; display: block; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* === Header / Nav === */
.site-header {
  background: var(--burgundy-dark);
  border-bottom: 3px solid var(--burgundy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 64px;
}

.site-logo {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.site-logo span {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
  margin-left: 0.3em;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  color: rgba(253, 248, 240, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* === Hero / Page Headers === */
.page-hero {
  background: var(--burgundy-dark);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(253, 248, 240, 0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.home-hero {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  padding: 4rem 0 3.5rem;
}
.home-hero h1 {
  font-size: 2.6rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.home-hero .tagline {
  font-size: 1.15rem;
  color: rgba(253, 248, 240, 0.7);
  font-style: italic;
}

/* === Article Card Grid === */
.section-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--burgundy);
  display: inline-block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  padding: 3rem 0 4rem;
}

.article-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.05));
}

.card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  background: var(--tag-bg);
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 3px;
  margin-bottom: 0.7rem;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.card-title a {
  color: var(--text);
}
.card-title a:hover {
  color: var(--burgundy);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--text-lighter);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* === Article Page === */
.article-header {
  background: var(--burgundy-dark);
  color: var(--cream);
  padding: 3.5rem 0 3rem;
}
.article-header .container--narrow {
  text-align: center;
}
.article-header .card-tag {
  background: rgba(253, 248, 240, 0.15);
  color: var(--cream);
  margin-bottom: 1rem;
}
.article-header h1 {
  color: var(--cream);
  font-size: 2.2rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}
.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: rgba(253, 248, 240, 0.6);
}
.article-meta span { margin: 0 0.5rem; }

.article-body {
  padding: 3rem 0 4rem;
}
.article-body p {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}
.article-body h3 {
  margin: 2rem 0 0.8rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.article-body blockquote {
  border-left: 4px solid var(--burgundy);
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--cream-dark);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text-light);
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-lighter);
}

.article-nav {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.article-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--burgundy);
  padding: 0.6em 1.4em;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.article-nav a:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* === Static Pages (About, Contact, Privacy) === */
.page-content {
  padding: 3rem 0 4rem;
}
.page-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}
.page-content h3 {
  margin: 2rem 0 0.8rem;
}
.page-content p {
  font-size: 1.02rem;
}
.page-content ul {
  margin: 0 0 1.4rem 1.5rem;
}
.page-content li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}
.page-content address {
  font-style: normal;
  background: var(--cream-dark);
  border-left: 4px solid var(--burgundy);
  padding: 1.2rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-member {
  background: var(--cream-dark);
  padding: 1.4rem;
  border-radius: 6px;
}
.team-member h4 {
  margin-bottom: 0.3rem;
}
.team-member .role {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.team-member p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* === Footer === */
.site-footer {
  background: var(--burgundy-dark);
  color: rgba(253, 248, 240, 0.6);
  padding: 2.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(253, 248, 240, 0.5);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: rgba(253, 248, 240, 0.65);
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: var(--cream);
}
.footer-copy {
  text-align: center;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(253, 248, 240, 0.1);
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.4);
}

/* === Responsive === */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.85rem; }
  .home-hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0 3rem;
  }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--burgundy-dark);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.8rem;
    border-bottom: 3px solid var(--burgundy);
  }
  .nav-toggle { display: block; }

  .home-hero { padding: 2.5rem 0 2rem; }
  .home-hero h1 { font-size: 1.7rem; }

  .article-header h1 { font-size: 1.65rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
