/*
Theme Name: Sold on Danielle Legacy
Theme URI: https://legacy.soldondanielle.cloud/
Author: Sold on Danielle
Description: A polished archive theme for Danielle Edwards legacy WordPress content.
Version: 1.0.1
Text Domain: sd-legacy
*/

:root {
  --sd-bg: #0d1626;
  --sd-panel: #121f33;
  --sd-panel-2: #173457;
  --sd-text: #f4f7fb;
  --sd-muted: #aebbd0;
  --sd-soft: #d6e3f4;
  --sd-gold: #e1bd35;
  --sd-gold-2: #ffd84d;
  --sd-line: rgba(214, 227, 244, 0.16);
  --sd-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  --sd-radius: 8px;
  --sd-content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sd-bg);
  color: var(--sd-text);
  font-family: "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(225, 189, 53, 0.08), transparent 30rem),
    linear-gradient(180deg, #0b1424 0%, #101b2d 42%, #0d1626 100%);
  color: var(--sd-text);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--sd-gold);
  color: #0d1626;
}

.site-shell {
  min-height: 100vh;
}

.site-topbar {
  border-bottom: 1px solid var(--sd-line);
  background: rgba(18, 31, 51, 0.88);
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.site-wrap {
  width: min(var(--sd-content), calc(100% - 2rem));
  margin: 0 auto;
}

.site-topbar .site-wrap,
.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-topbar a {
  color: var(--sd-soft);
  text-decoration: none;
}

.site-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.55rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sd-line);
  background: rgba(10, 19, 34, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 15rem;
  padding: 1rem 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(225, 189, 53, 0.55);
  color: var(--sd-gold);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0;
  transform: rotate(-8deg);
}

.brand__text {
  display: grid;
  gap: 0.1rem;
}

.brand__name {
  color: var(--sd-text);
  font-size: 1.1rem;
  font-weight: 850;
}

.brand__role {
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 7px;
  color: var(--sd-muted);
  font-size: 0.92rem;
  font-weight: 750;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a {
  background: rgba(225, 189, 53, 0.14);
  color: var(--sd-gold-2);
}

.legacy-notice {
  border-bottom: 1px solid rgba(225, 189, 53, 0.22);
  background: rgba(225, 189, 53, 0.1);
  color: var(--sd-soft);
  font-size: 0.86rem;
}

.legacy-notice .site-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.72rem 0;
}

.legacy-notice strong {
  color: var(--sd-gold-2);
  font-weight: 950;
  text-transform: uppercase;
}

.legacy-notice span {
  flex: 1 1 28rem;
}

.legacy-notice a {
  border: 1px solid rgba(225, 189, 53, 0.5);
  border-radius: 6px;
  color: var(--sd-gold-2);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.38rem 0.62rem;
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--sd-line);
  background:
    linear-gradient(90deg, rgba(13, 22, 38, 0.98), rgba(20, 53, 88, 0.76)),
    var(--sd-panel-2);
}

.hero .site-wrap {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(225, 189, 53, 0.7);
  border-radius: 999px;
  color: var(--sd-gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.45rem 0.8rem;
  text-transform: uppercase;
}

.hero h1,
.entry-title,
.archive-title {
  margin: 0;
  color: var(--sd-text);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero p,
.archive-description,
.entry-subtitle {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--sd-muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.main {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(18, 31, 51, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

.post-card:hover,
.post-card:focus-within {
  border-color: rgba(225, 189, 53, 0.55);
  transform: translateY(-2px);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  background: rgba(214, 227, 244, 0.08);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem;
}

.post-card__meta,
.entry-meta,
.sidebar-title {
  color: var(--sd-gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0;
  color: var(--sd-text);
  font-size: 1.25rem;
  line-height: 1.15;
}

.post-card p {
  margin: 0;
  color: var(--sd-muted);
}

.entry-panel,
.sidebar-panel {
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(18, 31, 51, 0.86);
  box-shadow: var(--sd-shadow);
}

.entry-panel {
  overflow: hidden;
}

.entry-header {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--sd-line);
  background:
    linear-gradient(135deg, rgba(23, 52, 87, 0.76), rgba(13, 22, 38, 0.94)),
    var(--sd-panel);
}

.entry-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--sd-soft);
  font-size: 1.04rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--sd-text);
  line-height: 1.12;
}

.entry-content h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.entry-content h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.entry-content p,
.entry-content li {
  color: var(--sd-soft);
}

.entry-content a {
  color: var(--sd-gold-2);
}

.entry-content img {
  border-radius: var(--sd-radius);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.entry-content figure {
  margin: 2rem 0;
}

.entry-content figcaption {
  margin-top: 0.6rem;
  color: var(--sd-muted);
  font-size: 0.9rem;
  text-align: center;
}

.entry-content blockquote {
  margin: 2rem 0;
  border-left: 4px solid var(--sd-gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--sd-text);
  font-size: 1.2rem;
  font-weight: 750;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--sd-line);
  padding: 0.75rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-panel {
  padding: 1.25rem;
}

.sidebar-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--sd-muted);
}

.button,
.wp-block-button__link,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 189, 53, 0.82);
  border-radius: 7px;
  background: var(--sd-gold);
  color: #0d1626;
  font-weight: 900;
  line-height: 1;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
