/* ============================================================================
   About page — a warm scrapbook album leaf resting on the dark mat.
   Loaded AFTER style.css. All type is Caveat (handwritten). Every tilt/offset
   lives here in classes: the page CSP is style-src 'self', so inline style=""
   attributes and <style> blocks are dropped. New class names throughout, so
   the old .about* / .mail* / .bee* rules in style.css simply never match.
   ============================================================================ */

body.about-page {
    --paper:      #f0e3c6;
    --paper-warm: #f6ecd5;
    --paper-deep: #e4d0a6;
    --card:       #faf4e6;
    --ink:        #43331f;
    --ink-soft:   #6c5636;
    --red:        #c25a43;

    background:
        radial-gradient(125% 95% at 50% 8%, #221b12 0%, #14100b 58%, #0c0906 100%);
    color: #ece5da;
    min-height: 100vh;
    min-height: 100dvh;
}

.album {
    max-width: 1040px;
    margin: 0 auto;
    padding: 94px 16px 78px;
}

/* ---- the paper leaf ---------------------------------------------------- */
/* The leaf reads as a real, lightly worn sheet built from stacked layers:
     .leaf background   — a warm cream fill with only a soft edge vignette; all
                          the fine variation comes from the fibre layer above,
                          so there is no gradient banding to give the CSS away.
     .leaf-grain        — the #paper-tex SVG filter: fractalNoise lit into raised
                          paper fibre (real tooth), multiplied over the cream.
     .leaf::before      — the site's own grain.png at a whisper, for micro-grit.
     .leaf::after       — the crease/fold lines: a thin shadow paired with an
                          adjacent highlight so each reads as a raised ridge.
   Everything is same-document (no data: URIs). Content sits above at z 2. */
.leaf {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 50px 26px 84px;
    isolation: isolate;              /* keep the multiply blend inside the leaf */
    background:
        /* worn, slightly darkened edges */
        radial-gradient(118% 116% at 50% 46%, transparent 74%, rgba(74, 52, 26, 0.12) 100%),
        /* the paper fill: a gentle warm-to-deep cream, kept broad and low
           contrast so it never bands; the fibre layer does the real texturing */
        linear-gradient(176deg, var(--paper-warm) 0%, var(--paper) 52%, var(--paper-deep) 100%);
    /* barely-perceptible irregular corners so the edge doesn't read machine-cut */
    border-radius: 7px 5px 8px 6px / 6px 8px 5px 7px;
    color: var(--ink);
    box-shadow:
        0 34px 74px rgba(0, 0, 0, 0.58),
        0 8px 20px rgba(0, 0, 0, 0.42),
        inset 0 0 66px rgba(120, 88, 38, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* raised paper fibre — the #paper-tex filter paints an opaque, softly lit cream
   fibre surface across this layer; multiply drops its fibre shadows onto the
   leaf's cream fill so the sheet gains genuine tooth. Painted once (static). */
.leaf-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    filter: url(#paper-tex);
    mix-blend-mode: multiply;
    opacity: 0.7;
}
/* micro-grit from the site's own asset, barely there over the fibre */
.leaf::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../assets/grain.png');
    background-size: 220px;
    background-repeat: repeat;
    opacity: 0.09;
    mix-blend-mode: multiply;
    border-radius: inherit;
    pointer-events: none;
}
/* crease / fold lines. Each layer is one thin line: a low-opacity shadow stop
   immediately followed by a highlight stop, so the pair reads as a ridge
   catching light on one side. Angles, positions and widths are varied so none
   look machine-ruled; a couple run out of the corners like the long radiating
   creases of well-handled paper. Normal compositing keeps the highlights. */
.leaf::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    /* Very faint now: only the three longest radiating creases survive, each at
       roughly half its former opacity, so the sheet reads as clean textured
       paper and the creases register only when looked for. */
    background-image:
        linear-gradient(31deg,  transparent 0 40.6%, rgba(64, 46, 22, 0.04) 40.9%, rgba(64, 46, 22, 0.006) 41.4%, rgba(255, 251, 242, 0.11) 41.7%, transparent 42.2% 100%),
        linear-gradient(118deg, transparent 0 55.8%, rgba(64, 46, 22, 0.035) 56.1%, rgba(64, 46, 22, 0.006) 56.6%, rgba(255, 251, 242, 0.095) 56.9%, transparent 57.5% 100%),
        linear-gradient(4deg,   transparent 0 79.2%, rgba(64, 46, 22, 0.025) 79.5%, rgba(255, 250, 240, 0.07) 80.0%, transparent 80.6% 100%);
}
.leaf > * { position: relative; z-index: 2; }

/* faint centre fold — only on wide screens, where the leaf reads as a spread */
.leaf-fold { display: none; }

/* ---- masthead ---------------------------------------------------------- */
.leaf-head { text-align: center; margin-bottom: 6px; }
.leaf-title {
    font-family: 'Caveat', 'Roboto Serif', serif;
    font-weight: 700;
    font-size: clamp(3rem, 12vw, 4.6rem);
    line-height: 0.86;
    color: var(--ink);
    transform: rotate(-1.6deg);
}
.scrawl {
    font-family: 'Caveat', 'Roboto Serif', serif;
    line-height: 1.36;
    color: var(--ink);
}

/* Hand-inked prose: js/about.js splits each handwritten element into per-word
   .ink-word spans with a seeded baseline drift / tilt / size / ink-density
   wobble; the #ink-about SVG filter then roughens every stroke edge. Applied to
   the prose only (title, intro, notes, captions, outro, sign-off); nothing here
   animates, so the filter never re-rasters. */
.inked { filter: url(#ink-about); }
.ink-word {
    display: inline-block;
    transform-origin: center bottom;
}
.intro {
    font-size: clamp(1.4rem, 4.6vw, 1.62rem);
    text-align: center;
    max-width: 30ch;
    margin: 12px auto 18px;
}
.intro-2 {
    max-width: 34ch;
    margin-bottom: 30px;
    color: var(--ink-soft);
}

/* ---- mounted photos ---------------------------------------------------- */
.mounts { position: relative; }
.mount { max-width: 372px; margin: 0 auto 40px; }

.print {
    position: relative;
    background: var(--card);
    padding: 12px 12px 8px;
    border-radius: 3px;
    box-shadow:
        0 16px 30px rgba(38, 24, 8, 0.42),
        0 4px 9px rgba(38, 24, 8, 0.32);
}
.print img {
    display: block;
    width: 100%;
    height: auto;
    background: #d8cbb2;
    filter: saturate(1.04) contrast(1.01);
}
.print-cap {
    font-family: 'Caveat', 'Roboto Serif', serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 4.6vw, 1.5rem);
    color: var(--ink);
    text-align: center;
    line-height: 1.05;
    padding: 8px 4px 2px;
}
.note {
    font-size: clamp(1.24rem, 4.2vw, 1.42rem);
    color: var(--ink-soft);
    max-width: 30ch;
    margin: 14px auto 0;
    text-align: center;
}

/* per-print tilt (kept modest so rotated corners never reach the leaf edge) */
.m-bromo    .print { transform: rotate(-1.6deg); }
.m-alaska   .print { transform: rotate( 2.2deg); }
.m-petra    .print { transform: rotate(-2.3deg); }
.m-giza     .print { transform: rotate( 1.9deg); }
.m-aqaba    .print { transform: rotate(-2.0deg); }
.m-taj      .print { transform: rotate( 2.4deg); }
.m-hongkong .print { transform: rotate(-2.4deg); }
.m-yunnan   .print { transform: rotate( 1.8deg); }
.m-seoul    .print { transform: rotate(-2.2deg); }
.m-sunset   .print { transform: rotate( 2.1deg); }

.m-bromo    .note { transform: rotate(-0.7deg); }
.m-alaska   .note { transform: rotate( 0.8deg); }
.m-petra    .note { transform: rotate(-0.8deg); }
.m-giza     .note { transform: rotate( 0.7deg); }
.m-aqaba    .note { transform: rotate(-0.7deg); }
.m-taj      .note { transform: rotate( 0.8deg); }
.m-hongkong .note { transform: rotate(-0.8deg); }
.m-yunnan   .note { transform: rotate( 0.7deg); }
.m-seoul    .note { transform: rotate(-0.8deg); }
.m-sunset   .note { transform: rotate( 0.8deg); }

/* washi-tape tabs holding the top corners */
.tape {
    position: absolute;
    top: -13px;
    width: 76px;
    height: 26px;
    z-index: 4;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 6px, rgba(255,255,255,0) 6px 12px),
        linear-gradient(180deg, #e7d6a8 0%, #dcc88f 100%);
    box-shadow: 0 2px 5px rgba(38, 24, 8, 0.22);
    opacity: 0.9;
}
.tape::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px dashed rgba(120, 92, 40, 0.28);
    border-right: 1px dashed rgba(120, 92, 40, 0.28);
}
.tape-a { left: 12px;  transform: rotate(-8deg); }
.tape-b { right: 12px; transform: rotate(7deg); }

/* paper photo-corners */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 4;
    background: linear-gradient(135deg, rgba(58, 42, 22, 0.82) 0 45%, transparent 45%);
}
.corner-tl { top: 3px;  left: 3px; }
.corner-tr { top: 3px;  right: 3px; transform: rotate(90deg); }
.corner-br { bottom: 34px; right: 3px; transform: rotate(180deg); }

