/* /presa, the media kit (src/presa.ts). Every rule is scoped under .presa; it uses the site's tokens. The logo previews
   keep their own fixed backgrounds (paper, the notebook cover, a photo): they show where each file goes, in either theme. */
.presa { --gap: clamp(1rem, 3vw, 2rem); }
.presa h3 { margin: 2rem 0 0.75rem; font: 600 1.05rem/1.4 var(--serif); color: var(--text); }
.presa section { margin-top: 1rem; }
.presa-lede { max-width: 42rem; font-size: 1.2rem; line-height: 1.6; }
.presa-note { color: var(--muted); font-size: 0.95rem; }

/* the numbers, written in the teacher's red pen */
.presa-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.5rem var(--gap); margin: 2rem 0 0.25rem; }
.presa-num { display: flex; flex-direction: column-reverse; padding: 0.5rem 0 0.75rem; border-bottom: 1px solid var(--rule); }
.presa-num dd { margin: 0; font: 300 2rem/1.5 var(--hand); color: var(--red); }
.presa-num dt { color: var(--muted); font-size: 0.95rem; }
.presa-num dt a { color: inherit; }
.presa-num.big { grid-column: 1 / -1; }
.presa-num.big dd { font-size: clamp(2.6rem, 8vw, 3.6rem); color: var(--ink); }
.presa-num.big dt { font-size: 1.05rem; color: var(--text); }

/* the big download */
.presa-get { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2.5rem 0 1rem; padding: 1.5rem;
  border-radius: 0.6rem; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.presa-get p { flex: 1 1 18rem; margin: 0; color: var(--muted); }
.presa .presa-zip { font-size: 1.35rem; padding: 0.7rem 1.8rem; }
.presa .presa-zip::before { content: "↓ "; }

/* the AI note: a correction in red pen in the margin */
.presa-ai { margin: 2rem 0; padding: 0.25rem 1.25rem 0.5rem; border-left: 3px solid var(--red); background: color-mix(in srgb, var(--red) 6%, transparent); }
.presa-ai h2 { margin-top: 0.75rem; font-size: 1.3rem; color: var(--red); }
.presa-copy { max-width: 42rem; }

/* logo previews */
.presa-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--gap); }
.presa-logo, .presa-mark { margin: 0; }
.presa-on { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 1.5rem 16%; border-radius: 0.5rem; border: 1px solid var(--hair); }
.presa-on img { width: 100%; height: auto; }
.presa-on.light { background: #fafbfd; }
.presa-on.dark { background: #1b2a63; }
.presa-on.photo { background: linear-gradient(rgb(10 15 35 / 0.35), rgb(10 15 35 / 0.35)), url(/poze/tanar.webp) center 30% / cover; }
.presa figcaption { display: flex; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; padding-top: 0.6rem; font-size: 0.95rem; line-height: 1.6; }
.presa figcaption span { color: var(--muted); }
.presa .presa-dl { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 0.9rem; color: var(--text); }
.presa-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--gap); margin-top: 2rem; }
.presa-mark { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start; }
.presa-mark img { width: 5.5rem; height: auto; border-radius: 22%; }
.presa-mark figcaption { padding-top: 0; }
.presa-rules { padding-left: 1.2rem; max-width: 46rem; }
.presa-rules li { margin-bottom: 0.5rem; }
.presa-rules li::marker { color: var(--red); }
.presa-rules .first { font-family: var(--hand); font-size: 1.1rem; line-height: 1.9; color: var(--red); }

