/* pinknblue.css - responsive, recolored to the sky palette:
   Platinum #EEE2DF, Thistle #DEC1DB, Liberty #5B61B2, Bleu de France #2F80E4, Little Boy Blue #6DA0E1 */
:root {
    --platinum: #eee2df;
    --thistle: #dec1db;
    --liberty: #5b61b2;
    --bleu: #2f80e4;
    --boy: #6da0e1;
    --ink: #3f4488;      /* darker Liberty, for body text so it's easy to read */
    --visited: #8b6aa8;  /* darker thistle, for visited links */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: "FiraMono";
    src: url("FiraMonoNerdFont-Regular.otf");
    font-display: swap;
}

body {
    background-image: url("bgclouds.png");
    background-color: var(--boy);
    font-family: "FiraMono", ui-monospace, Menlo, Consolas, monospace;
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: clamp(8px, 3vw, 32px);
    overflow-wrap: anywhere;
}

ul { list-style: none; line-height: 25px; }

a { color: var(--liberty); }
a:hover { color: var(--bleu); }
a:visited { color: var(--visited); }
a:visited:hover { color: var(--bleu); }

h1 {
    font-size: clamp(20px, 3.5vw, 25px);
    text-decoration: underline;
    padding-bottom: 5px;
    color: var(--liberty);
}
p { margin-bottom: 5px; }
img { max-width: 100%; height: auto; }

/* ---------- window ---------- */
.main {
    width: min(100%, 760px);
    background-color: var(--platinum);
    padding: 10px;
    border-radius: 5px;
}

.titlebar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--bleu);
}
.titlebar img { height: 20px; width: auto; }

/* ---------- layout: 2 columns that collapse to 1 on small screens ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    margin-top: 15px;
}
.side, .content { display: flex; flex-direction: column; gap: 15px; min-width: 0; }

.icon { width: 100%; max-width: 200px; aspect-ratio: 1 / 1; object-fit: cover; }

.head {
    border-bottom: 2px solid var(--bleu);
    padding-bottom: 4px;
    font-size: clamp(20px, 3.5vw, 25px);
    color: var(--bleu);
}

/* ---------- boxes (heights are minimums, so text never overflows) ---------- */
.box1, .box2, .box3, .box4, .box5, .box6 {
    border: 2px solid var(--bleu);
    border-radius: 5px;
    padding: 10px;
}
.box1 { background-color: var(--thistle); min-height: 110px; }
.box3 { background-color: var(--thistle); min-height: 100px; }
.box5 { background-color: var(--thistle); min-height: 60px; }
.box4 {
    background-color: var(--boy);
    background-image: url("clouds.png");
    background-size: cover;
    min-height: clamp(160px, 30vw, 300px);
}

/* dark boxes: light text and light links */
.box2 { background-color: var(--liberty); color: var(--platinum); min-height: 200px; }
.box6 { background-color: var(--bleu); color: #fff; min-height: 120px; }
.box2 h1 { color: var(--platinum); }
.box2 a, .box2 a:visited { color: var(--platinum); }
.box6 a, .box6 a:visited { color: #fff; }
.box2 a:hover, .box2 a:visited:hover { color: var(--thistle); }
.box6 a:hover, .box6 a:visited:hover { color: var(--thistle); }

.horizontal2 { width: 100%; border: 2px solid var(--bleu); }

@media (max-width: 600px) {
    .layout { grid-template-columns: 1fr; }
    .side { align-items: center; }
    .side > .box2, .side > .box3 { width: 100%; }
}

/* ---------- horizontal image scroller (zine pages) ---------- */
.scroller-wrap { position: relative; }
.scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 2px 14px;
    scrollbar-color: var(--bleu) var(--thistle);
}
.scroller figure {
    flex: 0 0 auto;
    scroll-snap-align: center;
    max-width: 85%;
}
.scroller img {
    display: block;
    height: clamp(220px, 55vh, 520px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 2px solid var(--bleu);
    border-radius: 5px;
    background: var(--platinum);
}
.scroller figcaption { font-size: 13px; margin-top: 4px; color: var(--ink); }

.scroll-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.scroll-btns button {
    font: inherit;
    color: var(--platinum);
    background: var(--bleu);
    border: 2px solid var(--bleu);
    border-radius: 5px;
    padding: 2px 12px;
    cursor: pointer;
}
.scroll-btns button:hover { background: var(--liberty); border-color: var(--liberty); }

.counter { text-align: center; font-size: 14px; align-self: center; }
.download { margin-top: 10px; font-size: 14px; }