/* ---- closing letter + sign-off ---------------------------------------- */
.closing { margin-top: 6px; }
.outro {
    font-size: clamp(1.32rem, 4.4vw, 1.5rem);
    color: var(--ink);
    max-width: 34ch;
    margin: 0 auto 18px;
    text-align: center;
}
/* The red ink colour alone marks this as a link; no underline (the per-word
   .ink-word spans would break a real underline into "reach_out_to_us"). Keyboard
   focus still gets a clearly visible outline. */
.reach {
    color: var(--red);
    text-decoration: none;
}
.reach:hover { color: #a8412d; text-decoration: none; }
.reach:focus-visible {
    color: #a8412d;
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* the sign-off, larger, like the closing lines of a letter */
.sign-off {
    text-align: center;
    margin: 26px auto 0;
    line-height: 1.02;
}
.sign-best {
    display: block;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    color: var(--ink-soft);
    transform: rotate(-1.4deg);
}
.sign-names {
    display: inline-block;
    margin-top: 6px;
    font-size: clamp(2.6rem, 10vw, 3.6rem);
    font-weight: 700;
    color: var(--ink);
    transform: rotate(-2.2deg);
}

/* ---- wide screens: open the leaf into a two-page spread ---------------- */
@media (min-width: 900px) {
    .leaf {
        max-width: 940px;
        padding: 66px 58px 88px;
    }
    .leaf-fold {
        display: block;
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 50%;
        width: 46px;
        transform: translateX(-50%);
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(96, 70, 30, 0.06) 42%,
            rgba(96, 70, 30, 0.08) 50%,
            rgba(96, 70, 30, 0.06) 58%,
            transparent 100%);
        z-index: 1;
        pointer-events: none;
    }
    .intro   { max-width: 40ch; font-size: 1.66rem; margin-bottom: 14px; }
    .intro-2 { max-width: 52ch; font-size: 1.62rem; margin-bottom: 40px; }

    /* rows of print + margin note, alternating sides down the spread. Overlaps
       are kept small so the all-pairs note/print collision check stays clean
       with ten mounts on the page. */
    .mount {
        display: flex;
        align-items: center;
        gap: 42px;
        max-width: none;
        margin: 0 auto 20px;
    }
    .mount:nth-child(even) { flex-direction: row-reverse; }
    .print { width: 48%; flex: 0 0 48%; }
    .m-port .print { width: 40%; flex: 0 0 40%; }
    .note {
        flex: 1;
        max-width: 24ch;
        margin: 0;
        text-align: left;
        font-size: 1.56rem;
    }
    .mount:nth-child(even) .note { text-align: right; margin-left: auto; }

    /* the hero sits centred and larger, its note beneath it */
    .m-bromo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin: 0 auto 30px;
    }
    .m-bromo .print { width: 66%; flex: none; }
    .m-bromo .note  { text-align: center; max-width: 40ch; }

    /* gentle interlock: pull each following row up a touch so the page reads
       piled, not gridded. Small values keep clearances positive. */
    .m-alaska   { margin-top: -6px; }
    .m-petra    { margin-top: -10px; }
    .m-giza     { margin-top: -10px; }
    .m-aqaba    { margin-top: -10px; }
    .m-taj      { margin-top: -10px; }
    .m-hongkong { margin-top: -10px; }
    .m-yunnan   { margin-top: -10px; }
    .m-seoul    { margin-top: -10px; }
    .m-sunset   { margin-top: -10px; }

    .m-bromo    .print { transform: rotate(-1.8deg); }
    .m-alaska   .print { transform: rotate( 2.5deg); }
    .m-petra    .print { transform: rotate(-2.6deg); }
    .m-giza     .print { transform: rotate( 2.3deg); }
    .m-aqaba    .print { transform: rotate(-2.4deg); }
    .m-taj      .print { transform: rotate( 2.6deg); }
    .m-hongkong .print { transform: rotate(-2.6deg); }
    .m-yunnan   .print { transform: rotate( 2.2deg); }
    .m-seoul    .print { transform: rotate(-2.5deg); }
    .m-sunset   .print { transform: rotate( 2.4deg); }

    .m-alaska   .note { transform: rotate( 1.4deg); }
    .m-petra    .note { transform: rotate(-1.4deg); }
    .m-giza     .note { transform: rotate( 1.3deg); }
    .m-aqaba    .note { transform: rotate(-1.3deg); }
    .m-taj      .note { transform: rotate( 1.4deg); }
    .m-hongkong .note { transform: rotate(-1.4deg); }
    .m-yunnan   .note { transform: rotate( 1.2deg); }
    .m-seoul    .note { transform: rotate(-1.4deg); }
    .m-sunset   .note { transform: rotate( 1.3deg); }

    .closing { margin-top: 30px; }
    .outro   { max-width: 56ch; font-size: 1.6rem; }
}
