/* =====================================================================
   FREE AUTHOR TOOLS — SHARED SITE STYLES
   ---------------------------------------------------------------------
   Used by index.html, about.html, and privacy.html. Individual tools
   (e.g. /story-idea-spinner/) keep their own self-contained styles.css
   so each tool folder stays fully standalone. This file just keeps the
   hub and its supporting pages visually consistent with the tools.

   Colors match the tools' palette — change here to re-theme the hub,
   about, and privacy pages all at once.
   ===================================================================== */

:root {
  --color-cream: #faf6ef;
  --color-cream-deep: #f2ead9;
  --color-plum: #4a2c3f;
  --color-plum-deep: #3a2131;
  --color-olive: #6b7353;
  --color-olive-deep: #545b40;
  --color-dusty-rose: #c98c94;
  --color-gold: #b8925a;
  --color-ink: #2e2420;
  --color-ink-soft: #5a4f49;
  --color-white: #ffffff;

  --font-body: Georgia, 'Times New Roman', serif;
  --font-heading: 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 20px rgba(58, 33, 49, 0.12);
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-plum);
}

a {
  color: var(--color-olive-deep);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------
   Site header / nav
   --------------------------------------------------------------------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.site-nav .brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-plum);
  text-decoration: none;
  font-weight: bold;
}

.site-nav .brand:hover {
  color: var(--color-plum);
  opacity: 0.8;
}

.site-nav .nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: 20px;
}

.hub-header {
  text-align: center;
  margin-bottom: 44px;
}

.hub-header h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
}

.hub-header .subtitle {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Tool cards grid
   --------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.tool-card {
  background-color: var(--color-cream-deep);
  border: 1px solid rgba(107, 115, 83, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.tool-card h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.tool-card p {
  color: var(--color-ink);
  flex-grow: 1;
  margin: 0 0 20px;
}

.tool-card .btn {
  align-self: flex-start;
}

.tool-card--coming-soon {
  opacity: 0.75;
  border-style: dashed;
}

.tool-card--coming-soon p {
  color: var(--color-ink-soft);
  font-style: italic;
}

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-olive);
  padding: 5px 12px;
  border-radius: 999px;
  align-self: flex-start;
}

/* ---------------------------------------------------------------------
   Buttons (shared with tool pages)
   --------------------------------------------------------------------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background-color: var(--color-plum-deep);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-plum);
  color: var(--color-white);
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px 30px;
}

/* ---------------------------------------------------------------------
   Promo section (shared visual style with tool pages)
   --------------------------------------------------------------------- */
.promo-section {
  background-color: var(--color-plum);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
}

.promo-section h2 {
  color: var(--color-cream);
  margin-top: 0;
}

.promo-section p {
  color: var(--color-cream-deep);
  max-width: 520px;
  margin: 0 auto 24px;
}

.promo-section .btn-primary {
  background-color: var(--color-gold);
  color: var(--color-plum-deep);
}

.promo-section .btn-primary:hover {
  background-color: #c9a066;
}

/* ---------------------------------------------------------------------
   Simple content pages (About / Privacy)
   --------------------------------------------------------------------- */
.content-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.content-page .updated-date {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-bottom: 32px;
}

.content-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
}

.content-page ul {
  padding-left: 22px;
}

.content-page li {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--color-ink-soft);
}

.site-footer a:hover {
  color: var(--color-gold);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hub-header h1 {
    font-size: 2rem;
  }

  .promo-section,
  .tool-card {
    padding: 22px;
  }
}
