/* ==========================================================================
   Girl Shawn Wanders — base styles
   Palette: warm neutrals + soft pink accent + black ink, editorial/blog feel.
   This is a v1 styling pass — enough to make the scaffold usable and on-brand.
   Treat it as a starting point, not a finished design system.
   ========================================================================== */

:root {
  /* Core neutrals -- refined to the provided palette; same warm, cream-forward feel as before */
  --color-ink: #292722;
  --color-ink-soft: #4a423f;
  --color-cream: #f7f1e7;
  --color-cream-deep: #f2ebe3;
  --color-sand: #e9e0d6;
  --color-white: #fcf9f3;

  /* Pink accent -- dusty-pink/blush from the new palette, replacing the old brighter pink */
  --color-pink: #e8c7bd;
  --color-pink-deep: #c98f87;
  --color-pink-pale: #e8c7bd;

  /* New accents from the updated palette */
  --color-denim: #718a91;
  --color-denim-deep: #5f767d;
  --color-sage: #747a45;
  --color-soft-sage: #d9d9c3;
  --color-cognac: #a97743;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Rochester', cursive;

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 30px -18px rgba(32, 28, 27, 0.35);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  /* Belt-and-suspenders against any element (like an unconstrained image) pushing the page
     wider than the viewport and creating a horizontal scrollbar -- the site should never have
     one, regardless of what causes it. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

/* The script font is a homepage-only flourish. Everywhere else -- blog posts, the blog
   listing, About, Contact, Journals, and any h2s inside sanitized article content -- keeps
   the plain serif from the base rule above, since readability matters more there than on a
   one-off hero/section-heading treatment. */
body.is-homepage h1,
body.is-homepage h2 {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.35;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-pink-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius-md); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Nav --- */

.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-sand);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.site-header__brand {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-ink);
}
.site-header__brand span { color: var(--color-pink-deep); }
.site-header__brand:hover { text-decoration: none; }

.brand-logo {
  display: inline-flex;
  align-items: center;
}
.brand-logo:hover { text-decoration: none; }

.brand-logo-img { height: 38px; width: auto; max-width: 170px; display: block; }
.brand-logo-img--footer { height: 150px; width: 150px; }

.brand-fallback-text {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ink);
}
.site-footer__logo .brand-fallback-text { font-size: 1.35rem; }
.brand-fallback-text span { color: var(--color-pink-deep); }

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--color-pink-deep); text-decoration: none; }

.site-header__social {
  display: flex;
  gap: 0.75rem;
}
.site-header__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-pink-pale);
  color: var(--color-pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.site-header__social a:hover { background: var(--color-pink); color: var(--color-white); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--color-sand);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--color-pink-deep); color: var(--color-pink-deep); }

/* Hidden by default everywhere; only shown inside the full-screen mobile nav overlay (below).
   Without this unconditional rule, these icons leak into the desktop nav bar since they're
   nested inside .site-nav, right after the "Work With Me" link. */
.site-nav__mobile-social { display: none; }

@media (max-width: 800px) {
  .site-header { z-index: 250; }
  .site-header__brand { z-index: 250; }
  .nav-toggle { display: inline-flex; z-index: 250; }
  .site-header__social { display: none; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: grid;
    align-content: start;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-cream);
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
  }
  .site-nav.is-open > a {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-sand);
    text-align: center;
  }

  .site-nav.is-open .site-nav__mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
  }
  .site-nav__mobile-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-pink-pale);
    color: var(--color-pink-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
  .site-nav__mobile-social a:hover { background: var(--color-pink); color: var(--color-white); }
}

/* Locks background scrolling while the full-screen mobile nav is open */
body.nav-open { overflow: hidden; }

/* --- Hero --- */

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-pink-deep);
  margin-bottom: 0.75rem;
}
.hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero__subtitle {
  max-width: 560px;
  margin: 1rem auto 2rem;
  font-size: 1.15rem;
  color: var(--color-ink-soft);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Private Media Kit / Rate Sheet share page */
.share-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 1.5rem; justify-content: center; }
.share-doc-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
}
.share-doc-card__icon { font-size: 2.75rem; color: var(--color-pink-deep); }
.share-doc-card__title { font-size: 1.5rem; margin: 0.75rem 0 1.25rem; }
.share-doc-card__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Journals page: HeartStrings logo in place of the old text eyebrow */
.journals-hero__logo { display: block; height: 100px; width: auto; max-width: 100%; margin: 0 auto 1.25rem; border-radius: 0; }

