/**
 * Verdant Source: notebook template (parchment entry)
 * Loaded only by templates/notebook.html.twig.
 * Accent and ink come from --nb-rubric and --nb-ink set on .notebook-stage.
 */

.notebook-stage {
    --nb-ink: #2b1d12;
    --nb-rubric: #7a2e1c;
    --nb-font: 'IM Fell English', Georgia, serif;
    --nb-font-sc: 'IM Fell English SC', Georgia, serif;

    min-height: 70vh;
    padding: clamp(24px, 5vw, 72px) 16px 96px;
    background: radial-gradient(ellipse at 50% 20%, #2c3b2f 0%, #1e2a21 60%, #151d17 100%);
    font-family: var(--nb-font);
    color: var(--nb-ink);
}

.notebook-filters { position: absolute; }

.notebook-breadcrumb {
    max-width: 820px;
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-family: var(--nb-font-sc);
    font-size: 17px;
    letter-spacing: 0.08em;
    color: #d9cba8;
}
.notebook-breadcrumb a,
.notebook-return a { color: #d9cba8; text-decoration: none; }
.notebook-breadcrumb a:hover,
.notebook-return a:hover { text-decoration: underline; }

.notebook-sheet {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.notebook-paper {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    filter: url(#nb-deckle);
    background-color: #e9d8ae;
    background-image:
        radial-gradient(ellipse at 50% 45%, rgba(255, 248, 226, 0.65) 0%, rgba(255, 248, 226, 0) 55%),
        radial-gradient(circle at 12% 8%, rgba(150, 105, 45, 0.28) 0%, rgba(150, 105, 45, 0) 18%),
        radial-gradient(circle at 88% 92%, rgba(130, 88, 36, 0.32) 0%, rgba(130, 88, 36, 0) 22%),
        radial-gradient(circle at 78% 30%, rgba(160, 115, 55, 0.12) 0%, rgba(160, 115, 55, 0) 9%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(110, 72, 28, 0.45) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.notebook-grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: url(#nb-deckle);
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
}
.notebook-grain__rect { filter: url(#nb-grain); }

.notebook-inner {
    position: relative;
    padding: clamp(48px, 9vw, 96px) clamp(28px, 9vw, 104px) clamp(56px, 9vw, 100px);
}

.notebook-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    font-family: var(--nb-font-sc);
    font-size: 16px;
    letter-spacing: 0.12em;
    color: var(--nb-rubric);
}
.notebook-kicker { display: flex; align-items: center; gap: 10px; }

/* Heading: override the theme's Cinzel headings inside the sheet */
.notebook-heading { margin: 0; text-align: center; }
.notebook-stage .notebook-title {
    margin: 0;
    font-family: var(--nb-font);
    font-weight: 400;
    font-size: clamp(38px, 5.4vw, 56px);
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--nb-ink);
}
.notebook-stage .notebook-subtitle {
    margin: 10px 0 0;
    font-family: var(--nb-font);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(22px, 2.6vw, 28px);
    color: var(--nb-ink);
}
.notebook-stage .notebook-byline {
    margin: 8px 0 0;
    font-family: var(--nb-font-sc);
    letter-spacing: 0.1em;
    color: var(--nb-rubric);
}

.notebook-flourish {
    display: block;
    margin: 26px auto 40px;
    color: var(--nb-rubric);
}

/* Body copy (markdown output) */
.notebook-body {
    font-family: var(--nb-font);
    font-size: clamp(19px, 1.9vw, 21px);
    line-height: 1.72;
    color: var(--nb-ink);
}
.notebook-body p {
    margin: 0 0 22px;
    font-family: inherit;
    color: inherit;
}
.notebook-body > p:first-of-type::first-letter {
    float: left;
    font-size: 92px;
    line-height: 0.82;
    margin: 8px 12px 0 0;
    color: var(--nb-rubric);
}
.notebook-body a { color: var(--nb-rubric); }
.notebook-body a:hover { filter: brightness(0.7); }
.notebook-body h2,
.notebook-body h3 {
    font-family: var(--nb-font-sc);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--nb-rubric);
}

.notebook-signature {
    margin: 44px 0 0;
    display: flex;
    justify-content: flex-end;
}
.notebook-signature img {
    display: block;
    width: min(300px, 60%);
    height: auto;
    mix-blend-mode: multiply;
}

.notebook-transparency {
    margin: 28px 0 0;
    font-style: italic;
    font-size: 16px;
    color: var(--nb-ink);
}

/* Original pages */
.notebook-originals {
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid rgba(90, 60, 25, 0.35);
}
.notebook-originals h2 {
    margin: 0 0 6px;
    text-align: center;
    font-family: var(--nb-font-sc);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.1em;
    color: var(--nb-rubric);
}
.notebook-originals__lede {
    margin: 0 0 28px;
    text-align: center;
    font-style: italic;
    font-size: 18px;
    color: var(--nb-ink);
}
.notebook-originals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px;
    align-items: start;
}
.notebook-polaroid {
    margin: 0;
    background: #fbf6ea;
    padding: 10px 10px 6px;
    box-shadow: 0 8px 18px rgba(60, 35, 10, 0.35);
}
.notebook-polaroid:nth-child(3n + 1) { transform: rotate(-2deg); }
.notebook-polaroid:nth-child(3n + 2) { transform: rotate(1.5deg); }
.notebook-polaroid:nth-child(3n) { transform: rotate(-1deg); }
.notebook-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.notebook-polaroid figcaption {
    padding-top: 6px;
    text-align: center;
    font-family: var(--nb-font-sc);
    font-size: 15px;
    color: #4a3420;
}

.notebook-return {
    max-width: 820px;
    margin: 40px auto 0;
    text-align: center;
    font-family: var(--nb-font-sc);
    font-size: 16px;
    letter-spacing: 0.08em;
}

@media print {
    .notebook-stage { background: none; padding: 0; color: #000; }
    .notebook-paper, .notebook-grain, .notebook-breadcrumb, .notebook-return { display: none; }
    .notebook-polaroid { transform: none; box-shadow: none; }
}
