/*
Theme Name: Selene Wulf
Theme URI: https://selenewulf.com
Author: Selene Wulf
Description: Author site for Selene Wulf. Standalone theme, no builder, no framework. Page copy lives in front-page.php under version control and is never edited in wp-admin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: selene-wulf
*/

:root {
  --ground:   #1A1016;
  --panel:    #22141C;
  --raised:   #2C1A24;
  --line:     #38242F;
  --line-lit: #4A3340;
  --plum:     #8E4F6E;
  --plum-dim: #5E3F50;
  --cream:    #F4EDE8;
  --body:     #DACAD2;
  --body-dim: #CDBDC5;
  --muted:    #B9A6B0;
  --faint:    #8C7681;
  --mauve:    #C8899F;
  --nav:      #D9C8D0;
  --gold:     #E2A864;
  --gold-lit: #F0C795;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1180px;
  --gut:   40px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover, a:focus { color: var(--gold-lit); }

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sw-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ground);
  padding: 12px 18px; font-weight: 600; z-index: 100;
}
.sw-skip:focus { left: 12px; top: 12px; }

.sw-shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- eyebrow + headings ---------- */
.sw-eyebrow {
  margin: 0 0 14px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve);
}
.sw-h2 {
  margin: 0 0 20px;
  font-family: var(--serif); font-size: clamp(34px, 5vw, 48px);
  font-weight: 600; line-height: 1.12; color: var(--cream);
}
.sw-lede {
  margin: 0 0 52px;
  font-size: 18px; line-height: 1.7; color: var(--body-dim); max-width: 660px;
}

