/*
Theme Name: Desert Bloom
Theme URI: https://desertbloom.com
Author: Custom
Description: 沙漠/干旱区风格主题，赭石色、大地色系，多肉植物与干旱景观叙事风格
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desert-bloom
Tags: desert, succulent, southwestern, arid, earth tones
*/

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

:root {
  --sand: #d4a574;
  --terracotta: #b85c38;
  --oxide: #8b3a2a;
  --clay: #c49a6c;
  --cream: #f5ebe0;
  --bone: #faf6f0;
  --sage: #7a8a6a;
  --succulent: #5a7a5a;
  --dust: #a89080;
  --charcoal: #2a2420;
  --dusk: #3d2e2a;
  
  --font-heading: 'Spectral', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

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

/* HEADER */
.site-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--sand);
  background: var(--bone);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding .site-title a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--terracotta);
}

.site-branding .site-desc {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust);
  margin-top: 0.25rem;
}

.main-nav .nav-list {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav .nav-list a {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  transition: color 0.3s ease;
}

.main-nav .nav-list a:hover { color: var(--terracotta); }

/* HERO */
.hero { padding: 5rem 0 3rem; }

.hero__category {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero__excerpt {
  font-size: 1.125rem;
  color: var(--dusk);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero__meta {
  font-size: 0.8125rem;
  color: var(--dust);
}

.hero__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 2rem;
  filter: saturate(0.9) brightness(1.02);
}

/* ARTICLE CONTENT */
.single-article { padding: 3rem 0 5rem; }

.single-article p {
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 1.75rem;
  line-height: 1.85;
}

.single-article h2 {
  font-size: 1.625rem;
  color: var(--terracotta);
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand);
}

.single-article blockquote {
  border-left: 2px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--terracotta);
}

/* SECTION HEADER */
.section-header { margin-bottom: 3rem; text-align: center; }

.section-header__label {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--terracotta);
  margin: 0 auto;
}

/* ARTICLES GRID */
.articles-section { padding: 4rem 0 6rem; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.article-card { display: flex; flex-direction: column; }

.article-card__image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  filter: saturate(0.85) brightness(0.97);
  transition: all 0.5s ease;
}

.article-card:hover .article-card__image {
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

.article-card__body { padding: 1.5rem 0; flex: 1; }

.article-card__category {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.article-card__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.875rem; }
.article-card__title a { color: var(--charcoal); transition: color 0.3s ease; }
.article-card__title a:hover { color: var(--terracotta); }

.article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--dust);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.article-card__read-more {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color 0.3s ease;
}

.article-card__read-more:hover { color: var(--oxide); }

/* FOOTER */
.site-footer {
  background: var(--charcoal);
  padding: 3.5rem 0;
  text-align: center;
}

.site-footer .site-title a {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--bone);
}

.site-footer .caption {
  font-size: 0.8125rem;
  color: var(--sand);
  margin-top: 0.5rem;
  opacity: 0.5;
}

.footer-nav { margin: 1.5rem 0; }

.footer-nav .nav-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav .nav-list a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust);
  transition: color 0.3s ease;
}

.footer-nav .nav-list a:hover { color: var(--sand); }

.site-footer .copyright {
  font-size: 0.75rem;
  color: var(--dust);
  opacity: 0.4;
  margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; text-align: center; }
  .main-nav .nav-list { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .articles-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__image { height: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero__image { height: 220px; }
}

.page-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--charcoal); }