/* colours */
.presa-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.25rem var(--gap); margin: 0; padding: 0; list-style: none; }
.presa-colors li { display: grid; grid-template-columns: 3.5rem 1fr; grid-template-rows: auto auto 1fr; column-gap: 0.9rem; font-size: 0.95rem; line-height: 1.45; }
.presa-colors li span:last-child { grid-column: 2; color: var(--muted); }
.presa-colors code { grid-column: 2; font-size: 0.95rem; -webkit-user-select: all; user-select: all; }
.presa-sw { grid-row: 1 / 4; width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.sw-233d91 { background: #233d91; } .sw-c81e2b { background: #c81e2b; } .sw-fafbfd { background: #fafbfd; } .sw-1b2a63 { background: #1b2a63; }
.sw-34353b { background: #34353b; } .sw-ff5a52 { background: #ff5a52; } .sw-eef1fb { background: #eef1fb; } .sw-ef4651 { background: #ef4651; }

/* type */
.presa-fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gap); }
.presa-fonts > div { padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.presa-fonts > div > p:first-child { min-height: 4.5rem; display: flex; align-items: center; margin-bottom: 0.5rem; color: var(--ink); }
.presa-hand { font: 300 1.9rem/1.5 var(--hand); }
.presa-serif { font: 400 1.35rem/1.45 var(--serif); }
.presa-word img { width: 11rem; height: auto; }
.presa .presa-word { padding: 0.75rem 1rem; border-radius: 0.5rem; background: #fafbfd; box-shadow: inset 0 0 0 1px var(--hair); }

/* photos */
.presa-grid { display: grid; gap: 1.25rem var(--gap); margin: 0; padding: 0; list-style: none; }
.presa-grid.photos, .presa-grid.drawings { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.presa-grid.faces { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.75rem; }
.presa-grid a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--text); font-size: 0.95rem; line-height: 1.4; }
.presa-grid img { width: 100%; height: auto; border-radius: 0.3rem; background: var(--rule); }
.presa-grid.photos img { aspect-ratio: 3 / 4; object-fit: cover; }
.presa-grid.drawings img { aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--hair); }
.presa-grid.faces img, .presa-grid.trio img { aspect-ratio: 1; object-fit: cover; }
/* the expressions: one row per age, its two sets of three (today, the '80s) side by side, each set kept whole */
.presa-age h4 { margin: 1.25rem 0 0.4rem; font: 600 0.95rem/1.4 var(--serif); color: var(--text); }
.presa-eras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.75rem var(--gap); }
.presa-era { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.85rem; }
.presa-grid.trio { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.presa-grid a span { margin-top: 0.3rem; }
.presa-grid small { color: var(--muted); font-size: 0.82rem; }
.presa-grid a:hover span { color: var(--red); text-decoration: underline; }
.presa-grid a:hover img { outline: 3px solid var(--red); outline-offset: 2px; }

/* covers and profile pictures */
.presa-covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem var(--gap); margin: 0; padding: 0; list-style: none; }
.presa-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1.5rem var(--gap); margin: 2rem 0 0; padding: 0; list-style: none; }
.presa-covers img, .presa-profiles img { display: block; width: 100%; height: auto; border-radius: 0.3rem; box-shadow: 0 0 0 1px var(--hair), 0 10px 24px -14px rgb(15 25 60 / 0.5); }
.presa-profiles img.round { border-radius: 50%; }
.presa-covers p, .presa-profiles p { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.45; }
.presa-covers p span, .presa-profiles p span { display: block; color: var(--muted); }
.presa-profiles p small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.presa-covers a:hover img, .presa-profiles a:hover img { outline: 3px solid var(--red); outline-offset: 2px; }

/* the texts, selected whole with one click */
.presa-text { margin: 0; padding: 1.25rem 1.5rem; max-height: 32rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 400 0.95rem/1.65 var(--serif); color: var(--text); background: color-mix(in srgb, var(--ink) 5%, var(--paper));
  border: 1px solid var(--rule); border-radius: 0.5rem; -webkit-user-select: all; user-select: all; cursor: text; }

.presa [lang="en"] { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.presa [lang="en"] p { max-width: 42rem; }
.presa-contact { margin-top: 2rem; }

@media (max-width: 40rem) {
  .presa-grid.photos, .presa-grid.drawings { grid-template-columns: 1fr 1fr; }
  .presa-grid.faces { grid-template-columns: repeat(3, 1fr); }
  .presa-profiles { grid-template-columns: 1fr 1fr; }
  .presa-get { padding: 1.25rem 1rem; }
  .presa .presa-zip { width: 100%; text-align: center; }
}
