/* Rebecca Marie Fitzgerald — author site, first draft */
:root {
  --cream: #f4efe4;
  --cream-dark: #e8dfd0;
  --paper: #fbf8f2;
  --ink: #2a231c;
  --ink-soft: #5c5348;
  --forest: #3c4f41;
  --forest-deep: #2a3a30;
  --gold: #9a7844;
  --gold-soft: #c4a36a;
  --rule: #d4c8b4;
  --placeholder-bg: rgba(154, 120, 68, 0.1);
  --shadow: 0 18px 40px rgba(42, 35, 28, 0.12);
  --max: 72rem;
  --header-h: 5.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: 4.4rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.2rem 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--forest-deep) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 18, 14, 0.82) 0%,
    rgba(22, 18, 14, 0.35) 45%,
    rgba(22, 18, 14, 0.2) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  max-width: 28em;
  margin: 0;
  color: #f3eadb;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt { background: var(--paper); }

.section h2,
.page-hero h1,
.book-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 0 2rem;
}

.gold-rule {
  width: 4rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 1 / 1.05;
}

.portrait figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.intro-copy p { margin: 0 0 1rem; }
.intro-copy p:last-of-type { margin-bottom: 0; }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--forest);
}

.btn-primary {
  background: var(--forest);
  color: var(--paper);
}
.btn-primary:hover { background: var(--forest-deep); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Book grids */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1rem 1.35rem;
  min-height: 100%;
}

.section-alt .book-card { background: var(--cream); }

.book-card img {
  width: 100%;
  box-shadow: 0 10px 24px rgba(42, 35, 28, 0.16);
  margin-bottom: 1.1rem;
  background: var(--cream-dark);
}

.book-card .series-kicker,
.status {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.book-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.blurb {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.blurb span { display: block; }

.cover-missing {
  aspect-ratio: 2 / 3.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  background:
    repeating-linear-gradient(135deg, #efe6d6, #efe6d6 12px, #e7dcc8 12px, #e7dcc8 24px);
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 24px rgba(42, 35, 28, 0.1);
}

/* Series blocks */
.series-head { margin-bottom: 2rem; max-width: 46rem; }
.series-head .status { margin-bottom: 0.5rem; }
.series-head h2 { margin-bottom: 0.75rem; }
.series-head p { margin: 0 0 0.75rem; color: var(--ink-soft); }
.series-head p:last-child { margin-bottom: 0; }

.page-hero {
  padding: 4rem 0 2rem;
  text-align: left;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}

/* Journeys */
.journey-photo {
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}
.journey-photo img { width: 100%; max-height: 36rem; object-fit: cover; object-position: center 40%; }
.journey-photo figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.75rem 0 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.video-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--ink);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Placeholders */
.placeholder {
  display: inline;
  border: 1px dashed var(--gold);
  background: var(--placeholder-bg);
  color: var(--ink-soft);
  font-style: italic;
  padding: 0.05em 0.4em;
}

.note {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 1.25rem 0 0;
}

/* Contact */
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem 2rem 2.25rem;
  max-width: 40rem;
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: #e8dfd0;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.site-footer a { color: var(--gold-soft); }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer .fine {
  font-size: 0.85rem;
  color: #cbbb9e;
}

/* 404 */
.notfound { padding: 6rem 1.5rem; text-align: center; }
.notfound h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  margin: 0 0 1rem;
}

@media (max-width: 1040px) {
  .intro-grid,
  .about-layout,
  .book-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0.35rem; }

  .header-inner { position: relative; }

  .hero { min-height: 58vh; }

  .portrait img { max-width: 18rem; }
}

@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .header-inner { padding: 0.55rem 1rem; }
  .wrap { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .brand-text { display: none; }
}

.home-cover {
  width: 100%;
  max-width: 14rem;
  box-shadow: 0 10px 24px rgba(42, 35, 28, 0.16);
  margin: 0 0 1rem;
}


.featured-book {
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  max-width: 52rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .featured-book {
    grid-template-columns: 1fr;
  }
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  align-items: start;
}

.gallery-slot {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  background:
    repeating-linear-gradient(135deg, #efe6d6, #efe6d6 12px, #e7dcc8 12px, #e7dcc8 24px);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  box-shadow: 0 8px 20px rgba(42, 35, 28, 0.08);
}

.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--cream-dark, #efe6d6);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 20px rgba(42, 35, 28, 0.08);
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.build-video {
  margin: 2.25rem 0 0;
  max-width: 52rem;
}

.build-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #1a1612;
  box-shadow: 0 10px 24px rgba(42, 35, 28, 0.16);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1100px);
  max-height: 96vh;
}

.lightbox::backdrop {
  background: rgba(26, 22, 18, 0.86);
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  display: block;
  margin: 0 0 0.75rem auto;
  background: none;
  border: 1px solid var(--gold-soft, #c9b48a);
  color: #f4eee3;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--gold);
  color: #fff;
}

.contact-panel h2 {
  margin-top: 0;
}
