/*
Theme Name: Jason Rosenburg Author Site
Theme URI: https://jaserosenburg.com
Author: Jason Rosenburg
Description: A warm Southern literary author website with blog, works in progress, and editing services pages.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: jason-rosenburg-author
*/

:root {
  --plum: #3e2548;
  --deep-blue: #233b5e;
  --forest: #264c3b;
  --rose: #b86b86;
  --wine: #7a2f3a;
  --cream: #f7f1ea;
  --soft: #fbf8f4;
  --charcoal: #242124;
  --muted: #6f6870;
  --line: #e5d9d0;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--soft);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3, .site-title {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.12;
  color: var(--plum);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 .45rem; }
p { margin: 0 0 1.2rem; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: rgba(247,241,234,.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-title {
  color: var(--plum);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .01em;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--wine); }

.container { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.3rem; }
.narrow { max-width: 800px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.eyebrow {
  color: var(--wine);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .8rem;
}
.lede { font-size: 1.25rem; color: #3b373b; max-width: 760px; }
.hero-card, .photo-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(62,37,72,.14);
  border: 1px solid var(--line);
  background: var(--white);
}
.hero-card img, .photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plum);
  color: var(--white) !important;
  text-decoration: none;
  border-radius: 999px;
  padding: .78rem 1.15rem;
  font-weight: 700;
  font-size: .98rem;
}
.button.secondary { background: transparent; color: var(--plum) !important; border: 1px solid var(--plum); }
.button.rose { background: var(--wine); }

.section { padding: 3rem 0; }
.section.alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: start; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(62,37,72,.06);
}
.card h3 { color: var(--forest); }
.quote-box {
  background: var(--plum);
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}
.quote-box h2, .quote-box p { color: var(--white); }

.page-title-wrap {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 3.8rem 1.3rem;
}
.page-title-inner { max-width: 980px; margin: 0 auto; }
.page-title-inner h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }

.content-wrap { max-width: 920px; margin: 0 auto; padding: 3.5rem 1.3rem; }
.content-wrap > *:first-child { margin-top: 0; }
.content-wrap ul { padding-left: 1.4rem; }
.content-wrap li { margin-bottom: .45rem; }

.about-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2.3rem; align-items: start; }
.about-layout .photo-card img { aspect-ratio: 3 / 4; object-position: center; }
.service-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.project-meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.notice {
  background: #efe6f2;
  border-left: 5px solid var(--plum);
  padding: 1rem 1.2rem;
  border-radius: 16px;
}

.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.post-card h2 { font-size: 1.6rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: .7rem; }

.site-footer {
  background: var(--plum);
  color: var(--cream);
  padding: 2.5rem 1.3rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--cream); }

.wp-block-image img { border-radius: 24px; }
.wp-block-button__link { border-radius: 999px; background: var(--plum); }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .hero, .grid-2, .about-layout { grid-template-columns: 1fr; }
  .grid-3, .posts-grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
