/*
Theme Name: Empress Has No Clothes
Theme URI: https://empresshasnoclothes.com
Author: My Mogul Media
Description: Custom theme for The Empress Has No Clothes, restoring the original purple/tan editorial look. Built for the 2026 site rebuild.
Version: 1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: empress
*/

:root {
  --plum: #402c4d;
  --plum-dark: #2a1c33;
  --tan-bg: #ded3a6;
  --tan-bg-light: #efe9d3;
  --gold: #9a7d24;
  --gold-light: #ccc3a6;
  --white: #ffffff;
  --text: #333333;
  --text-light: #6b6b6b;
  --border: #e2dcc4;
  --max-width: 1140px;
  --serif: serif;
  --sans: sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--tan-bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--plum);
  color: var(--tan-bg-light);
  padding: 28px 0 22px;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--serif);
  line-height: 1.15;
}
.logo a { color: inherit; }
.logo .the {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.logo .name {
  display: block;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: normal;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.05rem;
  max-width: 480px;
  text-align: right;
}
@media (max-width: 720px) {
  .tagline { text-align: left; font-size: 0.95rem; }
}

/* Nav */
.site-nav {
  background: var(--tan-bg);
  border-bottom: 3px solid var(--plum-dark);
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 0;
  gap: 4px 8px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--plum-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
}
.site-nav a:hover,
.site-nav a.current,
.site-nav a[aria-current="page"] {
  background: var(--plum);
  color: var(--white);
  text-decoration: none;
}

/* Layout */
.page-body {
  padding: 36px 0 60px;
}
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.panel h1, .panel h2 {
  font-family: var(--serif);
  font-style: italic;
  color: var(--plum);
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.panel-plain h1, .panel-plain h2 { font-style: normal; }

.gold-heading {
  font-family: var(--serif);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: 1.15rem;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 10px;
  margin: 0 0 20px;
}

/* Sidebar */
.sidebar-photo {
  padding: 0;
  overflow: hidden;
}
.sidebar-photo img { width: 100%; }
.sidebar-meet {
  background: var(--tan-bg-light);
  border: 1px solid var(--border);
}
.sidebar-meet-title {
  background: var(--gold);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 12px 20px;
  margin: 0;
}
.sidebar-meet-title em { font-style: italic; font-weight: 400; }
.sidebar-meet-body { padding: 20px 22px; font-size: 0.92rem; color: var(--text); }
.sidebar-meet-body p:first-child { margin-top: 0; }
.btn {
  display: inline-block;
  background: var(--plum-dark);
  color: var(--white) !important;
  padding: 9px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--plum); text-decoration: none; }

/* Article list */
.article-card { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.article-card h3 { font-family: var(--serif); font-style: italic; margin: 0 0 8px; }
.article-card h3 a { color: var(--plum); }
.article-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.article-teaser { margin: 0 0 12px; }

/* Article detail */
.article-body p { margin: 0 0 1.1em; }
.article-body blockquote {
  margin: 1.2em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--text-light);
}
.article-byline { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Press list */
.press-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--tan-bg-light);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.press-item .press-name { font-weight: 700; min-width: 160px; }
.press-item .press-desc { color: var(--text); }

/* Speaking engagements */
.engagement-list { list-style: none; margin: 0; padding: 0; }
.engagement-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.engagement-list li:last-child { border-bottom: none; }
.engagement-date { color: var(--gold); font-weight: 700; white-space: nowrap; font-size: 0.85rem; }

/* Forms */
form.site-form { margin-top: 8px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-note {
  background: var(--tan-bg-light);
  border: 1px dashed var(--gold);
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* Book banner */
.book-banner img { border: 1px solid var(--border); }

/* Footer */
.site-footer {
  background: var(--tan-bg-light);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.site-footer a { color: var(--plum-dark); }
.site-footer nav a { margin-right: 14px; }

.welcome-intro { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--plum-dark); margin-top: 0; }

/* WordPress core block/editor compatibility */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-light); text-align: center; }
.screen-reader-text { position: absolute; left: -9999px; }
