/* Luxury / Editorial - minimal magazine feel + Shoelace tokens */
:root {
  color-scheme: light;

  /* Palette */
  --paper: #fbf7f0;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --rule: rgba(17, 17, 17, 0.14);
  --gold: #b08a3a;

  /* Shoelace theming */
  --sl-color-primary-500: var(--gold);
  --sl-color-primary-600: #9a7831;
  --sl-color-neutral-0: var(--paper);
  --sl-color-neutral-1000: var(--ink);

  /* Editorial geometry */
  --radius: 12px;
  --col: 740px;
  --max: 1120px;
  --space: 16px;

  /* Focus ring */
  --sl-focus-ring-color: rgba(176, 138, 58, 0.55);

  /* Component rounding */
  --sl-border-radius-small: 10px;
  --sl-border-radius-medium: 12px;
  --sl-border-radius-large: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(176, 138, 58, 0.12), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

.section {
  margin-top: 56px;
}

.section-break {
  height: 1px;
  background: var(--rule);
  margin-top: 56px;
}

.rule {
  height: 1px;
  background: var(--rule);
  margin-top: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 247, 240, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.logo {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  width: 170px;
}

.night-toggle,
.menu-toggle {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-search {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.search-row {
  display: grid;
  gap: 12px;
}

.hero-stats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 14px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
}

.stat-note {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.micro-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: help;
}

.cover {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.cover-media img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.8);
}

.cover-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cover-gallery img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.8);
}

.section-head {
  display: grid;
  gap: 8px;
}

.section-head h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.mag {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .search-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .mag {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .mission-grid .pullquote {
    max-width: 520px;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .cover-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reading {
  max-width: var(--col);
}

.sidebar {
  position: sticky;
  top: 88px;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.meta {
  padding: 16px;
}

.meta dl {
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.meta div {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

.meta div:first-child {
  border-top: 0;
  padding-top: 0;
}

.mission-grid .pullquote {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h1,
h2,
.serif {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

h1 {
  margin: 10px 0 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.subhead {
  margin-top: 8px;
}

.standfirst {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.byline {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.caption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.list-block {
  margin-top: 20px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.dropcap p:first-child::first-letter {
  float: left;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 3.4rem;
  line-height: 1;
  margin: 0.05em 0.14em 0 0;
  color: var(--ink);
}

.pullquote {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 24px 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.pullquote small {
  display: block;
  margin-top: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.surface {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.paths-tabs {
  margin-top: 20px;
}

.paths-tabs::part(nav) {
  border-bottom: 1px solid var(--rule);
}

.paths-tabs::part(active-tab-indicator) {
  background-color: var(--gold);
}

.paths-tabs sl-tab::part(base) {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.paths-panel {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .paths-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.steps ol {
  padding-left: 18px;
  line-height: 1.8;
  margin: 8px 0 0;
}

.platform-note {
  padding: 16px;
}

.listing-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 860px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.listing {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.listing-media {
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.listing-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.listing-body {
  display: grid;
  gap: 6px;
}

.listing-price {
  margin: 0;
  font-weight: 600;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.listing-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.listing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.listing-score {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-block {
  margin-top: 28px;
}

.logo-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.logo svg {
  width: 100%;
  height: 40px;
  stroke: var(--rule);
  stroke-width: 1;
  fill: none;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-anchor: middle;
  dominant-baseline: middle;
}

.logo text {
  fill: var(--ink);
}

.testimonials {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

@media (min-width: 860px) {
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.testimonial {
  padding: 18px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tier {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.tier ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  margin: 8px 0 0;
  font-weight: 600;
}

.pricing-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 8px;
  border-left: 1px solid var(--rule);
  display: grid;
  gap: 20px;
}

.timeline li {
  padding-left: 14px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.team-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.team-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.team-card dt {
  font-size: 0.95rem;
  font-weight: 600;
}

.team-card dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 20px 56px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-copy {
  margin: 6px 0 0;
  color: var(--muted);
}

.subscribe-form {
  display: grid;
  gap: 16px;
}

.subscribe-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2000;
}

sl-button.ed::part(base),
sl-input.ed::part(base) {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

sl-button.ed::part(base) {
  background: transparent;
}

sl-button.ed[variant="primary"]::part(base) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

sl-button.ed::part(label) {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

sl-input.ed::part(base) {
  background: rgba(255, 255, 255, 0.7);
}

sl-badge::part(base) {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
}

sl-dialog::part(panel),
sl-drawer::part(panel) {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}

sl-details::part(base) {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}

sl-details::part(header) {
  font-size: 0.95rem;
}

sl-details::part(content) {
  color: var(--muted);
}

.drawer-nav {
  display: grid;
  gap: 16px;
  padding: 12px 0;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  animation: rise 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-input {
    display: none;
  }

  .topbar-inner {
    padding: 14px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e0e0e;
  --ink: #f3efe6;
  --muted: rgba(243, 239, 230, 0.68);
  --rule: rgba(243, 239, 230, 0.16);
}

:root[data-theme="dark"] body::before {
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(176, 138, 58, 0.2), transparent 40%);
}

:root[data-theme="dark"] .topbar {
  background: rgba(14, 14, 14, 0.92);
}

:root[data-theme="dark"] .surface {
  background: rgba(12, 12, 12, 0.72);
}

:root[data-theme="dark"] .listing-media {
  background: rgba(12, 12, 12, 0.7);
}

:root[data-theme="dark"] .cover-media img,
:root[data-theme="dark"] .cover-gallery img {
  background: rgba(12, 12, 12, 0.7);
}

:root[data-theme="dark"] sl-input.ed::part(base) {
  background: rgba(12, 12, 12, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
  }
}
