/* RABA-REDA · two-colour print: turquoise, dark ink, cream paper */
:root {
  --paper: #ebe4d0;
  --green: #009999;
  --green-ink: #009999;   /* green as printed on paper (REDA) */
  --ink: #252831;         /* blue-black print ink */

  --cut-w: min(560px, 84vw);
  --cut-h: calc(var(--cut-w) * 0.6);
  --col: min(720px, 88vw);

  --serif: "Besley", "Clarendon", Georgia, serif;
}

@font-face { font-family: Besley; font-weight: 400; src: url(fonts/besley-latin-400.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Besley; font-weight: 400; src: url(fonts/besley-latin-ext-400.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Besley; font-weight: 700; src: url(fonts/besley-latin-700.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Besley; font-weight: 700; src: url(fonts/besley-latin-ext-700.woff2) format("woff2"); font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, ::before, ::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}
a, button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.visually-hidden, .fx-defs {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* paper texture over everything */
.paper-grain {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  mix-blend-mode: multiply; opacity: .55;
}
.paper-grain svg { display: block; }

/* ---------- green top ---------- */
.cover-top {
  position: relative; isolation: isolate;
  padding: clamp(28px, 7vh, 80px) 16px calc(clamp(40px, 9vh, 100px) + var(--cut-h) / 2);
  text-align: center;
}
.green-band {
  position: absolute; z-index: -1;
  inset: -30px -30px 0 -30px;
  background: var(--green);
  filter: url(#edge);
}
.authors {
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: .02em;
  color: var(--ink);
  filter: url(#ink);
}
.authors span { padding: 0 .35em; }

/* ---------- linocut across the fold ---------- */
.cover { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.linocut {
  position: relative; z-index: 1;
  margin: calc(var(--cut-h) / -2) 0 0;
  width: var(--cut-w); height: var(--cut-h);
  cursor: pointer;
}
.linocut canvas { display: block; width: 100%; height: 100%; }

/* ---------- title ---------- */
.title { margin: clamp(28px, 5vh, 52px) 0 0; width: var(--col); line-height: 0; }
.logo { display: block; width: 100%; height: auto; overflow: visible; filter: url(#ink); }
.logo-raba { fill: var(--ink); }
.logo-reda { fill: var(--green-ink); }

.brush { display: block; width: var(--col); height: clamp(22px, 3.4vw, 32px); margin-top: clamp(14px, 2.4vw, 24px); }

/* ---------- menu ---------- */
.menu {
  width: var(--col);
  display: flex; justify-content: space-between;
  margin-top: clamp(16px, 2.6vw, 26px);
  font-size: clamp(15px, 1.9vw, 19px);
  filter: url(#ink);
}
.menu a, .menu button {
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  background: none; border: 0; padding: .3em 0; margin: 0;
  cursor: pointer; text-decoration: none;
}
.menu a:hover, .menu button:hover, .menu button[aria-expanded="true"] { color: var(--green-ink); }
.menu button[aria-expanded="true"] { text-decoration: underline 2px; text-underline-offset: .3em; }

/* ---------- panels ---------- */
.panel {
  width: min(600px, 88vw);
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6;
  hyphens: auto; text-wrap: pretty;
  animation: print-in .5s ease-out;
}
.panel p { margin: 0 0 .9em; }
#panel-contact, .panel-links { text-align: center; }
.panel-links p { margin: 0 0 .5em; }
.panel a { font-weight: 700; text-decoration: underline 1px; text-underline-offset: .2em; }
.panel a:hover { color: var(--green-ink); }
.panel-heading {
  margin: 1.4em 0 .6em;
  font-size: 1em; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.print-figure { margin: 1.2em auto 1.6em; width: min(360px, 80%); }
.print-figure img { display: block; width: 100%; height: auto; filter: url(#ink); }
@keyframes print-in { from { opacity: 0; } }

/* ---------- footer ---------- */
.colophon {
  margin-top: auto;
  padding: clamp(36px, 7vh, 72px) 16px max(24px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 70%, var(--paper));
}
.colophon p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
}
