/* Magazine-style blog — posts index, archives, single */

.sw-mag {
  --bg: #1c1c1c;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --gold: #e8c547;
  --border: rgba(255, 255, 255, 0.14);

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sw-mag a {
  color: inherit;
  text-decoration: none;
}

.sw-mag-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(28, 28, 28, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.sw-mag-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-mag-nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sw-mag-nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sw-mag-nav-links a:hover {
  color: var(--gold);
}

/* Journal index — hero (Posts page featured image + Book Phylicia headline) */
.sw-mag-journal-hero {
  position: relative;
  min-height: min(54vh, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 88px 24px 56px;
  margin: 0;
}

.sw-mag-journal-hero--noimg {
  min-height: 38vh;
  background: linear-gradient(165deg, #2f2f2f 0%, #1c1c1c 50%, #121212 100%);
}

.sw-mag-journal-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.sw-mag-journal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  filter: grayscale(1) saturate(0.55) brightness(0.9) contrast(1.05);
  opacity: 0.48;
}

.sw-mag-journal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 22%, transparent 0%, rgba(28, 28, 28, 0.4) 55%, rgba(28, 28, 28, 0.92) 100%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.5) 0%, transparent 40%, transparent 58%, rgba(28, 28, 28, 0.88) 100%);
}

.sw-mag-journal-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.05) 2px,
      rgba(0, 0, 0, 0.05) 3px
    );
}

.sw-mag-journal-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
}

.sw-mag-journal-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.sw-mag-journal-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 5rem);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.55);
}

.sw-mag-journal-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sw-mag-journal-prose {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.sw-mag-journal-prose p {
  margin: 0 0 0.85em;
}

.sw-mag-feed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.75rem;
  max-width: 520px;
}

.sw-mag-feed-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 197, 71, 0.55), transparent);
  max-width: 160px;
}

.sw-mag-feed-icon {
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 0.2em;
}

.sw-mag-journal-main {
  padding-top: 40px;
}

.sw-mag-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.sw-mag-empty {
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--muted);
  margin: 3rem 0;
}

.sw-mag-subdeck {
  max-width: 560px;
  margin: 1rem auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
}

.sw-mag-subdeck p {
  margin: 0;
}

.sw-mag-archive-head {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-top: 70px;
}

.sw-mag-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.sw-mag-archive-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.sw-mag-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 32px;
}

@media (max-width: 900px) {
  .sw-mag-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* Lead story — first post on blog home */
.sw-mag-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 2.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .sw-mag-lead {
    grid-template-columns: 1fr;
  }
}

.sw-mag-lead-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.sw-mag-lead-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
}

.sw-mag-lead-visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0.6) brightness(0.88) contrast(1.06);
  transition: transform 0.55s ease, filter 0.45s ease, opacity 0.35s ease;
}

.sw-mag-lead a:hover .sw-mag-lead-visual img {
  transform: scale(1.04);
  filter: grayscale(0.25) saturate(0.85) brightness(0.95) contrast(1.02);
  opacity: 1;
}

.sw-mag-lead-body .sw-mag-card-meta {
  margin-bottom: 0.65rem;
}

.sw-mag-lead-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: none;
  color: #fff;
}

.sw-mag-lead-link {
  display: block;
}

.sw-mag-lead-title a {
  color: #fff;
  text-decoration: none;
}

.sw-mag-lead-title a:hover {
  color: var(--gold);
}

.sw-mag-card-title {
  color: #fff;
}

.sw-mag-card-title a {
  color: #fff;
  text-decoration: none;
}

.sw-mag-card-title a:hover {
  color: var(--gold);
}

.sw-mag-lead-excerpt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.sw-mag-read {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
}

/* Magazine cards — alternating emphasis */
.sw-mag-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (max-width: 900px) {
  .sw-mag-card {
    width: 100%;
  }
}

.sw-mag-card-visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #141414;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sw-mag-card:hover .sw-mag-card-visual {
  border-color: rgba(232, 197, 71, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.sw-mag-card-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 50%, rgba(0, 0, 0, 0.38) 100%);
}

.sw-mag-card-visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) saturate(0.55) brightness(0.88);
  transition: transform 0.45s ease, filter 0.35s ease;
}

