/* DarkRecord Premium Core — conservative premium layer */
:root {
  --drp-bg: #070809;
  --drp-surface: rgba(18, 20, 22, .78);
  --drp-surface-strong: #111315;
  --drp-line: rgba(255,255,255,.10);
  --drp-line-strong: rgba(255,255,255,.16);
  --drp-text: #f0eee9;
  --drp-muted: #aaa59e;
  --drp-accent: #c7b9a4;
  --drp-accent-2: #8b8174;
  --drp-radius: 20px;
  --drp-shadow: 0 20px 70px rgba(0,0,0,.34);
  --drp-ease: cubic-bezier(.2,.75,.25,1);
}

html { scroll-behavior: smooth; }
body.drp-premium {
  background: var(--drp-bg);
  color: var(--drp-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.drp-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999999;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 700 14px/1 system-ui, sans-serif;
  box-shadow: var(--drp-shadow);
}
.drp-skip-link:focus { transform: translateY(0); }

.drp-reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 99998;
  pointer-events: none;
  overflow: hidden;
}
.drp-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #8f8374, #eee8dc);
  will-change: transform;
}

/* Header/nav: refine common WP theme structures without forcing a layout. */
.drp-premium :is(.site-header, header.site-header, .main-header) {
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.drp-premium :is(.site-header, .main-header) a {
  text-underline-offset: .2em;
}
.drp-premium :is(.site-header, .main-header) nav a {
  letter-spacing: .015em;
  transition: opacity .25s var(--drp-ease), transform .25s var(--drp-ease);
}
.drp-premium :is(.site-header, .main-header) nav a:hover { opacity: .76; }

/* Premium card treatment on commonly used archive/card shells. */
.drp-premium :is(.story-card, .archive-card, .post-card, .category-card, .card, article.post) {
  border-color: var(--drp-line);
}
.drp-premium :is(.story-card, .archive-card, .post-card, .category-card) {
  overflow: clip;
  border: 1px solid var(--drp-line);
  border-radius: var(--drp-radius);
  box-shadow: 0 14px 44px rgba(0,0,0,.16);
  transition: transform .35s var(--drp-ease), border-color .35s var(--drp-ease), box-shadow .35s var(--drp-ease);
}
@media (hover:hover) {
  .drp-premium :is(.story-card, .archive-card, .post-card, .category-card):hover {
    transform: translateY(-4px);
    border-color: var(--drp-line-strong);
    box-shadow: 0 22px 60px rgba(0,0,0,.27);
  }
}
.drp-premium :is(.story-card, .archive-card, .post-card, .category-card) img {
  transition: transform .8s var(--drp-ease), filter .45s var(--drp-ease);
}
@media (hover:hover) {
  .drp-premium :is(.story-card, .archive-card, .post-card, .category-card):hover img { transform: scale(1.025); }
}

/* Reading typography — limited to story content. */
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) {
  text-wrap: pretty;
}
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) > :is(p, ul, ol, blockquote, h2, h3, figure) {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) p {
  line-height: 1.78;
  hanging-punctuation: first last;
}
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) h2,
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) h3 {
  text-wrap: balance;
  letter-spacing: -.02em;
}
.drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) blockquote {
  border-inline-start: 1px solid var(--drp-accent-2);
  padding-inline-start: 1.25rem;
  color: #d8d3cb;
}

.drp-content-label {
  box-sizing: border-box;
  max-width: 72ch;
  margin: 0 auto 2rem;
  padding: 1rem 1.1rem;
  display: grid;
  gap: .22rem;
  border: 1px solid rgba(199,185,164,.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(199,185,164,.075), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.drp-content-label__eyebrow {
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: .16em;
  color: var(--drp-accent);
}
.drp-content-label strong {
  font-size: .98rem;
  color: var(--drp-text);
}
.drp-content-label > span:last-child {
  color: var(--drp-muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* Form polish + accessibility. */
.drp-premium :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  border: 1px solid var(--drp-line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: inherit;
  transition: border-color .2s var(--drp-ease), box-shadow .2s var(--drp-ease), background .2s var(--drp-ease);
}

/* Native select menus need an explicit palette. Without this, Chromium on
   Windows can open a white option popup while inheriting DarkRecord's pale text. */
.drp-premium select {
  color-scheme: dark;
  min-height: 52px;
  padding: .72rem 2.75rem .72rem 1rem;
  background-color: #121315;
  color: #f3efe9;
  cursor: pointer;
}
.drp-premium select option,
.drp-premium select optgroup {
  background: #121315;
  color: #f3efe9;
}
.drp-premium select option:disabled {
  color: #9c978f;
}
.drp-premium select:hover {
  border-color: rgba(235,226,212,.5);
  background-color: #15171a;
}
.drp-premium select:focus,
.drp-premium select:focus-visible {
  border-color: rgba(235,226,212,.85);
  box-shadow: 0 0 0 3px rgba(235,226,212,.10);
}

/* Contact Form 7 / common form wrappers: keep the field aligned and full width. */
.drp-premium :is(.wpcf7-form, .contact-form, form) select {
  width: 100%;
  max-width: 100%;
}
.drp-premium :is(input, textarea, select, button, a):focus-visible {
  outline: 2px solid rgba(235,226,212,.92);
  outline-offset: 3px;
}
.drp-premium :is(button, .button, input[type="submit"]) {
  border-radius: 999px;
  transition: transform .25s var(--drp-ease), box-shadow .25s var(--drp-ease), opacity .25s var(--drp-ease);
}
@media (hover:hover) {
  .drp-premium :is(button, .button, input[type="submit"]):hover { transform: translateY(-1px); }
}

/* Image stability and quality. */
.drp-premium img { height: auto; }
.drp-premium :is(.entry-content, .post-content, .story-content, .drp-main-content) figure img {
  border-radius: clamp(12px, 2vw, 20px);
}

/* Mobile: touch targets, readable measure, safer spacing. */
@media (max-width: 782px) {
  .drp-premium :is(.site-header, .main-header) nav a,
  .drp-premium :is(.menu-toggle, .nav-toggle, button) { min-height: 44px; }
  .drp-story :is(.entry-content, .post-content, .story-content, .drp-main-content) p { line-height: 1.72; }
  .drp-content-label { margin-bottom: 1.4rem; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drp-premium *, .drp-premium *::before, .drp-premium *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