/* Homepage-only 70/30 hero layout (text left, logo right). Scoped under .hero__grid so the
   plain centered .hero used by other pages (Journals, About) is completely unaffected. */

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
  align-items: center;
}

.hero__grid .hero__content { text-align: left; }
.hero__grid .hero__content h1 { margin-left: 0; margin-right: 0; }
.hero__grid .hero__subtitle { margin-left: 0; margin-right: 0; }
.hero__grid .hero__actions { justify-content: flex-start; }

.hero__logo { display: flex; justify-content: center; align-items: center; }
.brand-logo-img.hero__logo-img { height: auto; width: 100%; max-width: 300px; }
.hero__logo .brand-fallback-text { font-size: 2.1rem; text-align: center; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid .hero__content { text-align: center; }
  .hero__grid .hero__content h1 { margin-left: auto; margin-right: auto; }
  .hero__grid .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__grid .hero__actions { justify-content: center; }
  .hero__logo { order: -1; margin-bottom: 1.5rem; }
  .brand-logo-img.hero__logo-img { max-width: 200px; }
}

/* --- Section divider (decorative custom "hr" between two homepage sections) --- */

.section-divider {
  position: relative;
  height: 0;
}
.section-divider__image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  width: auto;
  z-index: 5;
  pointer-events: none;
}

/* --- Journal Preview / About Snippet (two-column feature blocks) --- */

.journal-preview {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 2.5rem;
  align-items: center;
}
.journal-preview--no-image { grid-template-columns: 1fr; }

.about-snippet {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  grid-template-areas: "body image";
  gap: 2.5rem;
  align-items: center;
}
.about-snippet--no-image { grid-template-columns: 1fr; grid-template-areas: "body"; }

.journal-preview__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-snippet__image {
  grid-area: image;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-snippet__body { grid-area: body; }

.journal-preview__body p,
.about-snippet__body p { font-size: 1.05rem; color: var(--color-ink-soft); }

@media (max-width: 800px) {
  .journal-preview { grid-template-columns: 1fr; }
  .about-snippet { grid-template-columns: 1fr; grid-template-areas: "image" "body"; }
}

/* --- Home link cards ("As Seen In / Where to Find Me") --- */

.home-link-card .card__image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--color-cream-deep);
  padding: 1.5rem;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--color-ink); color: var(--color-white); }
.btn--primary:hover { background: var(--color-pink-deep); }

.btn--secondary { background: var(--color-white); color: var(--color-ink); border-color: var(--color-sand); }
.btn--secondary:hover { border-color: var(--color-pink-deep); color: var(--color-pink-deep); }

.btn--pink { background: var(--color-pink); color: var(--color-ink); }
.btn--pink:hover { background: var(--color-pink-deep); color: var(--color-white); }

.btn--denim { background: var(--color-denim); color: var(--color-white); }
.btn--denim:hover { background: var(--color-denim-deep); }

