/* =============================================
   wallhaven.site — Shared Stylesheet
   Light editorial / collections theme
   ============================================= */

:root {
  --bg:           #f7f6f2;
  --surface:      #ffffff;
  --surface2:     #f0efe9;
  --border:       #e2e0d8;
  --accent:       #2563eb;
  --accent-light: #eff4ff;
  --text:         #1a1a18;
  --muted:        #62605a;
  --light-muted:  #9a9890;
  --header-bg:    #1e1e1c;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 28px rgba(0,0,0,.13);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
}

/* ---- HEADER ---- */
header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.logo-tag {
  font-family: system-ui, sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #a0a09a; margin-left: 10px;
  padding: 2px 7px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
}
nav { display: flex; gap: 2px; }
nav a {
  font-family: system-ui, sans-serif;
  font-size: 13px; font-weight: 500;
  color: #a0a09a; text-decoration: none;
  padding: 7px 12px; border-radius: 6px;
  transition: color .15s, background .15s;
}
nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav a.active { color: #fff; }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 70px 28px 52px;
  text-align: center;
  max-width: 680px; margin: 0 auto;
}
.eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.page-sub {
  font-family: system-ui, sans-serif;
  font-size: .98rem; color: var(--muted);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.6;
}

/* ---- SEARCH ---- */
.search-wrap { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.search-input {
  flex: 1; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: system-ui, sans-serif; font-size: .95rem;
  color: var(--text); background: var(--surface);
  outline: none; transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--light-muted); }
.search-btn {
  padding: 12px 20px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-family: system-ui, sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.search-btn:hover { background: #1d4ed8; }

/* ---- SECTION ---- */
.section {
  max-width: 1160px; margin: 0 auto 72px;
  padding: 0 28px;
}
.section-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: system-ui, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--light-muted);
}
.see-all {
  font-family: system-ui, sans-serif;
  font-size: 13px; color: var(--accent);
  text-decoration: none;
}
.see-all:hover { text-decoration: underline; }

/* ---- COLLECTION CARD ---- */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.coll-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.coll-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.coll-thumb {
  height: 176px; display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 2px;
  background: var(--border); overflow: hidden;
}
.coll-thumb-img { overflow: hidden; }
.coll-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coll-thumb-img.ph {
  background: linear-gradient(135deg, #eae8e2 0%, #d8d5ce 100%);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.8} 50%{opacity:1} }
.coll-body { padding: 18px 20px; flex: 1; }
.coll-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.coll-meta {
  font-family: system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.coll-desc {
  font-family: system-ui, sans-serif;
  font-size: .85rem; color: var(--muted); line-height: 1.55;
}

/* ---- WALLPAPER GRID ---- */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
}
.wp-card {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--border); box-shadow: var(--shadow-sm);
  text-decoration: none; display: block;
  transition: transform .15s, box-shadow .15s;
}
.wp-card:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
.wp-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #eae8e2 0%, #d8d5ce 100%);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ---- THEME TAGS ---- */
.theme-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.theme-tag {
  font-family: system-ui, sans-serif;
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: all .15s;
}
.theme-tag:hover {
  border-color: var(--accent);
  color: var(--accent); background: var(--accent-light);
}

/* ---- CONTENT PROSE ---- */
.content {
  max-width: 740px; margin: 0 auto 64px; padding: 0 28px;
  font-family: system-ui, sans-serif;
}
.content h2 {
  font-family: Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.01em; margin: 40px 0 12px;
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 6px; }
.content p { color: var(--muted); margin-bottom: 12px; font-size: .95rem; }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content ul { margin: 0 0 12px 22px; color: var(--muted); }
.content li { margin-bottom: 6px; font-size: .95rem; }

/* ---- FAQ ---- */
.faq { max-width: 740px; margin: 0 auto 64px; padding: 0 28px; font-family: system-ui, sans-serif; }
.faq h2 {
  font-family: Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 20px;
}
details {
  border: 1.5px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; background: var(--surface);
}
summary {
  padding: 15px 20px; cursor: pointer;
  font-weight: 600; font-size: .9rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 300; }
details[open] summary::after { content: '−'; }
.faq-body { padding: 0 20px 16px; font-size: .9rem; color: var(--muted); }
.faq-body a { color: var(--accent); }

/* ---- FOOTER ---- */
footer {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 28px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-links a {
  font-family: system-ui, sans-serif;
  font-size: 13px; color: #6a6a64;
  text-decoration: none; padding: 4px 10px; border-radius: 6px;
  transition: color .15s;
}
.footer-links a:hover { color: #ccc; }
.footer-copy {
  font-family: system-ui, sans-serif;
  font-size: 12px; color: #4a4a46;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { display: none; }
  .coll-grid { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.8rem; }
  .page-hero { padding: 48px 16px 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
