/*
Theme Name: AngelQuotes
Theme URI: https://example.com/angelquotes
Author: Codex
Description: Modern typography-first quotes website theme with masonry cards, search, dark mode, and quote actions.
Version: 1.0.0
Text Domain: angelquotes
*/

:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #686868;
  --accent: #0f766e;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
  --bg: #14171a;
  --surface: #1d2127;
  --text: #f3f3f3;
  --muted: #b7b7b7;
  --accent: #ffb86b;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.site-header { padding: 1.5rem 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); }
.branding a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.header-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

.hero-search { margin: 2rem 0; display: grid; gap: 1rem; }
.hero-search h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); }
.search-form input[type="search"] {
  width: 100%; border: 1px solid #d8d8d8; border-radius: 999px;
  padding: 0.95rem 1.25rem; font-size: 1rem;
}

.qotd {
  background: var(--surface); box-shadow: var(--shadow); border-radius: 20px;
  padding: 1.5rem; margin: 2rem 0; position: relative; overflow: hidden;
}
.qotd::before {
  content: "“"; position: absolute; inset: -24px auto auto 8px;
  font-size: 9rem; opacity: 0.08; line-height: 1;
}
.quote-text {
  margin: 0 0 .5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}
.quote-cite { margin: 0; color: var(--muted); font-weight: 600; }

.topic-pills { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0; }
.topic-pills a {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.masonry { column-count: 3; column-gap: 1rem; }
@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 640px) { .masonry { column-count: 1; } }

.quote-card {
  break-inside: avoid; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 1rem 1rem .75rem; margin: 0 0 1rem; position: relative;
}
.quote-card blockquote { margin: 0 0 .7rem; }
.quote-card p { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; }
.quote-card cite { font-style: normal; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .5rem; }
.tags a { font-size: .78rem; text-decoration: none; padding: .18rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.actions { opacity: 0; transition: opacity .2s ease; display: flex; gap: .5rem; justify-content: flex-end; }
.quote-card:hover .actions, .quote-card:focus-within .actions { opacity: 1; }
.action-btn { border: 0; border-radius: 8px; padding: .35rem .5rem; cursor: pointer; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.a-z-index { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.a-z-index a { text-decoration: none; padding: .2rem .52rem; border: 1px solid #ccc; border-radius: 7px; color: var(--text); }

.site-footer { margin-top: 3rem; padding: 2rem 0; color: var(--muted); text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
