/* =============================================================
   Erin Kerns Vazquez | Author Site
   Design system: warm epic-fantasy "golden valley" aesthetic
   Palette: forest greens, warm browns, sky blue, pale-gold light
   ============================================================= */

:root {
  /* Colors */
  --forest:        #2f4b34;   /* deep forest green (headings, footer) */
  --forest-mid:    #4a6b48;   /* mid green */
  --moss:          #6f8a56;   /* mossy accent green */
  --bark:          #5b4636;   /* warm brown */
  --bark-dark:     #3d2f24;   /* dark brown text */
  --parchment:     #f7f1e3;   /* warm cream background */
  --parchment-2:   #efe6d2;   /* slightly deeper cream */
  --sky:           #7fa8c9;   /* soft sky blue */
  --sky-deep:      #3f6d92;   /* deeper blue accent */
  --gold:          #d9a441;   /* sunlight gold (buttons/CTA) */
  --gold-soft:     #eac878;   /* pale yellow highlight */
  --ink:           #33291f;   /* body text */
  --muted:         #7a6c58;   /* muted brown-grey text */
  --white:         #fffdf8;

  /* Fonts */
  --serif-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --serif-body:    'EB Garamond', Georgia, serif;
  --sans:          'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 10px;
  --shadow-soft: 0 6px 24px rgba(61, 47, 36, 0.12);
  --shadow-card: 0 4px 18px rgba(61, 47, 36, 0.14);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { margin-bottom: 1.1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* section eyebrow + divider flourish */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 12px;
}
.flourish {
  width: 120px; height: 22px; margin: 14px auto 26px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cg fill='none' stroke='%23d9a441' stroke-width='1.4'%3E%3Cline x1='2' y1='11' x2='44' y2='11'/%3E%3Cline x1='76' y1='11' x2='118' y2='11'/%3E%3C/g%3E%3Cg fill='%236f8a56'%3E%3Cpath d='M60 3c3 4 7 5 10 5-3 1-7 3-10 6-3-3-7-5-10-6 3 0 7-1 10-5z'/%3E%3C/g%3E%3Ccircle cx='46' cy='11' r='2' fill='%23d9a441'/%3E%3Ccircle cx='74' cy='11' r='2' fill='%23d9a441'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--bark-dark);
  box-shadow: 0 6px 16px rgba(217,164,65,.35);
}
.btn-primary:hover { background: var(--gold-soft); color: var(--bark-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,253,248,.8);
}
.btn-outline:hover { background: rgba(255,253,248,.15); color: var(--white); transform: translateY(-2px); }
.btn-forest {
  background: var(--forest);
  color: var(--white);
}
.btn-forest:hover { background: var(--forest-mid); color: var(--white); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(111,138,86,.25);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: .5px;
  line-height: 1;
}
.brand span { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: 4px; color: var(--moss); text-transform: uppercase; margin-top: 3px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  color: var(--bark-dark); letter-spacing: .3px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--bark-dark) !important; padding: 9px 20px; border-radius: 50px; }
.nav-cta:hover { background: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(rgba(47,75,52,.28), rgba(61,47,36,.42)), url('../images/hero-valley.png') center/cover no-repeat;
}
.hero-inner { max-width: 820px; padding: 40px 24px; }
.hero h1 { color: var(--white); text-shadow: 0 3px 20px rgba(40,30,20,.5); margin-bottom: 8px; }
.hero .tagline {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 6px;
  font-size: 1rem; font-weight: 700; color: var(--gold-soft);
  text-shadow: 0 2px 10px rgba(40,30,20,.6); margin-bottom: 22px;
}
.hero .lede { font-size: 1.3rem; color: #fdf6e8; text-shadow: 0 2px 12px rgba(40,30,20,.6); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Novella / lead-magnet band ---------- */
.novella-band { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%); color: var(--white); }
.novella-band .eyebrow { color: var(--gold-soft); }
.novella-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
}
.novella-cover img {
  border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
  transform: rotate(-2deg); transition: transform .3s ease;
}
.novella-cover img:hover { transform: rotate(0) scale(1.02); }
.novella-band h2 { color: var(--white); }
.novella-band p { color: #eef2e6; }

/* ---------- Signup form ---------- */
.signup {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
  background: rgba(255,255,255,.08); padding: 8px; border-radius: 50px; max-width: 520px;
}
.signup input {
  flex: 1 1 220px; border: 0; background: var(--white); color: var(--ink);
  padding: 13px 20px; border-radius: 50px; font-family: var(--serif-body); font-size: 1rem;
}
.signup input:focus { outline: 2px solid var(--gold); }
.signup .btn { flex: 0 0 auto; }
.form-note { font-family: var(--sans); font-size: .8rem; color: #d7dccb; margin-top: 10px; }
.signup-light { background: var(--parchment-2); }
.signup-light input { border: 1px solid rgba(111,138,86,.4); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid rgba(111,138,86,.15);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card .tag {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--moss); margin-bottom: 8px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link { margin-top: auto; font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--gold); }
.card .card-link:hover { color: var(--forest); }
.card--soon { border-style: dashed; opacity: .92; }
.card .card-soon {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--parchment-2);
  border: 1px solid rgba(122,108,88,.35);
  border-radius: 999px;
  padding: 5px 12px;
  align-self: flex-start;
}
.card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--parchment-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About teaser / split ---------- */
.split { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 420px; }
.split-photo img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.photo-frame { position: relative; }
.photo-frame::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217,164,65,.55);
  border-radius: var(--radius); pointer-events: none;
}

