/*
Theme Name: Chez Dix
Theme URI: https://chezdix.com
Author: Tracey and Dennis Dix
Description: A password-protected travel journal, calendar, and photo archive for documenting life and travels in France, Europe, and beyond.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chez-dix
Tags: blog, travel, custom-logo, featured-images, responsive-layout
*/

:root {
  --cd-ink: #24313a;
  --cd-muted: #66737c;
  --cd-paper: #fffaf2;
  --cd-cream: #f6efe4;
  --cd-blue: #46657a;
  --cd-blue-dark: #2e4858;
  --cd-terracotta: #bf6b4a;
  --cd-olive: #74805d;
  --cd-line: rgba(36,49,58,.14);
  --cd-radius: 22px;
  --cd-shadow: 0 18px 45px rgba(36,49,58,.10);
  --cd-max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cd-ink);
  background: var(--cd-paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--cd-blue-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cd-terracotta);
}

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

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.site-header {
  background: rgba(255,250,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cd-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
.site-main,
.wrap {
  width: min(var(--cd-max), calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.03em;
}

.site-title a {
  color: var(--cd-ink);
  text-decoration: none;
}

.site-description {
  margin: 6px 0 0;
  color: var(--cd-muted);
  font-size: .95rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  font-weight: 650;
  color: var(--cd-ink);
  font-size: .96rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--cd-terracotta);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: center;
  margin-bottom: 64px;
  background:
    linear-gradient(110deg, rgba(36,49,58,.78), rgba(36,49,58,.35)),
    var(--cd-blue);
}

.hero.has-image {
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(var(--cd-max), calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0;
  color: white;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255,255,255,.78);
  margin: 0 0 14px;
}

.hero h1,
.page-title,
.entry-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
  line-height: 1.03;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 900px;
}

.hero p {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cd-terracotta);
  color: white !important;
  border-radius: 999px;
  border: 0;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

.button.secondary {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
}

.section {
  margin: 64px auto;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--cd-muted);
  max-width: 620px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.post-card,
.feature-card,
.destination-card {
  background: white;
  border: 1px solid var(--cd-line);
  border-radius: var(--cd-radius);
  overflow: hidden;
  box-shadow: var(--cd-shadow);
}

.post-card-image {
  aspect-ratio: 4 / 3;
  background: var(--cd-cream);
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content,
.feature-card,
.destination-card {
  padding: 22px;
}

.post-card h3,
.feature-card h3,
.destination-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

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

.post-meta {
  color: var(--cd-muted);
  font-size: .9rem;
  margin-bottom: 12px;
}

.trip-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trip-pill {
  background: var(--cd-cream);
  border: 1px solid var(--cd-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--cd-blue-dark);
  font-size: .85rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.feature-card {
  box-shadow: none;
}

.feature-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.cta {
  background: var(--cd-blue-dark);
  color: white;
  border-radius: calc(var(--cd-radius) + 8px);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--cd-shadow);
}

.cta h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.04em;
}

.cta p {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 720px;
}

.site-main {
  padding-bottom: 70px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.entry-header {
  margin: 54px 0 28px;
}

.page-title,
.entry-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.entry-content {
  font-size: 1.08rem;
}

.entry-content > * {
  max-width: 780px;
}

.entry-content > .alignwide {
  max-width: 1040px;
}

.entry-content h2,
.entry-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.entry-content h2 {
  margin-top: 2em;
  font-size: 2rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.15em;
}

.entry-content blockquote {
  border-left: 5px solid var(--cd-terracotta);
  padding-left: 18px;
  color: var(--cd-blue-dark);
  font-size: 1.25rem;
  margin-left: 0;
}

.post-navigation,
.posts-navigation {
  margin: 48px 0;
}

.sidebar {
  background: white;
  border: 1px solid var(--cd-line);
  border-radius: var(--cd-radius);
  padding: 22px;
  box-shadow: var(--cd-shadow);
  position: sticky;
  top: 104px;
}

.sidebar .widget {
  margin-bottom: 28px;
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

.sidebar h2,
.sidebar h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.site-footer {
  margin-top: 70px;
  background: var(--cd-ink);
  color: rgba(255,255,255,.78);
}

.footer-inner {
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: white;
}

.calendar-note,
.empty-state {
  padding: 28px;
  background: var(--cd-cream);
  border: 1px dashed var(--cd-line);
  border-radius: var(--cd-radius);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.photo-grid .wp-block-image,
.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .site-main,
  .wrap,
  .hero-inner {
    width: min(var(--cd-max), calc(100% - 24px));
  }

  .hero {
    min-height: 460px;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .main-navigation ul {
    gap: 10px 14px;
  }
}
