/*
Theme Name: Candlelight & Amethyst
Theme URI: https://example.com/candlelight-amethyst
Author: OpenAI
Description: A scholarly, literary WordPress block theme based on the Candlelight and Amethyst brand kit.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: candlelight-amethyst
Tags: block-theme, education, blog, custom-colors, custom-logo, editor-style, full-site-editing
*/

/* Brand foundations */
:root {
  --ca-aubergine: #2B1638;
  --ca-amethyst: #5B2A86;
  --ca-wisteria: #9B7BBF;
  --ca-lilac: #E6DCF0;
  --ca-gold: #B8963E;
  --ca-parchment: #F4ECDA;
  --ca-vellum: #FBF7EC;
  --ca-forest: #3E5240;
  --ca-oxblood: #7A2433;
  --ca-ink: #1E1A22;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ca-parchment);
  color: var(--ca-ink);
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
}
a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ca-gold); outline-offset: 3px; }

.wp-site-blocks { overflow: clip; }
.ca-site-header {
  background: var(--ca-aubergine);
  color: var(--ca-vellum);
  border-bottom: 1px solid var(--ca-gold);
}
.ca-site-header a { color: var(--ca-vellum); text-decoration: none; }
.ca-site-header a:hover { color: var(--ca-wisteria); }
.ca-brand-name {
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-weight: 700;
  letter-spacing: .01em;
}
.ca-brand-tagline {
  color: var(--ca-wisteria);
  font-family: "Cinzel", Georgia, serif;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ca-nav {
  font-family: "Cinzel", Georgia, serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ca-nav .wp-block-navigation__submenu-container {
  background: var(--ca-aubergine);
  border: 1px solid var(--ca-gold);
  padding: .65rem;
}
.ca-nav .wp-block-navigation-item__content { padding: .45rem .6rem; }

.ca-eyebrow, .ca-label {
  color: var(--ca-amethyst);
  font-family: "Cinzel", Georgia, serif;
  font-size: .7rem;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}
.ca-gold-rule {
  border: 0;
  border-top: 1px solid var(--ca-gold);
  width: 5rem;
  margin: 1.4rem 0;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ca-aubergine);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { max-width: 72ch; }
blockquote {
  border-left: 2px solid var(--ca-gold);
  color: var(--ca-aubergine);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.35;
  margin-left: 0;
  padding: .4rem 0 .4rem 1.5rem;
}
.wp-block-button__link {
  background: var(--ca-amethyst);
  border: 1px solid var(--ca-amethyst);
  border-radius: 2px;
  color: var(--ca-vellum);
  font-family: "Cinzel", Georgia, serif;
  font-size: .72rem;
  letter-spacing: .12em;
  padding: .9rem 1.35rem;
  text-transform: uppercase;
}
.wp-block-button__link:hover {
  background: var(--ca-aubergine);
  border-color: var(--ca-gold);
  color: var(--ca-vellum);
}
.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--ca-amethyst);
  color: var(--ca-amethyst);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--ca-amethyst);
  color: var(--ca-vellum);
}
.ca-panel {
  background: var(--ca-lilac);
  border: 1px solid var(--ca-amethyst);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ca-panel--vellum {
  background: var(--ca-vellum);
  border-color: rgba(184,150,62,.65);
}
.ca-card {
  background: var(--ca-vellum);
  border: 1px solid rgba(91,42,134,.18);
  box-shadow: 0 8px 24px rgba(43,22,56,.06);
  height: 100%;
}
.ca-card a { color: var(--ca-amethyst); }
.ca-image-frame img {
  filter: sepia(.12) saturate(.82) brightness(.88);
  border: 1px solid var(--ca-gold);
  padding: 5px;
  background: var(--ca-vellum);
}
.ca-dark-section {
  background: var(--ca-aubergine);
  color: var(--ca-vellum);
}
.ca-dark-section h1, .ca-dark-section h2, .ca-dark-section h3 { color: var(--ca-vellum); }
.ca-dark-section a { color: #D9C6EB; }
.ca-dark-section .ca-eyebrow { color: var(--ca-gold); }
.ca-post-meta, .wp-block-post-date, .wp-block-post-author {
  color: #716777;
  font-family: "Cinzel", Georgia, serif;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { color: var(--ca-amethyst); }
.wp-block-separator { border-color: var(--ca-gold); opacity: .8; }
.wp-block-search__input {
  background: var(--ca-vellum);
  border: 1px solid var(--ca-wisteria);
  border-radius: 0;
  color: var(--ca-ink);
  padding: .75rem;
}
.wp-block-search__button {
  background: var(--ca-aubergine);
  border: 1px solid var(--ca-gold);
  border-radius: 0;
  color: var(--ca-vellum);
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ca-site-footer {
  background: var(--ca-aubergine);
  border-top: 1px solid var(--ca-gold);
  color: var(--ca-vellum);
}
.ca-site-footer h2, .ca-site-footer h3 { color: var(--ca-vellum); }
.ca-site-footer a { color: #D9C6EB; }
.ca-site-footer .ca-label { color: var(--ca-gold); }
.ca-footer-small {
  color: #C8B8D0;
  font-family: "Cinzel", Georgia, serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 782px) {
  .ca-site-header .wp-block-group.is-content-justification-space-between { gap: 1rem; }
  .ca-nav { font-size: .66rem; }
  body { font-size: 16px; }
}