/* ---------- Book feature ---------- */
.book-feature { background: var(--parchment-2); }
.book-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.book-cover img { border-radius: 8px; box-shadow: var(--shadow-soft); }
.book-status {
  display: inline-block; font-family: var(--sans); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .72rem; color: var(--white); background: var(--gold);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}

/* ---------- Instagram feed ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ig-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; box-shadow: var(--shadow-card); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ig-item:hover img { transform: scale(1.06); }
.ig-placeholder {
  background: linear-gradient(135deg, var(--moss), var(--sky));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-family: var(--sans); font-size: .8rem; text-align: center; padding: 10px;
}
.ig-embed-note {
  background: var(--parchment-2); border: 1px dashed var(--moss); border-radius: var(--radius);
  padding: 24px; font-family: var(--sans); font-size: .9rem; color: var(--muted); text-align: center;
}

/* ---------- Article / reader ---------- */
.page-hero {
  background: linear-gradient(rgba(47,75,52,.45), rgba(61,47,36,.55)), url('../images/hero-valley.png') center/cover;
  color: var(--white); text-align: center; padding: 100px 24px 80px;
}
.page-hero h1 { color: var(--white); text-shadow: 0 3px 18px rgba(40,30,20,.5); }
.page-hero p { color: #f3ecdd; max-width: 640px; margin: 12px auto 0; }

.article { max-width: 720px; margin: 0 auto; }
.article .meta { font-family: var(--sans); font-size: .85rem; color: var(--moss); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.article h1 { margin-bottom: 10px; }
.article-body { font-size: 1.18rem; line-height: 1.85; color: var(--bark-dark); }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif-display); font-size: 3.4rem; float: left; line-height: .8;
  padding: 6px 10px 0 0; color: var(--forest);
}
.article-body p { margin-bottom: 1.4rem; }
.back-link { font-family: var(--sans); font-weight: 700; font-size: .9rem; display: inline-block; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #e9efe0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--gold-soft); font-family: var(--sans); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e9efe0; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; font-family: var(--sans); font-size: .95rem; }
.footer-brand .brand-name { font-family: var(--serif-display); font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.footer-brand p { color: #cfd9c2; font-size: .95rem; }
.socials { display: flex; gap: 14px; margin-top: 14px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--gold); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: #e9efe0; }
.socials a:hover svg { fill: var(--bark-dark); }
.footer-follow-label { font-family: var(--serif-display); font-size: 1.3rem; color: var(--gold-soft); margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; text-align: center; font-family: var(--sans); font-size: .82rem; color: #b9c6a9; }

/* footer signup */
.footer-signup input { background: rgba(255,255,255,.95); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-gold { color: var(--gold); }
.badge-soon { color: var(--gold); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .novella-grid, .book-grid, .split, .split.rev { grid-template-columns: 1fr; gap: 34px; }
  .split-photo, .novella-cover { max-width: 320px; margin: 0 auto; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--parchment); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 16px; box-shadow: var(--shadow-card);
    transform: translateY(-150%); transition: transform .3s ease; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; }
  .signup { border-radius: var(--radius); }
}

/* =============================================================
   AWARD / NYC MIDNIGHT WIN
   ============================================================= */

/* Slim gold bar pinned above the header on every page */
.award-bar {
  background: linear-gradient(90deg, #b9862f 0%, #d9a441 32%, #eac878 50%, #d9a441 68%, #b9862f 100%);
  color: #33291f;
  text-align: center;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 9px 16px;
  line-height: 1.45;
}
.award-bar a { color: #33291f; text-decoration: none; border-bottom: 1px solid rgba(51,41,31,.45); }
.award-bar a:hover { border-bottom-color: #33291f; }
.award-bar .tro { margin-right: 4px; }

/* Badge that sits in the hero, under the name */
.hero .award-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 26px;
  padding: 11px 22px;
  background: rgba(35,52,37,.62);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: #fdf6e8;
  text-shadow: 0 2px 10px rgba(40,30,20,.7);
  text-align: left;
}
.hero .award-badge b { color: var(--gold-soft); }
.hero .award-badge span { font-weight: 400; opacity: .92; display: block; font-size: .82rem; letter-spacing: .02em; }

/* Full award callout panel (About / Books / Short Stories) */
.award-panel {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(217,164,65,.14), rgba(217,164,65,.05));
  border: 1px solid rgba(217,164,65,.55);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 0 0 34px;
}
.award-panel .medal { font-size: 2.1rem; line-height: 1; flex-shrink: 0; }
.award-panel h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--forest);
  margin: 0 0 8px;
}
.award-panel p { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.award-panel p:last-child { margin-bottom: 0; }
.award-panel .win-meta {
  font-family: var(--sans); font-size: .84rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* Small gold ribbon for winning story cards */
.card .card-award {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5b4326;
  background: linear-gradient(90deg, #eac878, #d9a441);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .award-bar { font-size: .76rem; padding: 8px 12px; }
  .hero .award-badge { font-size: .85rem; padding: 10px 16px; }
  .award-panel { flex-direction: column; gap: 12px; padding: 22px; }
}

/* Empty index state (e.g. blog before first post) */
.index-empty {
  text-align: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--muted);
  padding: 48px 20px;
  border: 1px dashed rgba(122,108,88,.4);
  border-radius: var(--radius);
  background: var(--parchment-2);
}

/* Books page series hook + closing question */
.series-hook {
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--forest);
  margin-bottom: 26px !important;
}
.series-question {
  font-family: var(--display);
  font-size: 1.55rem;
  font-style: italic;
  color: var(--forest);
  border-top: 1px solid rgba(217,164,65,.5);
  border-bottom: 1px solid rgba(217,164,65,.5);
  padding: 22px 0;
  margin-top: 30px !important;
}

/* ---------- Contact page ---------- */
.email-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--parchment-2) 100%);
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 44px 32px 38px;
  position: relative;
}
.email-card::before,
.email-card::after {
  content: ''; position: absolute; width: 26px; height: 26px;
  border: 2px solid var(--gold); opacity: .55;
}
.email-card::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.email-card::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.email-address {
  display: inline-block;
  font-family: var(--serif-display);
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: .4px;
  word-break: break-word;
  border-bottom: 2px solid rgba(217, 164, 65, .5);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.email-address:hover { color: var(--bark); border-color: var(--gold); }
.email-note { color: var(--muted); font-size: 1.02rem; }

.contact-grid { margin-top: 26px; }
.contact-grid .card-body h3 { margin-bottom: 8px; }

.contact-socials {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 20px;
}

/* Credentials box (contact + about) */
.cred-box {
  background: var(--parchment-2);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}
.cred-box p { margin-bottom: 0; }
.cred-box .eyebrow { margin-bottom: 8px; }
.cred-contact { margin-top: 12px !important; font-size: .98rem; color: var(--muted); }

@media (max-width: 720px) {
  .email-card { padding: 34px 20px 30px; }
  .contact-socials .btn { width: 100%; }
}