.sw-mag-card a:hover .sw-mag-card-visual img {
  transform: scale(1.05);
  filter: grayscale(0.2) saturate(0.85) brightness(0.95);
}

.sw-mag-card {
  transition: transform 0.3s ease;
}

@media (min-width: 901px) {
  .sw-mag-card:hover {
    transform: translateY(-5px);
  }
}

.sw-mag-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.sw-mag-card-meta {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.sw-mag-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.sw-mag-card-meta-main {
  flex: 1;
  min-width: 0;
}

.sw-mag-read-time {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.sw-mag-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.sw-mag-card-excerpt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 0.75rem;
  flex: 1;
}

.sw-mag-pagination {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.sw-mag-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.sw-mag-pagination li {
  display: inline-block;
  margin: 0;
}

.sw-mag-pagination a,
.sw-mag-pagination span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.sw-mag-pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sw-mag-pagination .current {
  border-color: var(--gold);
  color: var(--gold);
}

/* Single post — hero + title overlay (luxury / dialogue-style fade) */
.sw-mag-single-article {
  margin: 0;
}

.sw-mag-single-hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 48px;
  margin: 0;
}

.sw-mag-single-hero--noimg {
  min-height: 42vh;
  background: linear-gradient(160deg, #2a2a2a 0%, #1c1c1c 45%, #141414 100%);
}

.sw-mag-single-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #141414;
}

.sw-mag-single-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.06);
  filter: grayscale(1) brightness(1.02) opacity(0.42);
}

.sw-mag-single-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 20%, transparent 0%, rgba(28, 28, 28, 0.35) 50%, rgba(28, 28, 28, 0.88) 100%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.55) 0%, transparent 42%, transparent 55%, rgba(28, 28, 28, 0.92) 100%);
}

.sw-mag-single-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.sw-mag-single-hero-kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

/* Same voice as homepage “Book Phylicia” */
.sw-mag-single-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 5rem);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}

.sw-mag-single-hero-meta {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.sw-mag-single-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.sw-mag-single-content {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.92);
}

.sw-mag-single-content p {
  margin: 0 0 1.1em;
}

.sw-mag-single-content h2,
.sw-mag-single-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.75em 0 0.5em;
  color: #fff;
}

.sw-mag-single-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.sw-mag-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sw-mag-back {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sw-mag-back a {
  color: var(--muted);
}

.sw-mag-back a:hover {
  color: var(--gold);
}

/* Comments */
.sw-mag-comments {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.sw-mag-comments-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 1.5rem;
  text-align: center;
  color: #fff;
}

.sw-mag-comments .navigation.comment-navigation {
  margin: 0 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-mag-comments .navigation.comment-navigation a {
  color: var(--gold);
}

.sw-mag-comments .comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.sw-mag-comments .comment-list .children {
  list-style: none;
  margin: 1rem 0 0 1.25rem;
  padding: 0;
}

.sw-mag-comments .comment-list li.comment {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sw-mag-comments .comment-list .comment-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.sw-mag-comments .comment-list .comment-meta {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.sw-mag-comments .comment-list .comment-author .fn,
.sw-mag-comments .comment-list .comment-author .fn a {
  font-style: normal;
  color: var(--gold);
  text-decoration: none;
}

.sw-mag-comments .comment-list .reply a {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  display: inline-block;
}

.sw-mag-comments .comment-respond {
  margin-top: 2rem;
}

.sw-mag-comments .comment-reply-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}

.sw-mag-comments .comment-notes,
.sw-mag-comment-notes {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.sw-mag-comments .comment-form p {
  margin: 0 0 1rem;
}

.sw-mag-comments .comment-form label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.sw-mag-comments .comment-form input[type="text"],
.sw-mag-comments .comment-form input[type="email"],
.sw-mag-comments .comment-form input[type="url"],
.sw-mag-comments .comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.sw-mag-comments .comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sw-mag-comment-submit {
  margin-top: 0.5rem;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg);
  border: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
}

.sw-mag-comment-submit:hover {
  filter: brightness(1.06);
}

.sw-mag-comments-closed {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

/* Honeypot — off-screen (comment-honeypot.php) */
.sw-cmt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
