/*
Theme Name: PetPalace
Theme URI: https://thepetspalace.com/
Author: The Pet Palace
Author URI: https://thepetspalace.com/
Description: A black-and-gold luxury theme for The Pet Palace — premium pet brand. Ivory canvas, elegant serif typography, thin gold frames.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petpalace
*/

/* ============ Tokens ============ */
:root {
  --ivory: #FAF7F0;
  --ivory-deep: #F3EEE2;
  --ink: #1A1A1A;
  --ink-soft: #3d3a34;
  --gold: #C9A227;
  --gold-deep: #A8842C;
  --gold-soft: #E9DCAE;
  --gold-faint: rgba(201, 162, 39, 0.35);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto;
  clip: auto; background: var(--ink); color: var(--gold-soft); padding: 10px 16px;
}

/* ============ Header ============ */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--gold-faint); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 26px 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: 0.28em; font-weight: 500; white-space: nowrap; }
.wordmark a { color: var(--ink); }
.wordmark-flourish { display: block; margin-top: 6px; height: 8px; width: 150px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  height: 1px; position: relative; }
.wordmark-flourish::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg); border: 1px solid var(--gold); background: var(--ivory);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 42px; }
.main-nav a { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }
.header-icons { display: flex; gap: 26px; justify-content: flex-end; align-items: center; }
.header-icons a { display: inline-flex; color: var(--ink); }
.header-icons a:hover { color: var(--gold-deep); }
.header-icons svg { width: 24px; height: 24px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--ink);
  font-family: var(--sans); letter-spacing: 0.2em; font-size: 12px; padding: 10px 18px; cursor: pointer; }

/* ============ Hero ============ */
.hero { border-bottom: 1px solid var(--gold-faint); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 56px 72px 8px; max-width: 640px; margin-left: auto; }
.eyebrow {
  display: inline-block; align-self: flex-start;
  border: 1px solid var(--gold); color: var(--gold-deep);
  font-size: 12.5px; letter-spacing: 0.32em; font-weight: 400;
  padding: 10px 20px; margin-bottom: 30px; text-transform: uppercase;
}
.hero-title { font-size: clamp(44px, 5.2vw, 76px); font-weight: 500; line-height: 1.08; margin-bottom: 22px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin-bottom: 38px; font-weight: 300; }
.btn-palace {
  position: relative; display: inline-block; align-self: flex-start;
  background: #111; color: var(--gold-soft);
  font-family: var(--sans); font-size: 16px; letter-spacing: 0.06em; font-weight: 400;
  padding: 18px 52px; border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px #111, inset 0 0 0 4px rgba(201,162,39,0.55);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-palace:hover { background: #1e1a12; color: #fff; }
.hero-media { position: relative; overflow: hidden; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-title { font-size: 42px; color: var(--gold-deep); font-weight: 500; margin-bottom: 12px; }
.section-sub { font-size: 18px; color: var(--ink-soft); }
.gold-rule { width: 64px; height: 1px; background: var(--gold); margin: 22px auto 0; position: relative; }
.gold-rule::after {
  content: ""; position: absolute; left: 50%; top: -3.5px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg); background: var(--ivory); border: 1px solid var(--gold);
}

/* ============ Product cards ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.product-card {
  background: #fffdf8; text-align: center; padding: 26px 26px 30px;
  border: 1px solid rgba(201,162,39,0.6);
  outline: 1px solid rgba(201,162,39,0.3); outline-offset: 6px;
}
.product-card img { border-radius: 2px; margin-bottom: 22px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.product-name { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 2px; }
.product-attr { font-size: 14px; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 10px; }
.product-price { font-family: var(--serif); font-size: 22px; color: var(--gold-deep); font-weight: 600; }
.product-tag { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ============ Journal cards ============ */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.journal-card {
  background: #fffdf8; border: 1px solid rgba(201,162,39,0.45);
  display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,26,26,0.08); }
