/* Round 10 · shared brand base for the main page and the resources sub page (2026 TKS guideline).
   Loaded right before home.css (a.html, pub-a.html) and resources-r10.css (resources.html). Rules moved unchanged from
   home.css, in their original order. Plans: ../../../ROUND10-PLAN.md, ../../../ROUND10-RESOURCES-PLAN.md. */

/* Round 10e: brand fonts from github.com/tks-world/tks-brand (assets/fonts, 22 Oct 2026). Mediamoure for headings and
   titles; PP Neue Montreal v2.600 for functional text (these faces come after the frozen a.css/common.css ones, so they win).
   The supplied Mediamoure has no – ’ · + $; PP Editorial New stays only as the per-glyph fallback for those characters. */
@font-face { font-family: "Mediamoure"; src: url("fonts/brand/Mediamoure-Regular.woff2") format("woff2"), url("fonts/brand/Mediamoure-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mediamoure"; src: url("fonts/brand/Mediamoure-Italic.woff2") format("woff2"), url("fonts/brand/Mediamoure-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "TKS Serif Fallback"; src: url("fonts/PPEditorialNew-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TKS Serif Fallback"; src: url("fonts/PPEditorialNew-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/brand/PPNeueMontreal-Book.woff2") format("woff2"), url("fonts/brand/PPNeueMontreal-Book.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/brand/PPNeueMontreal-Italic.woff2") format("woff2"), url("fonts/brand/PPNeueMontreal-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/brand/PPNeueMontreal-Medium.woff2") format("woff2"), url("fonts/brand/PPNeueMontreal-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("fonts/brand/PPNeueMontreal-Bold.woff2") format("woff2"), url("fonts/brand/PPNeueMontreal-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --page: #FDFCFB; --band: #FDFCFB; --ink: #231F20; --muted: #615E5A; --body: #4A4645;
  --line: #D3CCC4; --line-soft: #EDE6DF; --warm-1: #F4F1ED; --warm-2: #F0EAE4; --warm-3: #EDE6DF;
  --green: #51B04C; --green-200: #8BCA88; --green-400: #6EBD6A; --green-700: #367533; --green-800: #295826; --green-900: #1B3B19;
  --green-tint: #C5E5C3; --green-ring: #E3F1E2;
  --serif: "Mediamoure", "TKS Serif Fallback", Georgia, "Times New Roman", serif;
  --s-tight: 16px; --s-intro: clamp(40px, 4vw, 56px); --s-chapter: clamp(128px, 14vw, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-ui: cubic-bezier(.22, 1, .36, 1);
  --win-r: 28px; --win-r-sm: 20px; --card-r: 20px;
  --panel-margin: 0px; --panel-radius: 0px; --card-radius: var(--card-r);
  --t-ground: var(--green-900); --forest: var(--green-900);
}
@media (max-width: 760px) { :root { --s-chapter: clamp(72px, 18vw, 96px); --win-r: 20px; } }

html, body { background: var(--page); }
body { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 0; background: var(--page); }
.site-header__row { padding-block: 28px; gap: 18px; }
.site-header__mark img { width: 49px; height: auto; } /* Round 15: 49 px on both pages, like tks.world (home.css keeps its own 49/54 px rules) */
.site-header__divider { height: 28px; background: var(--line); }
.site-header__label { font: 500 18px/1.2 "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif; }

/* Buttons: green with Soft Black text (never small white on bright green, p.38). */
.btn { border-radius: 999px; min-height: 52px; padding-inline: 28px; font-weight: 500; transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui); }
.btn:active { transform: translateY(1px); }
.btn--green, .btn--green:visited { background: var(--green); color: var(--ink); }
.btn--green:hover, .btn--green:focus-visible { background: #44933F; color: var(--ink); }
a { transition: color 160ms var(--ease-ui); }

/* ---------- Reveal (only when the script turns it on; content is visible without JS) ---------- */
html[data-reveal="on"] [data-rv]:not([data-rv-done]) { opacity: 0; transform: translateY(14px); }
html[data-reveal="on"] [data-rv="media"]:not([data-rv-done]) { transform: translateY(24px) scale(.97); }
html[data-reveal="on"] [data-rv="group"]:not([data-rv-done]) > * { opacity: 0; transform: translateY(12px); }
html[data-reveal="on"] [data-rv="group"]:not([data-rv-done]) { opacity: 1; transform: none; }
html[data-reveal="on"] [data-rv="words"]:not([data-rv-done]) { opacity: 1; transform: none; }
html[data-reveal="on"] [data-rv="words"]:not([data-rv-done]) .w > span { transform: translateY(110%); }
html[data-reveal="on"] [data-rv] { transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
html[data-reveal="on"] [data-rv="media"] { transition-duration: 800ms; transition-delay: 100ms; }
html[data-reveal="on"] [data-rv="group"] > * { transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 4) * 60ms); }
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
html[data-reveal="on"] [data-rv="words"] .w > span { transition: transform 900ms var(--ease-out); transition-delay: calc(min(var(--i, 0) * 45ms, 360ms)); }
html[data-reveal="on"] [data-rv-instant], html[data-reveal="on"] [data-rv-instant] * { transition: none !important; }
.r10-sweep .w > span { transition: color 280ms ease-in; }
html[data-reveal="on"] .r10-sweep:not([data-sweep-done]) .w > span { color: var(--green); }

/* R10-REV-04: functional text is PP Neue Montreal (guideline p.5); a.css put Geist first in --ui. Main page only. */
:root { --ui: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif; }

/* R10-R2-01: hover/focus stay ≥4.5:1 with Soft Black text (Green 400 #6EBD6A, 7.1:1). */
.btn--green:hover, .btn--green:focus-visible { background: var(--green-400); color: var(--ink); }

/* Round 10f (Damian, 2026-10-22): back to the brand guide's button style B, TKS Green with Soft Black text (5.95:1),
   replacing the round 10c Green 700 + white buttons. Hover/focus stays on Green 400 (the R10-R2-01 rule above). */

/* Round 15: the torn-paper tile (round 10f), shared by both pages. 1280×40, starts and ends at the same height, so it repeats without a seam. */
:root { --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20L15 26L36 29L51 24L72 27L82 30L97 28L117 23L132 24L141 27L163 27L171 25L185 28L203 24L221 15L229 22L238 12L249 21L266 9L281 12L298 17L314 10L326 13L344 8L362 12L378 21L399 12L411 16L422 20L430 15L450 18L459 27L473 19L481 29L489 22L511 32L526 25L545 26L554 27L565 30L577 24L589 23L603 27L612 18L631 16L639 20L654 15L670 13L686 12L705 18L719 15L728 12L739 7L760 19L780 15L802 9L812 15L833 19L850 15L860 17L872 16L889 21L901 23L910 20L927 28L935 28L948 28L958 33L973 31L983 31L993 28L1005 30L1026 25L1045 18L1064 22L1080 15L1094 22L1111 11L1119 10L1127 15L1139 11L1158 12L1172 17L1189 13L1205 10L1224 21L1234 12L1250 19L1267 20L1280 20V40Z'/%3E%3C/svg%3E"); }

/* R16-10 · Photo wall: the drifting ground behind the closing card on both pages. */
.r16-wall { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.r16-wall.is-dragging { cursor: grabbing; }
.r16-wall__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 18vw, 260px); gap: 16px; padding-inline: 24px; width: max-content; will-change: transform; }
.r16-wall__col { display: flex; flex-direction: column; gap: 16px; }
.r16-wall__col:nth-child(odd) { padding-top: 40px; }
.r16-wall__col:nth-child(3n) { padding-top: 72px; }
.r16-wall__col > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--win-r-sm); pointer-events: none; }
/* R17: an Explore module card, same square as the photos: picture on top, tag and title below. */
.r16-wall__mod { display: flex; flex-direction: column; aspect-ratio: 1; overflow: hidden; border-radius: var(--win-r-sm); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--ink); text-align: left; pointer-events: none; }
.r16-wall__mod img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; }
.r16-wall__mod p { margin: 0; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.r16-wall__mod span { font: 500 12px/16px var(--ui); color: var(--green-800); }
.r16-wall__mod b { font: 500 18px/22px var(--ui); }