.btn--ghost { background: transparent; color: var(--color-ink-soft); border-color: var(--color-sand); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--danger { background: var(--color-white); color: #a83244; border-color: #e9c2c8; }
.btn--danger:hover { background: #a83244; color: var(--color-white); }

.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* --- Sections --- */

.section { padding: 3.5rem 0; }
.section--muted { background: var(--color-cream-deep); }
.section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__header p { color: var(--color-ink-soft); margin: 0; }

/* --- Card grids --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Public Journals listing: always at least 2 columns, even on the narrowest phones (the
   generic .card-grid's auto-fill/minmax would collapse to 1 column there), scaling up to a
   max of 4 on desktop rather than growing unbounded on very wide screens. */
.card-grid--journals {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) {
  .card-grid--journals { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1000px) {
  .card-grid--journals { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  background: var(--color-sand);
}

.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.card__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-pink-deep);
}

.card__title { font-size: 1.2rem; margin: 0; }
.card__excerpt { color: var(--color-ink-soft); font-size: 0.95rem; flex: 1; }
.card__meta { font-size: 0.82rem; color: var(--color-ink-soft); }
.card__link { font-weight: 600; margin-top: auto; }

/* --- Blog cards ("What I've Been Up To", /blog listing) --- */
/* Less corner radius than the base card, plus category + date overlays on the image. */

/* overflow:visible (overriding the base .card's overflow:hidden) so a decorative flourish
   (see .home-recent-posts .blog-card:first-child below) can hang outside the card's edge
   without being clipped. The image itself still gets clipped to rounded top corners via
   .blog-card__image-wrap's own overflow:hidden, so this doesn't affect its appearance. */
.card.blog-card { border-radius: 8px; overflow: visible; }

.blog-card__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.blog-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-pink);
  color: var(--color-ink);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

/* Same background as the card body, flush against the image/body seam with no bottom
   padding -- reads as a little tab poking up out of the text area below. */
.blog-card__date {
  position: absolute;
  bottom: 0;
  right: 0.75rem;
  background: var(--color-white);
  color: var(--color-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem 0;
  border-radius: 6px 6px 0 0;
}

.blog-card__read-more {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.2rem;
}

/* Decorative daisy-corner flourish on the first card of the homepage's "What I've Been Up
   To" section only (scoped via .home-recent-posts so the shared /blog listing page, which
   uses the same .blog-card partial, is unaffected). Purely decorative, CSS-only.
   Add wwwroot/images/daisy-corner.png (~100x100) for this to render; nudge the right/bottom
   values below to adjust exactly how far it straddles the corner once you can see it live. */
.home-recent-posts .blog-card:first-child {
  position: relative;
}
.home-recent-posts .blog-card:first-child::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 100px;
  height: 100px;
  background: url("/images/daisy-corner.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 5;
}

/* --- Journal cards (portrait cover) --- */

.journal-card .card__image { aspect-ratio: 3 / 4; }

/* --- Filters / pills --- */

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-weight: 500;
}
.pill.is-active,
a.pill:hover { background: var(--color-pink-pale); border-color: var(--color-pink); color: var(--color-pink-deep); text-decoration: none; }

/* A blog post tag with no other posts to browse to yet (see BlogController.Post's
   ClickableTags) renders as a plain span, not a link. It should look visibly non-interactive
   from the start -- not just fail to do anything on click -- so muted rather than styled
   identically to the clickable pills above. */
span.pill { opacity: 0.55; cursor: default; }

/* --- Article --- */

.article-header { padding: 3rem 0 2rem; text-align: center; }
.article-header__category { color: var(--color-pink-deep); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }
.article-header__meta { color: var(--color-ink-soft); font-size: 0.9rem; margin-top: 0.5rem; }
.article-hero-image {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  height: 320px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-md);
  margin: 0 auto 2.5rem;
}
@media (min-width: 700px) {
  .article-hero-image { height: 440px; }
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.article-body h2, .article-body h3 { margin-top: 1.75em; }
.article-body blockquote {
  border-left: 3px solid var(--color-pink);
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  font-style: italic;
  color: var(--color-ink-soft);
}
.article-body img { margin: 1.5em 0; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2.5rem; max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- Forms --- */

.form-grid { display: grid; gap: 1.25rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field input[type="url"],
.form-field input[type="password"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-white);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field small { color: var(--color-ink-soft); font-size: 0.8rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-status { font-size: 0.9rem; color: var(--color-ink-soft); min-height: 1.4em; }
.form-status.is-error { color: #a83244; }
.form-status.is-success { color: #2f7a4f; }
.validation-summary { color: #a83244; margin-bottom: 1rem; }

/* Honeypot field for spam bots -- visually hidden without display:none/visibility:hidden,
   since some bots specifically check for and skip those. Real visitors never see or reach it. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--color-sand);
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
  background: var(--color-soft-sage);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0.85rem 0 1.25rem; max-width: 320px; }

.site-footer__icons { display: flex; gap: 0.65rem; }
.site-footer__icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-pink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--color-sand);
}
.site-footer__icons a:hover { background: var(--color-pink); color: var(--color-white); border-color: var(--color-pink); text-decoration: none; }

.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer__col a { color: var(--color-ink-soft); font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--color-pink-deep); text-decoration: none; }

.site-footer__subhead {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-pink-deep);
  margin: 1.1rem 0 0.6rem;
}
.site-footer__subhead:first-of-type { margin-top: 0; }

.site-footer__bottom {
  border-top: 1px solid var(--color-sand);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

@media (max-width: 700px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Pagination --- */

.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }

@media (max-width: 700px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
}
