/*
Theme Name: Dr. Tana Session Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A custom WordPress theme inspired by the Working While Black author website, featuring rich espresso tones, warm sand accents, and elegant card-based layouts.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: dr-tana-session-theme
*/

:root {
  --espresso: #1b0d09;
  --mahogany: #2a140f;
  --cocoa: #4f3427;
  --sand: #d9c0a9;
  --cream: #f4ede6;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.78);
  --gold: #c8a77a;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius: 22px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(200,167,122,0.12), transparent 30%),
    linear-gradient(180deg, #120806 0%, #1b0d09 35%, #24120d 100%);
  color: var(--white);
  line-height: 1.6;
}

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

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

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

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

.container,
.site-header-inner,
.site-footer-inner,
.content-wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(18,8,6,0.75);
  border-bottom: 1px solid var(--border);
}

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

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-title a { color: var(--white); }
.site-title .accent { color: var(--sand); }
.site-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  color: var(--muted);
  font-size: 0.95rem;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--white); }

.hero-section {
  padding: 72px 0 50px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217,192,169,0.12);
  border: 1px solid rgba(217,192,169,0.22);
  color: var(--sand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title,
.entry-title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-text,
.entry-content,
.entry-summary {
  color: var(--muted);
}
.hero-actions,
.wp-block-buttons,
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--sand);
  color: #1b0d09;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  color: #1b0d09;
}
.button.secondary,
.is-style-outline .wp-block-button__link {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

.card,
.hero-card,
.content-card,
.feature-card,
.contact-card,
.retailer-panel,
.widget,
.post-card,
.archive-card,
.comments-area {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card,
.content-card,
.feature-card,
.contact-card,
.retailer-panel,
.post-card,
.archive-card,
.comments-area,
.widget {
  padding: 30px;
}

.book-layout,
.two-column-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}
.book-cover,
.featured-image-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  background: #120806;
}
.quote {
  margin: 14px 0;
  color: var(--sand);
  font-size: 1.02rem;
  font-weight: 700;
}
.meta-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-block {
  padding: 28px 0 68px;
}
.section-heading {
  margin-bottom: 26px;
}
.section-heading h2,
.widget-title,
.comments-title,
.related-title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.features-grid,
.contact-grid,
.footer-widgets,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.retailer-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.retailer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.retailer-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(217,192,169,0.4);
  background: rgba(217,192,169,0.07);
}
.retailer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1b0d09;
  background: linear-gradient(135deg, var(--sand), #f1dfcf);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.retailer-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.retailer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.retailer-sub,
.entry-meta,
.wp-caption-text,
.post-navigation,
.comment-metadata,
.site-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.content-wrap {
  padding: 56px 0 70px;
}
.main-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 30px;
}
.full-width-template .main-content,
.error404 .main-content,
.search-no-results .main-content {
  grid-template-columns: 1fr;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p,
.entry-content li,
.widget,
.comment-content {
  color: var(--muted);
}
.entry-content h2,
.entry-content h3,
.entry-content h4,
.widget h2,
.widget h3 {
  color: var(--white);
}
.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--sand);
  background: rgba(255,255,255,0.03);
  border-radius: 0 18px 18px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 50px;
}
.site-footer-inner {
  display: grid;
  gap: 20px;
}
.site-info {
  color: rgba(255,255,255,0.55);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .book-layout,
  .main-content,
  .features-grid,
  .contact-grid,
  .retailer-buttons,
  .footer-widgets,
  .posts-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container,
  .site-header-inner,
  .site-footer-inner,
  .content-wrap {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-card,
  .content-card,
  .feature-card,
  .contact-card,
  .retailer-panel,
  .post-card,
  .archive-card,
  .comments-area,
  .widget {
    padding: 22px;
  }
}
