/* ==========================================================
   CRYSTALIER — thecrystalier.com — "Lamplit Study" redesign
   Palette: Warm Cream #F7EFE2 · Hearth Plum #43323F · Amethyst #6B5890
            Warm Gold #B08D4F · Candle Gold #D4B678 · Warm Ink #4A3E45
   Type: Cormorant Garamond (display) · Lora (body)
   ========================================================== */

:root {
  --cream: #F7EFE2;
  --cream-deep: #F1E6D3;
  --card: #FDF8EE;
  --plum: #43323F;
  --plum-deep: #372935;
  --amethyst: #6B5890;
  --amethyst-deep: #5A477A;
  --gold: #B08D4F;
  --gold-soft: #D4B678;
  --ink: #4A3E45;
  --ink-soft: #6E6067;
  --rule: rgba(176, 141, 79, 0.4);
  --shadow: 0 2px 18px rgba(90, 66, 60, 0.10);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background:
    radial-gradient(ellipse 1200px 500px at 50% -140px, rgba(212, 182, 120, 0.20), transparent 70%),
    var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amethyst-deep); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--amethyst); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--plum-deep), var(--plum));
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.22em;
  color: #F5EBDB;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-tag {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a {
  color: #E4D8CC;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #FFFFFF;
  border-bottom-color: var(--gold-soft);
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(ellipse 1000px 460px at 50% 115%, rgba(212, 182, 120, 0.30), transparent 65%),
    radial-gradient(ellipse 900px 420px at 50% -80px, rgba(107, 88, 144, 0.45), transparent 70%),
    linear-gradient(180deg, var(--plum-deep) 0%, var(--plum) 70%, #4E3A48 100%);
  color: #F5EBDB;
  text-align: center;
  padding: 64px 24px 0;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.22;
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 20px;
  color: #DCCFC2;
}
.hero .curator { margin-top: 26px; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.hero-banner { display: block; width: min(860px, 96%); height: auto; margin: 34px auto 0; }

/* ---------- Specimen labels ---------- */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 36px;
  color: var(--plum);
  margin-top: 10px;
}
.section-head p { max-width: 640px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid rgba(176, 141, 79, 0.30);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(90, 66, 60, 0.16); }
.card .eyebrow { font-size: 11.5px; }
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
  margin: 14px 0 12px;
}
.card h3 a { color: var(--plum); text-decoration: none; }
.card h3 a:hover { color: var(--amethyst-deep); }
.card p { font-size: 16.5px; color: var(--ink-soft); flex-grow: 1; }
.card .readmore {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amethyst-deep);
}

/* ---------- Guide band ---------- */
.guide-band {
  background:
    radial-gradient(ellipse 800px 340px at 50% 130%, rgba(212, 182, 120, 0.28), transparent 65%),
    linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #F5EBDB;
  padding: 64px 24px;
  text-align: center;
}
.guide-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 34px;
  max-width: 700px;
  margin: 14px auto 16px;
}
.guide-band p { max-width: 600px; margin: 0 auto 28px; color: #DCCFC2; }
.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #33262F;
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 500;
  padding: 15px 34px;
  letter-spacing: 0.04em;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(60, 40, 30, 0.28);
}
.btn-gold:hover { background: var(--gold-soft); color: #33262F; }

/* ---------- Article ---------- */
.article-head {
  background: linear-gradient(180deg, var(--card), var(--cream));
  border-bottom: 1px solid var(--rule);
  padding: 58px 24px 46px;
  text-align: center;
}
.article-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.25;
  color: var(--plum);
  max-width: 820px;
  margin: 16px auto 18px;
}
.byline { font-size: 15px; color: var(--ink-soft); letter-spacing: 0.04em; }
.byline strong { color: var(--amethyst-deep); font-weight: 600; }
.article-art { width: 230px; height: auto; margin: 24px auto 4px; display: block; opacity: 0.92; }

/* ---------- Article + sidebar layout ---------- */
.article-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.article-body { max-width: 720px; margin: 0; padding: 0; }
.article-body p { margin-bottom: 26px; }
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--plum);
  margin: 44px 0 18px;
}
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--plum);
  margin: 34px 0 14px;
}
.article-body ul, .article-body ol { margin: 0 0 26px 26px; }
.article-body li { margin-bottom: 12px; }

.sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 26px; }
.side-card {
  background: var(--card);
  border: 1px solid rgba(176, 141, 79, 0.30);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.side-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 23px;
  color: var(--plum);
  margin-bottom: 12px;
}
.side-card .eyebrow { font-size: 11px; margin-bottom: 8px; }
.author-card { text-align: center; border-top: 3px solid var(--gold); }
.author-card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 4px auto 16px;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 4px 14px rgba(90, 66, 60, 0.22);
}
.author-card p { font-size: 15.5px; color: var(--ink-soft); }
.author-card .sig { margin-top: 12px; font-style: italic; color: var(--gold); font-size: 15px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(176, 141, 79, 0.22); }
.side-links li:last-child { border-bottom: none; padding-bottom: 0; }
.side-links a {
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--plum);
}
.side-links a:hover { color: var(--amethyst-deep); }
.side-guide { background: linear-gradient(180deg, var(--plum), var(--plum-deep)); color: #F5EBDB; text-align: center; border: none; }
.side-guide h4 { color: #F5EBDB; }
.side-guide p { font-size: 15px; color: #DCCFC2; margin-bottom: 18px; }
.side-guide .btn-gold { font-size: 15px; padding: 12px 22px; }

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .article-body { max-width: 720px; margin: 0 auto; }
  .sidebar { position: static; max-width: 480px; margin: 0 auto; width: 100%; }
}

.stone-divider {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 40px auto;
  width: 120px;
}
.sources {
  background: var(--card);
  border: 1px solid rgba(176, 141, 79, 0.30);
  border-radius: 10px;
  padding: 24px 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 44px 0 8px;
}
.sources h4 {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: 'Lora', serif;
}
.note-disclaimer {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold-soft);
  padding: 4px 0 4px 16px;
  margin: 32px 0;
}

/* ---------- Category listing ---------- */
.list-item {
  background: var(--card);
  border: 1px solid rgba(176, 141, 79, 0.30);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 22px;
}
.list-item h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 27px; line-height: 1.3; margin-bottom: 10px; }
.list-item h3 a { color: var(--plum); text-decoration: none; }
.list-item h3 a:hover { color: var(--amethyst-deep); }
.list-item p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Legal / plain pages ---------- */
.plain { max-width: 780px; margin: 0 auto; padding: 60px 24px 70px; }
.plain h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--plum);
  margin-bottom: 8px;
}
.plain .updated { font-size: 15px; color: var(--ink-soft); margin-bottom: 34px; }
.plain h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 27px;
  color: var(--plum);
  margin: 38px 0 14px;
}
.plain p, .plain li { margin-bottom: 18px; font-size: 17.5px; }
.plain ul { margin-left: 26px; }
.about-portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 4px 14px rgba(90, 66, 60, 0.22);
  margin: 6px 0 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--plum), var(--plum-deep));
  color: #C9BCB0;
  margin-top: 80px;
  padding: 52px 24px 40px;
  font-size: 15px;
  border-top: 2px solid var(--gold);
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid rgba(212,182,120,0.3); }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 0.2em; color: #F5EBDB; text-transform: uppercase; }
.footer-sign { margin-top: 10px; font-style: italic; color: var(--gold-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: #E4D8CC; text-decoration: none; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-legal { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: #C9BCB0; text-decoration: none; }
.footer-legal a:hover { color: #FFFFFF; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .section { padding: 52px 0; }
}
