@layer reset, components, theme, overrides;
@layer theme {
  @scope (.theme-blonddy) {

    :scope {
      --bg:#fff0f7;
      --panel:#fffaff;
      --panel-hover:#ffe0ef;
      --text:#48112e;
      --muted:#7c4662;
      --accent:#b60061;
      --line:#ec9fc5;
      --border-radius:20px;
      --text-inverse:#fff;
      margin:0;
      background:var(--bg);
      color:var(--text);
      font-family:'Trebuchet MS',Arial,sans-serif;
    }
    a { color:inherit; }
    :where(a,button,input,textarea):focus-visible { outline:3px solid #1a6981; outline-offset:4px; }
    .button, a.button, button, input[type='submit'] {
      display:inline-flex; align-items:center; justify-content:center; gap:.75em; min-height:48px; padding:.8rem 1.4rem;
      border-radius:100px; background:#a50059; color:#fff; text-decoration:none; font-weight:800; letter-spacing:.02em;
      box-shadow:0 6px 0 #662044;
    }

    .site-header {
      position:relative; z-index:2; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
      gap:.75rem; padding:.7rem 1rem; background:#fff9fd; border-bottom:3px solid #faafd1;
    }
    .brand { color:#b60061; font-weight:900; font-size:1.8rem; font-style:italic; text-decoration:none; line-height:1; }
    .brand img { display:block; width:min(195px,45vw); height:auto; max-height:64px; object-fit:contain; }
    .site-header nav {
      display:flex; justify-content:space-between; gap:.2rem; overflow-x:auto; width:100%; max-width:100%; padding:.3rem 0;
      white-space:nowrap; scrollbar-width:thin;
    }
    .site-header nav a {
      display:block; padding:.6rem .3rem; border-radius:100px; text-decoration:none; font-size:.68rem; font-weight:800;
      text-transform:uppercase; letter-spacing:.04em;
    }
    .site-header nav a:hover { background:#ffe3f0; }

    .hero { display:grid; min-height:0; background:#fa90bd; }
    .hero-copy {
      position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
      min-height:370px; padding:3.5rem 1.4rem; background:#f7a2ca url('/themes/blonddy/chrome-pink.webp') center/cover;
    }
    .hero-copy::before {
      content:''; position:absolute; inset:0; z-index:-1;
      background:linear-gradient(90deg,rgba(255,229,242,.87),rgba(255,195,225,.49));
    }
    .kicker { margin:0 0 .8rem; color:#8c004e; font-size:.77rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
    .hero h1 {
      position:relative; margin:0 0 1rem; color:#8c004e; text-shadow:3px 4px 0 #ffe4f4;
      font-size:clamp(3.8rem,13vw,8.5rem); font-weight:900; font-style:italic; letter-spacing:-.09em; line-height:.9;
    }
    .hero h1 span {
      display:inline-block; margin-left:.18em; color:#fff; font-size:.33em; vertical-align:top; text-shadow:2px 2px 0 #b60061;
    }
    .hero h1 i::before,.footer-mark i::before,.latest h2 i::before,.ticker i::before { margin:0; }
    .hero-copy > p:not(.kicker) { max-width:29rem; margin:0 0 1.5rem; font-size:1.1rem; line-height:1.5; font-weight:650; }
    .hero-image { min-height:300px; overflow:hidden; background:#26051f; }
    .hero-image img {
      display:block; width:100%; height:100%; min-height:300px; max-height:560px; object-fit:cover; object-position:65% center;
    }

    .ticker {
      padding:.85rem; overflow:hidden; background:#9d0056; color:#fff; white-space:nowrap; font-size:.75rem; font-weight:900; letter-spacing:.17em;
      display: flex; align-items: center; justify-content: center; gap:8px;
    }

    .latest,.index { width:min(100%,1400px);margin:auto;padding:4rem 1.1rem; }
    .latest > header,.index > header { max-width:48rem;margin:0 0 2rem; }
    .latest h2,.index h1,.more h2 { margin:0 0 .8rem;font-size:clamp(2.5rem,8vw,5.5rem);line-height:.96;font-weight:900;letter-spacing:-.065em; }
    .latest h2 span { margin-left:.25em;color:#e55c9f; }
    .latest > header > p:last-child,.index > header span { color:var(--muted);font-size:1.1rem;line-height:1.5; }

    .post-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; }
    .card.post-card {
      height:100%; overflow:hidden; border:2px solid #f6bdd9; border-radius:24px; background:#fff; box-shadow:0 8px 0 #fac6de;
    }
    .card-art,.card-art img { border-radius:0; }
    .card .card-body { padding:1rem; }
    .card .card-title { font-size:clamp(1rem,2.3vw,1.5rem); line-height:1.13; font-weight:900; }
    .card .card-meta { color:#8c004e; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }

    .latest > .button { margin-top:2.5rem; }

    .more {
      margin:2rem 1rem 4rem; padding:4rem 1.4rem; border-radius:30px; background:#e15e9f url('/themes/blonddy/chrome-pink.webp') center/cover;
      box-shadow:0 10px 0 #a50059;
    }
    .more > * { max-width:40rem; }
    .more p:not(.kicker) { font-size:1.1rem; font-weight:650; line-height:1.5; }

    .post > section > header { max-width:850px; margin:auto; padding:4rem 1.2rem 2rem; text-align:center; }
    .post > section > header h1 { margin:0 0 1rem; font-size:clamp(2.7rem,9vw,6rem); line-height:.95; letter-spacing:-.07em; }
    .post > section > header div { color:var(--muted); line-height:1.6; }
    .post-grid-xl { max-width:1000px; margin:auto; grid-template-columns:1fr; }
    .post-grid-xl .card { box-shadow:none; }
    .purchase-control { margin:2rem auto 5rem; }

    .static-page { display:grid;gap:2rem; }
    .static-page > section { padding:1.5rem; background:#fffaff; border:2px solid #f6bdd9; border-radius:30px; }
    .static-page h1 { color:#a50059; }
    .static-page .lead { font-size:1.2rem; line-height:1.5; }
    .static-page-content { line-height:1.75; }

    .site-footer { display:grid; gap:1rem; padding:3rem 1.4rem; background:#63113c; color:#fff; }
    .brand { font-size:2.5rem; font-style:italic; font-weight:900; letter-spacing:-.08em; text-shadow: 3px 4px #ffe4f4; }
    .brand span { margin-left:2px; color:#ffacd4; }
    .site-footer p { max-width:40rem; line-height:1.6; }
    .site-footer nav { display:flex; flex-wrap:wrap; gap:1rem; font-size:.85rem; font-weight:800; text-transform:uppercase; }
    .footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; padding-top:1.3rem; border-top:1px solid #c2709d; }
    .site-footer .credit,.site-footer small { color:#ffe0f0; }
    .site-footer .brand { color:#ffe4f4; text-shadow: 3px 4px #8c004e; }

    .pagination { margin-top:3rem; gap:10px; }
    .credit { font-size: 0.75rem;}

    @media (min-width:550px) {
      .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    }

    @media (min-width:700px) {

      .site-header { padding:.8rem 3vw; }
      .site-header nav { width:auto;gap:.35rem; }
      .site-header nav a { padding:.7rem .8rem;font-size:.78rem; }

      .hero { position:relative; }
      .hero-copy { position:absolute; background: none; min-height:auto; padding:0 2rem; top:0; bottom:0; isolation:auto; background:rgba(205,105,105,0.1); backdrop-filter:blur(2px); }

      aside h2 { margin-top:0; }

      .latest,.index { padding:6rem 4vw; }
      .post-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
      .post-grid-sm, .post-grid-xl { grid-template-columns:1fr; }
      .more { padding:5rem 6vw; margin:1rem 4vw 6rem; }
      .static-page { grid-template-columns:minmax(0,2fr) minmax(230px,1fr); }
      .site-footer { padding:4rem 5vw; }
    }

    @media (prefers-reduced-motion:reduce) {
      *,*::before,*::after {
        scroll-behavior:auto!important;
        transition-duration:.01ms!important;
        animation-duration:.01ms!important;
      }
    }
  }
}