/* ---------- buttons ---------- */
.sw-btn, .sw-btn-ghost {
  display: inline-block;
  font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 2px;
  text-decoration: none; border: 1px solid transparent;
}
.sw-btn { color: var(--ground); background: var(--gold); }
.sw-btn:hover, .sw-btn:focus { color: var(--ground); background: var(--gold-lit); }
.sw-btn-ghost { color: var(--cream); font-weight: 500; border-color: var(--line-lit); }
.sw-btn-ghost:hover, .sw-btn-ghost:focus { color: var(--cream); border-color: var(--mauve); }
.sw-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.sw-header {
  max-width: var(--shell); margin: 0 auto;
  padding: 28px var(--gut);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.sw-wordmark {
  font-family: var(--serif); font-size: 25px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--cream); text-decoration: none;
}
.sw-wordmark:hover, .sw-wordmark:focus { color: var(--cream); }
.sw-nav { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.sw-nav a { font-size: 15px; color: var(--nav); text-decoration: none; }
.sw-nav a:hover, .sw-nav a:focus { color: var(--cream); }
.sw-nav .sw-nav-cta {
  color: var(--ground); background: var(--gold);
  padding: 11px 20px; border-radius: 2px; font-weight: 600;
}
.sw-nav .sw-nav-cta:hover, .sw-nav .sw-nav-cta:focus { color: var(--ground); background: var(--gold-lit); }

/* ---------- hero ---------- */
.sw-hero {
  max-width: var(--shell); margin: 0 auto;
  padding: 56px var(--gut) 88px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.sw-hero-copy { flex: 999 1 420px; min-width: 0; }
.sw-hero-art  { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.sw-hero-art img {
  width: 100%; max-width: 380px;
  border-radius: 3px; box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.sw-h1 {
  margin: 0 0 26px;
  font-family: var(--serif); font-size: clamp(46px, 7.2vw, 76px);
  line-height: 1.02; font-weight: 600; color: var(--cream);
}
.sw-h1 em { font-style: italic; color: var(--mauve); }
.sw-hero-sub {
  margin: 0 0 34px;
  font-size: 18px; line-height: 1.65; color: var(--body-dim); max-width: 480px;
}
.sw-hero-sub strong { color: var(--cream); font-weight: 600; }

/* ---------- banded sections ---------- */
.sw-band { background: var(--panel); border-top: 1px solid var(--line); }
.sw-band-serial { border-bottom: 1px solid var(--line); }
.sw-band > .sw-shell { padding-top: 84px; padding-bottom: 84px; }

/* ---------- serial cards ---------- */
.sw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sw-card {
  background: var(--ground); border: 1px solid var(--line);
  padding: 32px; border-radius: 3px;
}
.sw-card p.sw-card-num {
  /* Must outrank `.sw-card p` below, which is (0,1,1) and would otherwise
     win on font-size and color. */
  margin: 0 0 12px;
  font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1;
  /* Cormorant ships oldstyle figures by default, which render these at about
     a third of their set size. Force lining figures so the numeral reads. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--gold);
}
.sw-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--cream); }
.sw-card p  { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.sw-card a  { font-size: 15px; font-weight: 500; text-decoration: none; }

/* ---------- about ---------- */
.sw-about {
  max-width: var(--shell); margin: 0 auto;
  padding: 96px var(--gut);
  display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start;
}
.sw-about-photo { flex: 1 1 300px; min-width: 0; }
.sw-about-photo img { width: 100%; max-width: 360px; border-radius: 3px; display: block; }
.sw-about-copy { flex: 999 1 460px; min-width: 0; }
.sw-about-copy > p { margin: 0 0 20px; font-size: 19px; line-height: 1.72; color: var(--body); }
.sw-about-copy > p:last-child { margin-bottom: 0; }
.sw-about-nophoto { max-width: 720px; }

/* ---------- perks + pricing ---------- */
.sw-perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px; margin-bottom: 52px;
}
.sw-perk { border-top: 2px solid var(--plum); padding-top: 22px; }
.sw-perk h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--cream); }
.sw-perk p  { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

.sw-tiers { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.sw-tier {
  flex: 1 1 220px;
  background: var(--ground); border: 1px solid var(--line);
  padding: 28px; border-radius: 3px;
}
.sw-tier-founding { background: var(--raised); border-color: var(--plum); }
.sw-tier-price {
  margin: 0 0 6px;
  font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1.1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--cream);
}
.sw-tier-price span { font-family: var(--sans); font-size: 15px; color: var(--faint); }
.sw-tier p:last-child { margin: 0; font-size: 14px; color: var(--muted); }
.sw-tier-flag {
  margin: 0 0 6px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.sw-tier-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- footer ---------- */
.sw-footer { border-top: 1px solid var(--line); }
.sw-footer > .sw-shell {
  padding-top: 56px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-start;
}
.sw-footer-brand { flex: 1 1 280px; min-width: 0; }
.sw-footer-mark {
  margin: 0 0 10px;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.06em; color: var(--cream);
}
.sw-footer-addr { margin: 0; font-size: 14px; line-height: 1.6; color: var(--faint); }
.sw-footer-cols { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 44px; }
.sw-footer-cols h2 {
  margin: 0 0 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); font-weight: 400;
}
.sw-footer-cols p { margin: 0 0 8px; }
.sw-footer-cols a { font-size: 15px; text-decoration: none; color: var(--nav); }
.sw-footer-cols a:hover, .sw-footer-cols a:focus { color: var(--cream); }

/* ---------- interior pages (index.php) ---------- */
.sw-page { max-width: 760px; margin: 0 auto; padding: 72px var(--gut) 96px; }
.sw-page h1 {
  margin: 0 0 28px;
  font-family: var(--serif); font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 600; line-height: 1.1; color: var(--cream);
}
.sw-page-body { font-size: 17px; line-height: 1.75; color: var(--body); }
.sw-page-body h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--cream); margin: 40px 0 14px; }
.sw-page-body h3 { font-size: 19px; font-weight: 600; color: var(--cream); margin: 32px 0 10px; }
.sw-page-body ul, .sw-page-body ol { padding-left: 24px; }
.sw-page-body li { margin-bottom: 8px; }
.sw-page-body blockquote {
  margin: 28px 0; padding-left: 20px;
  border-left: 2px solid var(--plum-dim); color: var(--body-dim);
}
.sw-page-body code {
  background: var(--panel); padding: 2px 6px; border-radius: 2px; font-size: 15px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sw-cards, .sw-perks { grid-template-columns: 1fr; }
  .sw-hero  { padding-top: 32px; padding-bottom: 60px; gap: 44px; }
  .sw-about { padding-top: 68px; padding-bottom: 68px; gap: 44px; }
  .sw-band > .sw-shell { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 620px) {
  :root { --gut: 20px; }
  .sw-header { padding: 22px var(--gut); gap: 16px; }
  .sw-nav { gap: 20px; }
  .sw-hero-art { order: -1; }
  .sw-hero-art img { max-width: 280px; }
  .sw-lede { margin-bottom: 36px; }
  .sw-btn, .sw-btn-ghost { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