.journal-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ivory-deep); }
.journal-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.journal-card:hover .thumb img { transform: scale(1.04); }
.journal-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.journal-cat { font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.journal-title { font-size: 24px; margin-bottom: 10px; }
.journal-title a:hover { color: var(--gold-deep); }
.journal-excerpt { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.journal-meta { margin-top: 16px; font-size: 13px; letter-spacing: 0.12em; color: #8a8478; text-transform: uppercase; }
.journal-more { text-align: center; margin-top: 48px; }
.link-gold { font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep);
  border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.link-gold:hover { color: var(--ink); }

/* ============ CTA band ============ */
.cta-band { background: #141414; color: var(--ivory); text-align: center; padding: 76px 28px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.cta-band h2 { font-size: 38px; color: var(--gold-soft); margin-bottom: 12px; }
.cta-band p { color: #cfc9bb; max-width: 560px; margin: 0 auto 30px; }
.btn-gold {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold-soft);
  letter-spacing: 0.22em; font-size: 13px; text-transform: uppercase; padding: 16px 44px;
  box-shadow: inset 0 0 0 3px #141414, inset 0 0 0 4px rgba(201,162,39,0.5);
  transition: background 0.3s ease;
}
.btn-gold:hover { background: #201b10; color: #fff; }

/* ============ Content (posts/pages) ============ */
.content-narrow { max-width: 780px; margin: 0 auto; padding: 70px 28px; }
.page-title, .post-title { font-size: clamp(36px, 4vw, 54px); margin-bottom: 14px; }
.post-meta { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #8a8478; margin-bottom: 30px; }
.post-meta a { color: var(--gold-deep); }
.entry-content h2 { font-size: 32px; margin-top: 2em; }
.entry-content h3 { font-size: 26px; margin-top: 1.8em; }
.entry-content img { border: 1px solid var(--gold-faint); outline: 1px solid rgba(201,162,39,0.25); outline-offset: 6px; margin: 1.6em 0; }
.entry-content blockquote { border-left: 2px solid var(--gold); margin: 1.8em 0; padding: 0.6em 0 0.6em 1.4em;
  font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink-soft); }
.post-thumb { margin-bottom: 36px; }
.post-thumb img { width: 100%; border: 1px solid var(--gold-faint); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--gold-faint); }
.post-nav a { font-family: var(--serif); font-size: 19px; }
.archive-list article { padding: 34px 0; border-bottom: 1px solid var(--gold-faint); }
.archive-list h2 { font-size: 30px; margin-bottom: 8px; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--gold-faint); padding: 60px 0 34px; text-align: center; }
.footer-wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: 0.3em; margin-bottom: 8px; }
.footer-tag { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 26px; }
.footer-nav ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--gold-deep); }
.footer-copy { font-size: 13px; color: #8a8478; letter-spacing: 0.06em; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory);
    border-bottom: 1px solid var(--gold-faint); z-index: 100; }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 10px 32px 24px; }
  .main-nav.open li { border-top: 1px solid var(--gold-faint); }
  .main-nav.open a { display: block; padding: 12px 0; }
  .site-header { position: relative; }
  .menu-toggle { display: inline-block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 28px; margin: 0 auto; text-align: center; align-items: center; }
  .eyebrow { align-self: center; }
  .btn-palace { align-self: center; }
  .hero-media { min-height: 340px; }
  .product-grid, .journal-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: auto 1fr; padding: 18px 20px; gap: 12px; }
  .wordmark { font-size: 16px; letter-spacing: 0.12em; }
  .wordmark-flourish { display: none; }
  .header-icons { display: none; }
  .menu-toggle { justify-self: end; padding: 12px 14px; }
  .section { padding: 60px 0; }
}

/* Mobile font floor — 2026-11-01 */
@media (max-width: 768px) {
  .journal-cat { font-size: 14px !important; }
  .menu-toggle { font-size: 14px !important; }
  .footer-tag { font-size: 14px !important; }
  .footer-copy { font-size: 14px !important; }
  .lss-studio { font-size: 14px !important; }
  .footer-legal { font-size: 14px !important; }
  .footer-legal a { font-size: 14px !important; }
  .eyebrow { font-size: 14px !important; }
  .journal-meta { font-size: 14px !important; }
  .post-meta { font-size: 14px !important; }
  .cookie-consent { font-size: 15px !important; }
  .cookie-consent p, .cookie-consent a { font-size: 15px !important; }
  .cookie-consent button { font-size: 14.5px !important; }
}
