/* ============================================
   ALEX GREYWOOD — Author Site
   Books Division · Mummy Under the Umbrella
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Books division palette — warm crimson tint */
  --bg:             #F7EDED;
  --bg-secondary:   #EFE0E0;
  --bg-dark:        #1A0D0D;
  --text-primary:   #1A0A0A;
  --text-secondary: #5C3535;
  --text-muted:     #9A7070;
  --accent:         #8B2535;
  --accent-light:   #B85A6A;
  --border:         #DDC8C8;
  --white:          #FDF5F5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 960px;
  --nav-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(139,37,53,0.08); }

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* division badge */
.nav-division {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.6rem;
  opacity: 0.8;
}

/* ---- Main ---- */
main { padding-top: var(--nav-height); min-height: 100vh; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 2rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Monogram block */
.monogram-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 1s ease both;
}

.monogram-wrap svg {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 8px 32px rgba(139,37,53,0.15));
  transition: transform 0.6s ease;
}
.monogram-wrap svg:hover { transform: translateY(-4px); }

.division-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Author content */
.author-content { animation: fadeUp 0.8s ease 0.2s both; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.author-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* ---- Sections ---- */
.content-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.prose {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
  max-width: 560px;
}
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--text-primary); font-style: italic; }

/* ---- Book card ---- */
.book-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: start;
}

.book-cover-wrap {
  flex-shrink: 0;
}

.book-cover-wrap img {
  width: 120px;
  box-shadow: 0 8px 24px rgba(139,37,53,0.2);
}

.book-details { flex: 1; }

.book-title-display {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.book-meta-line {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.book-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* ---- Projects list ---- */
.projects-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}
.project-item:hover { border-color: var(--accent); }

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.project-type {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}
.project-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---- Excerpt page ---- */
.excerpt-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.excerpt-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.excerpt-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--border);
}

.pov-block {
  margin-bottom: 3rem;
}

.pov-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pov-suit {
  font-size: 1.2rem;
  color: var(--accent);
}
.pov-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pov-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pov-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-primary);
  max-width: 640px;
}
.pov-text p { margin-bottom: 1.25rem; }

/* ---- Jobs page ---- */
.jobs-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.jobs-intro {
  max-width: 580px;
  margin-bottom: 3rem;
}

.job-card {
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow: hidden;
}

.job-card-header {
  background: var(--bg-secondary);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.job-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.job-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.job-tag.accent {
  border-color: var(--accent);
  color: var(--accent);
}

.job-body {
  padding: 2rem;
}

.job-desc {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.job-section-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.job-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.job-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- Footer ---- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-sub a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.footer-sub a:hover { opacity: 0.7; }
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
  .monogram-wrap {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .monogram-wrap svg { max-width: 100px; }
  .nav-division { display: none; }
  .nav-links { display: none; }
  .book-card { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