.page-numbers.current {
  background: var(--sd-gold-2);
  color: #0d1626;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--sd-line);
  background: rgba(10, 19, 34, 0.92);
  color: var(--sd-muted);
}

.site-footer .site-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.site-footer a {
  color: var(--sd-soft);
  text-decoration: none;
}

.legacy-home-hero .site-wrap {
  padding-bottom: clamp(2.75rem, 5vw, 4.75rem);
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.legacy-hero-actions a,
.legacy-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 189, 53, 0.55);
  border-radius: 7px;
  color: var(--sd-gold-2);
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none !important;
}

.legacy-hero-actions a:first-child {
  background: var(--sd-gold);
  color: #0d1626;
}

.legacy-home {
  padding-top: 2rem;
}

.legacy-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.legacy-directory-card {
  display: grid;
  gap: 0.55rem;
  min-height: 11rem;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: linear-gradient(180deg, rgba(23, 52, 87, 0.82), rgba(18, 31, 51, 0.9));
  box-shadow: var(--sd-shadow);
  padding: 1.15rem;
  text-decoration: none !important;
}

.legacy-directory-card:hover,
.legacy-directory-card:focus {
  border-color: rgba(225, 189, 53, 0.62);
}

.legacy-directory-card__count {
  color: var(--sd-gold-2);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  line-height: 0.9;
}

.legacy-directory-card__label {
  color: var(--sd-text);
  font-size: 1.05rem;
  font-weight: 900;
}

.legacy-directory-card__desc {
  color: var(--sd-muted);
  font-size: 0.9rem;
}

.legacy-section {
  margin-top: 2rem;
  border-top: 1px solid var(--sd-line);
  padding-top: 2rem;
}

.legacy-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.legacy-section__head h2 {
  margin: 0.2rem 0 0;
  color: var(--sd-text);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.04;
}

.legacy-section__head p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0.55rem 0 0;
  color: var(--sd-muted);
}

.legacy-section__head > span {
  color: var(--sd-gold-2);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.legacy-page-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.legacy-page-feature {
  display: grid;
  gap: 0.45rem;
  min-height: 8.5rem;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(18, 31, 51, 0.78);
  padding: 1rem;
  text-decoration: none;
}

.legacy-page-feature strong {
  color: var(--sd-text);
  font-size: 1rem;
  line-height: 1.2;
}

.legacy-page-feature span {
  color: var(--sd-muted);
  font-size: 0.88rem;
}

.legacy-page-directory,
.legacy-listing-directory {
  columns: 3 16rem;
  column-gap: 1.25rem;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(18, 31, 51, 0.72);
  padding: 1rem;
  margin-top: 1rem;
}

.legacy-page-directory a,
.legacy-listing-directory a {
  display: block;
  break-inside: avoid;
  color: var(--sd-soft);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.38rem 0;
  text-decoration: none;
}

.legacy-page-directory a:hover,
.legacy-page-directory a:focus,
.legacy-listing-directory a:hover,
.legacy-listing-directory a:focus {
  color: var(--sd-gold-2);
}

.legacy-more-note {
  color: var(--sd-muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

@media (max-width: 920px) {
  .site-topbar .site-wrap,
  .site-header .site-wrap,
  .content-grid {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-overview,
  .legacy-page-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-section__head {
    display: block;
  }

  .sidebar {
    margin-top: 2rem;
  }
}

@media (max-width: 640px) {
  .site-wrap {
    width: min(100% - 1.25rem, var(--sd-content));
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .legacy-overview,
  .legacy-page-feature-grid {
    grid-template-columns: 1fr;
  }

  .legacy-page-directory,
  .legacy-listing-directory {
    columns: 1;
  }

  .hero .site-wrap,
  .main {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .hero h1,
  .entry-title,
  .archive-title {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }
}
