/* S. Lynn — author site (static) */

:root {
  color-scheme: light;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;

  --bg-page: #f5eaf0;
  --bg-elevated: #fff8fb;
  --text: #2b2430;
  --text-muted: #5c5160;
  --accent: #c2186c;
  --accent-hover: #9d1458;
  --border: rgba(43, 36, 48, 0.12);
  --hero-overlay: rgba(43, 36, 48, 0.35);
  --link: #7b2060;
  --shadow: rgba(43, 36, 48, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #161018;
  --bg-elevated: #1f1a24;
  --text: #f3eaef;
  --text-muted: #b9aab8;
  --accent: #e85aa3;
  --accent-hover: #f080b8;
  --border: rgba(243, 234, 239, 0.12);
  --hero-overlay: rgba(16, 12, 18, 0.55);
  --link: #f0a8d0;
  --shadow: rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  padding: 1.75rem 0 1rem;
  text-align: center;
}

.brand {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

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

.brand a:hover {
  color: var(--accent);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-main a {
  color: var(--text);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.social-inline {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-inline a {
  color: var(--text);
  display: flex;
  padding: 0.25rem;
  border-radius: 4px;
}

.social-inline a:hover {
  color: var(--accent);
}

.social-inline svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  margin: 0 0 2.5rem;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  overflow: hidden;
  border-radius: 0 0 1.25rem 1.25rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #e8b8c8 0%,
    #f0c8a8 22%,
    #f5d8a0 42%,
    #c8a8d8 72%,
    #a890c8 100%
  );
}

.hero__trees {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  opacity: 0.35;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #2a2038 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 8vw, 4rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.hero__soon {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero__soon span {
  color: #e91e8c;
  text-shadow: 0 0 20px rgba(233, 30, 140, 0.5);
}

.cover-wrap {
  display: flex;
  justify-content: center;
}

.cover-wrap img {
  max-width: 220px;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 40px var(--shadow);
}

.cover-placeholder {
  width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background: linear-gradient(145deg, #6b4c7a, #3d2a48);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #f5e6f0;
  font-size: 0.85rem;
  box-shadow: 0 12px 40px var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 2.5rem 0;
}

.section--tight {
  padding-top: 0;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  font-weight: 400;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow);
}

.quote {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.book-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.book-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform 0.15s;
}

.book-card:hover {
  transform: translateY(-3px);
}

.book-card a {
  color: inherit;
  text-decoration: none;
}

.book-card__cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #5a3d68, #2d1f36);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__body {
  padding: 1rem;
}

.book-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.book-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--accent);
}

.page-hero {
  padding: 2rem 0 1rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.contact-page {
  max-width: 32rem;
  margin-inline: auto;
  text-align: left;
}

.contact-page__title {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.contact-page__intro {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section--contact {
  padding-top: 2.25rem;
}

.contact-form {
  margin: 0 0 1.75rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px var(--shadow), 0 0 0 3px rgba(194, 24, 108, 0.2);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  box-shadow: inset 0 1px 2px var(--shadow), 0 0 0 3px rgba(232, 90, 163, 0.25);
}

.btn--contact {
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 10px;
  background: #e497b4;
  border-color: #e497b4;
  color: #fff;
}

.btn--contact:hover {
  background: #d67a9e;
  border-color: #d67a9e;
  color: #fff;
}

[data-theme="dark"] .btn--contact {
  background: #b86d8a;
  border-color: #b86d8a;
  color: #fff;
}

[data-theme="dark"] .btn--contact:hover {
  background: #c97d9e;
  border-color: #c97d9e;
  color: #fff;
}

.contact-page__elsewhere {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.author-shot {
  max-width: 320px;
  margin-inline: auto;
  display: block;
}

.praise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.praise-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.praise-list blockquote {
  margin: 0;
}

.praise-list blockquote p {
  margin: 0;
}

.praise-item__book {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.praise-item__book em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.praise-item__rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.praise-item__rating-label {
  color: var(--text-muted);
}

.praise-stars {
  color: #b8860b;
  letter-spacing: 0.06em;
  line-height: 1;
}

[data-theme="dark"] .praise-stars {
  color: #e6c84d;
}

.praise-item__arc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.praise-list cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--font-script);
  font-size: clamp(1.45rem, 2.8vw, 1.75rem);
  line-height: 1.35;
  color: var(--text);
}

@media (max-width: 600px) {
  .header-tools {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}
