/*
Theme Name: The Mirror
Theme URI: https://kateryncole.com
Author: Kateryn Cole
Author URI: https://kateryncole.com
Description: A quiet, literary author theme for Kateryn Cole and The Mirror — a six-book adventure series for readers ages 10–15. Twilight palette by default, with editable book teaser, images, and contact details via Appearance → Customize.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-mirror
Tags: one-column, custom-menu, editor-style, full-width-template, custom-logo
*/

/* ============================================================
   THE MIRROR — Kateryn Cole
   Twilight palette (midnight blue · cream ink · warm gold)
   ============================================================ */

/* ---------- Palette (locked to Twilight) ---------- */
:root {
  --bg:        #1a2033;
  --bg-2:      #232a40;
  --ink:       #f2ead4;
  --ink-soft:  #cfc7b1;
  --ink-quiet: #8a8474;
  --rule:      #3a4260;
  --accent:    #e0a640;
  --accent-2:  #c48928;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Paper grain overlay (lightened for dark palette) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.10;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,0.35) 100%);
}

.meta {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-quiet);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
a.link {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
a.link:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- Layout ---------- */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
  z-index: 1;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 28px;
}
.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
}
.topnav { display: flex; gap: 28px; }
.topnav a {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}
.topnav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero .eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(72px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.display .the {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.1em;
  margin-left: 0.15em;
}
.tagline {
  max-width: 640px;
  font-size: 24px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 44px 0 0;
  font-weight: 400;
}

/* Signup */
.signup {
  margin-top: 56px;
  max-width: 560px;
}
.signup .label { display: block; margin-bottom: 14px; }
.signup-form {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  gap: 8px;
}
.signup-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
  padding: 10px 4px;
}
.signup-form input[type="email"]::placeholder {
  color: var(--ink-quiet);
  font-style: italic;
}
.signup-form button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 6px;
  font-weight: 500;
  transition: color .2s, transform .2s;
}
.signup-form button:hover { color: var(--accent); transform: translateX(2px); }
.signup-note {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--ink-quiet);
  letter-spacing: 0.02em;
}
.signup-confirm {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  display: none;
}
.signup-confirm.show { display: block; }

/* When a MailerLite embed lives here, override plugin defaults toward our type/palette */
.tm-mailerlite-embed {
  margin-top: 8px;
  color: var(--ink);
}
.tm-mailerlite-embed input[type="email"] {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 4px;
  width: 100%;
  margin-bottom: 16px;
}
.tm-mailerlite-embed button, .tm-mailerlite-embed input[type="submit"] {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 500;
}
.tm-mailerlite-embed button:hover, .tm-mailerlite-embed input[type="submit"]:hover {
  background: var(--accent-2);
}

/* Section */
section { padding: 100px 0; }
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 48px;
}
.section-head .num { color: var(--ink-quiet); }
.section-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
}
.section-head h2 em { color: var(--accent); font-weight: 500; font-style: italic; }

/* Book section */
.book {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.book .mood { position: relative; }
.book .cover-img,
.book .cover-placeholder {
  width: 340px;
  height: 480px;
  display: block;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55), 0 8px 20px -8px rgba(0,0,0,0.35);
}
.book .cover-placeholder {
  background: var(--bg-2);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-quiet);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 20px;
  line-height: 1.6;
}
.book .caption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.book .teaser { padding-top: 8px; }
.book .teaser .quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 88px;
  line-height: 0.4;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}
.book .teaser p {
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 560px;
}
.book .teaser p.small {
  font-size: 18px;
  color: var(--ink-soft);
  font-style: italic;
}
.book .facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 560px;
}
.book .fact .k { display: block; margin-bottom: 8px; }
.book .fact .v {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
}

/* Author page */
.author {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.author .portrait {
  position: sticky;
  top: 40px;
}
.author .headshot-img,
.author .headshot-placeholder {
  width: 380px;
  height: 480px;
  display: block;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55), 0 8px 20px -8px rgba(0,0,0,0.35);
}
.author .headshot-placeholder {
  background: var(--bg-2);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-quiet);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 20px;
  line-height: 1.6;
}
.author .portrait .caption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.author .portrait .name-plate {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.author .portrait .name-plate .n {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.author .portrait .name-plate .r {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.author .body p {
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 560px;
}
.author .body p.first::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 500;
}
.author .pull {
  margin: 44px 0;
  padding: 28px 0 28px 32px;
  border-left: 2px solid var(--accent);
  max-width: 560px;
}
.author .pull q {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink);
  quotes: "\201C" "\201D";
  display: block;
}
.author .pull q::before { content: open-quote; color: var(--accent); margin-right: 2px; }
.author .pull q::after  { content: close-quote; color: var(--accent); margin-left: 2px; }
.author .details {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  max-width: 560px;
}
.author .details .block .label { display: block; margin-bottom: 10px; }
.author .details .block .txt {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.author .signature { margin-top: 44px; }

.signature .sig {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 44px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.signature .who { margin-top: 8px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 44px; margin: 0 0 24px; line-height: 1.05; }
.contact p { font-size: 22px; color: var(--ink-soft); font-style: italic; line-height: 1.55; margin: 0 0 32px; max-width: 480px; }
.contact .links {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--rule);
}
.contact .links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--ink);
  transition: padding .25s ease, color .25s ease;
}
.contact .links a:hover { padding-left: 12px; color: var(--accent); }
.contact .links a .arrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

/* Footer */
.site-footer {
  padding: 60px 0 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer .colophon { max-width: 360px; }

/* Interior pages (blog, events, press, etc.) */
.interior {
  padding: 60px 0 100px;
  max-width: 720px;
  margin: 0 auto;
}
.interior h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink);
}
.interior .entry-content p {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 20px;
}
.interior .entry-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.interior .entry-content a { color: var(--accent); border-bottom: 1px solid var(--accent-2); }
.interior .entry-meta {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .page { padding: 0 28px; }
  .hero { padding: 60px 0 80px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .book { grid-template-columns: 1fr; gap: 48px; }
  .book .cover-img, .book .cover-placeholder { width: 100%; height: 60vw; max-height: 480px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .author { grid-template-columns: 1fr; gap: 40px; }
  .author .portrait { position: static; }
  .author .headshot-img, .author .headshot-placeholder { width: 100%; height: 90vw; max-height: 520px; }
  .author .details { grid-template-columns: 1fr; gap: 24px; }
  .topnav { display: none; }
  .site-footer { flex-direction: column; gap: 24px; align-items: flex-start; }
  .book .facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .interior h1 { font-size: 40px; }
}
