/* Fonts are self-hosted (fonts/), so nothing is requested from Google before consent */
@font-face{ font-family:"Fraunces"; font-style:normal; font-display:swap; font-weight:100 900; src:url(../fonts/fraunces-latin-standard-normal.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Fraunces"; font-style:normal; font-display:swap; font-weight:100 900; src:url(../fonts/fraunces-latin-ext-standard-normal.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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:"Fraunces"; font-style:italic; font-display:swap; font-weight:100 900; src:url(../fonts/fraunces-latin-standard-italic.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Fraunces"; font-style:italic; font-display:swap; font-weight:100 900; src:url(../fonts/fraunces-latin-ext-standard-italic.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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:"IBM Plex Sans"; font-style:normal; font-display:swap; font-weight:100 700; src:url(../fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"IBM Plex Sans"; font-style:normal; font-display:swap; font-weight:100 700; src:url(../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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:"IBM Plex Sans"; font-style:normal; font-display:swap; font-weight:100 700; src:url(../fonts/ibm-plex-sans-greek-wght-normal.woff2) format("woff2"); unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }

:root{
  --paper:#F6E4C9;
  --paper-2:#F0D3A3;
  --ink:#3A2A1D;
  --ink-soft:#6B5540;
  --soil:#C1390B;
  --sage:#D9631E;
  --sage-2:#E8823C;
  --wheat:#D8431F;
  --line:#E3C299;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-sizing:border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html{ scroll-padding-top: 70px; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#2B1B10; --paper-2:#33210F; --ink:#F2DEC0; --ink-soft:#D9B98C;
    --soil:#F2934C; --sage:#E8823C; --sage-2:#F0A868; --wheat:#FF7A4D; --line:#4A331F;
  }
}
:root[data-theme="dark"]{
  --paper:#2B1B10; --paper-2:#33210F; --ink:#F2DEC0; --ink-soft:#D9B98C;
  --soil:#F2934C; --sage:#E8823C; --sage-2:#F0A868; --wheat:#FF7A4D; --line:#4A331F;
}

*{ margin:0; padding:0; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: var(--sage); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover, a:focus-visible{ border-bottom-color: currentColor; }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--wheat); outline-offset: 3px; }

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* soil-horizon marker: the one bold recurring element */
.horizon{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  display: flex;
  flex-direction: column;
}
.horizon span{ display:block; flex:1; }
.horizon .h1{ background: #E8823C; }
.horizon .h2{ background: #D9631E; }
.horizon .h3{ background: #C1390B; }
.horizon .h4{ background: #8A2E0A; }
@media (max-width: 640px){ .horizon{ display:none; } }

header.nav{
  position: sticky;
  top: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-name{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--soil);
}
.nav-links{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.nav-links a{ color: var(--ink-soft); }
.lang-toggle{
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--sage-2);
  color: var(--soil);
  border-radius: 4px;
  cursor: pointer;
}
.lang-toggle:hover{ background: var(--sage-2); color: var(--paper); }

main{ padding-left: 6px; }

section{
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type{ border-bottom: none; }

.hero{ padding-top: 64px; padding-bottom: 48px; }
.hero h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: var(--soil);
  letter-spacing: -0.01em;
}
.hero .role{
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero .pitch{
  margin-top: 24px;
  max-width: 46ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
}

h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--soil);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

p{ max-width: 62ch; color: var(--ink); }
.lede{ color: var(--ink-soft); max-width: 60ch; }

.entry{ margin-bottom: 28px; }
.entry:last-child{ margin-bottom: 0; }
.entry-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.entry-title{ font-weight: 600; font-size: 1.02rem; }
.entry-sub{ color: var(--sage-2); font-size: 0.95rem; }
.entry-dates{ font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.entry ul{
  margin-top: 10px;
  padding-left: 20px;
}
.entry li{ margin-bottom: 6px; color: var(--ink); max-width: 62ch; }
.entry .note{ margin-top: 8px; color: var(--ink); max-width: 62ch; }

.skills-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
@media (max-width: 560px){ .skills-grid{ grid-template-columns: 1fr; } }
.skill-group h3{
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.skill-group p{ color: var(--ink); font-size: 0.95rem; }

.extras ul{ list-style: none; }
.extras li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  max-width: 62ch;
}
.extras li:first-child{ border-top: none; }

.contact-list{ margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.98rem; }

footer{
  padding: 32px 0 48px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* --- game --- */
.game{ max-width: 420px; }
.plant-box{
  position: relative;
  height: 200px;
  margin: 8px 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.plant-pot{
  width: 70px; height: 34px;
  background: var(--soil);
  border-radius: 4px 4px 10px 10px;
  position: relative;
  z-index: 3;
}
.plant-stem{
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 5px;
  height: 4px;
  background: var(--sage);
  transform: translateX(-50%);
  border-radius: 3px;
  transition: height 0.5s ease;
  z-index: 1;
}
.plant-leaves{
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 0; height: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  z-index: 2;
}
.plant-leaves::before, .plant-leaves::after{
  content:"";
  position: absolute;
  width: 34px; height: 18px;
  background: var(--sage-2);
  border-radius: 60% 10% 60% 10%;
}
.plant-leaves::before{ left: -32px; top: -6px; transform: rotate(-15deg); }
.plant-leaves::after{ left: 4px; top: -6px; transform: rotate(15deg) scaleX(-1); }
.plant-fruit{
  position: absolute;
  left: 50%;
  width: 16px; height: 16px;
  background: #B5432B;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.5s ease, bottom 0.5s ease;
  z-index: 4;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.15);
}
.game-stats{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.stat-row{ display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.stat-row span{ width: 70px; flex-shrink: 0; }
.bar{ flex: 1; height: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill{ height: 100%; width: 50%; transition: width 0.4s ease; }
.game-controls{ display: flex; gap: 10px; flex-wrap: wrap; }
.game-controls button, #resetRow button{
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--sage-2);
  color: var(--sage);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.game-controls button:hover, #resetRow button:hover{
  background: var(--sage);
  color: var(--paper);
}
.game-message{ margin-top: 16px; font-size: 0.92rem; color: var(--ink); min-height: 1.4em; }
.growth-track{ margin-top: 10px; height: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.growth-fill{ height: 100%; width: 0%; background: var(--wheat); transition: width 0.4s ease; }

.bee{
  position: absolute;
  top: 20px;
  left: -40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.bee.flying{
  animation: bee-fly 6s linear forwards;
}
.bee-wing{ animation: bee-wing-flutter 0.15s ease-in-out infinite alternate; }
@keyframes bee-wing-flutter{
  from{ ry: 5; } to{ ry: 3; }
}
@keyframes bee-fly{
  0%{ opacity: 0; left: -40px; top: 40px; transform: rotate(-6deg); }
  8%{ opacity: 1; }
  25%{ left: 60px; top: 10px; transform: rotate(6deg); }
  50%{ left: 140px; top: 55px; transform: rotate(-8deg); }
  75%{ left: 210px; top: 5px; transform: rotate(6deg); }
  92%{ opacity: 1; }
  100%{ left: 300px; top: 30px; opacity: 0; transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce){
  .bee.flying{ animation: none; opacity: 1; left: 140px; top: 20px; }
}

.quote-block{
  border-left: 3px solid var(--sage-2);
  padding-left: 18px;
  margin-bottom: 22px;
  max-width: 60ch;
}
.quote-block:last-child{ margin-bottom: 0; }
.quote-text{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.5;
}
.quote-attr{
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.map-illustration{ width: 100%; max-width: 500px; height: auto; margin-top: 8px; }
.map-label{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}

.hero-flex{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-text{ flex: 1; min-width: 0; }
.hero-illustration{ width: 150px; height: auto; flex-shrink: 0; }
@media (max-width: 640px){ .hero-illustration{ display:none; } }

.skills-deco{ width: 100%; max-width: 340px; height: 46px; margin-top: 22px; }

.h2-icon{ width: 26px; height: 26px; vertical-align: -6px; margin-right: 10px; flex-shrink: 0; }

.entry.brief{
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.brief-line{
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 4px;
  max-width: 60ch;
}
.brief-line strong{
  color: var(--soil);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  margin-right: 6px;
}
.entry.brief .note{ margin-top: 12px; }


.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.gallery-grid img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.gallery-cap{
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}


/* ===== playful layer ===== */
.mini{ width: 22px; height: 22px; flex-shrink: 0; }
.skill-group h3{ display: flex; align-items: center; gap: 8px; }
.skill-group h3 .mini{ width: 24px; height: 24px; }
.entry-title{ display: flex; align-items: center; gap: 10px; }
.entry-title .mini{ width: 26px; height: 26px; padding: 4px; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 50%; box-sizing: content-box; }
.entry.brief .entry-title{ margin-bottom: 6px; }
.extras li{ display: flex; gap: 12px; align-items: flex-start; }
.extras li .mini{ width: 24px; height: 24px; margin-top: 1px; }
.contact-list > div{ display: flex; align-items: center; gap: 10px; }

/* wavy furrow dividers instead of flat rules */
section{ border-bottom: none; position: relative; }
main > section:not(:last-of-type)::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 48px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 50% / 48px 12px;
}

/* earthworm living in the soil stripe */
.worm{ position: absolute; left: -2px; top: 57%; width: 34px; height: 30px; pointer-events: none; }
@media (max-width: 640px){ .worm{ display: none; } }

/* ---- hero: seed packet ---- */
.hero-flex{ align-items: center; gap: 36px; }
.packet-wrap{ position: relative; width: 240px; flex-shrink: 0; padding: 22px 16px 8px; }
.packet{
  display: block; width: 100%; text-align: left; font: inherit; color: inherit;
  position: relative; cursor: pointer;
  background: var(--paper-2);
  border: 2px solid var(--soil);
  border-radius: 3px 3px 12px 12px;
  padding: 20px 14px 14px;
  transform: rotate(3deg);
  box-shadow: 7px 7px 0 var(--soil);
  transition: transform .25s ease;
}
.packet::before{ /* crimped top seal */
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 12px;
  background: radial-gradient(circle at 6px 12px, var(--paper-2) 5px, var(--soil) 5.5px) 0 0 / 12px 12px repeat-x;
  border-radius: 3px 3px 0 0;
}
.packet:hover{ transform: rotate(1deg); }
.packet:focus-visible{ outline: 2px solid var(--wheat); outline-offset: 6px; }
.packet.shake{ animation: packet-shake .6s ease; }
@keyframes packet-shake{
  0%,100%{ transform: rotate(3deg); }
  20%{ transform: rotate(-6deg) translateY(-4px); }
  40%{ transform: rotate(8deg) translateY(-6px); }
  60%{ transform: rotate(-4deg) translateY(-2px); }
  80%{ transform: rotate(5deg); }
}
.packet-kicker{ display: block; font-size: .72rem; font-weight: 600; color: var(--soil); margin-bottom: 8px; }
.packet-photo{
  display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 2px solid var(--soil); border-radius: 999px 999px 8px 8px;
  background: #1a1008;
}
.packet-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.packet-latin{ display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--ink-soft); }
.packet-name{ display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.05; color: var(--soil); }
.packet-meta{ display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 10px; padding-top: 8px; border-top: 1.5px dashed var(--sage-2); font-size: .74rem; color: var(--ink); }
.packet-meta b{ font-weight: 600; color: var(--ink-soft); }
.packet-cap{ margin-top: 18px; text-align: center; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--ink-soft); min-height: 1.4em; }

.sticker{
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--soil);
  display: grid; place-items: center; z-index: 2; pointer-events: none;
}
.sticker svg{ width: 30px; height: 30px; }
.sticker.s1{ top: 0; left: -6px; transform: rotate(-14deg); }
.sticker.s2{ top: 4px; right: -10px; transform: rotate(12deg); }
.sticker.s3{ bottom: 34px; right: -20px; transform: rotate(-8deg); width: 44px; height: 44px; }

.seed{
  position: absolute; top: 55%; width: 7px; height: 10px; border-radius: 50%;
  background: var(--wheat); z-index: 3; pointer-events: none;
  animation: seed-fall 1.1s cubic-bezier(.4,.1,.7,1) forwards;
}
@keyframes seed-fall{
  0%{ transform: translate(0,0) rotate(0); opacity: 1; }
  100%{ transform: translate(var(--dx), 190px) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .packet.shake{ animation: none; }
  .seed{ display: none; }
}
@media (max-width: 640px){
  .hero-flex{ flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .packet-wrap{ align-self: center; width: 220px; }
}

/* "right now" basil */
.now-flex{ display: flex; gap: 24px; align-items: flex-end; }
.now-flex .lede{ flex: 1; }
.basil{ width: 86px; height: auto; flex-shrink: 0; }
@media (max-width: 480px){ .basil{ width: 64px; } }

/* gallery as taped polaroids */
.gallery-grid{ gap: 26px; padding-top: 10px; }
.gallery-grid > div{
  position: relative; background: var(--paper-2); padding: 10px 10px 12px;
  border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--line);
  transform: rotate(-1.6deg);
}
.gallery-grid > div:nth-child(2){ transform: rotate(1.4deg); }
.gallery-grid > div:nth-child(3){ transform: rotate(-.6deg); }
.gallery-grid > div::before{
  content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--sage-2) 45%, transparent);
}
.gallery-grid img{ border-radius: 2px; }
.gallery-cap{ font-family: var(--serif); font-style: italic; font-size: .88rem; margin-top: 8px; }

.quote-block{ position: relative; }
.quote-block .qmark{ position: absolute; left: -12px; top: -14px; width: 22px; height: 22px; }

.foot-row{ display: block; width: 180px; height: 34px; margin-bottom: 10px; }

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  section{ padding: 40px 0; }
}

/* ===== Skip link ===== */
.skip-link{ position:absolute; left:12px; top:-60px; z-index:100; padding:10px 16px; background:var(--soil); color:var(--paper); border-radius:5px; font-weight:600; }
.skip-link:focus{ top:12px; }

/* ===== Erasmus+ footer: EU emblem, Erasmus+, I.NE.DI.VI.M. and Y-Cycle logos on white, project line, disclaimer ===== */
.site-foot{ padding-top: 40px; }
.eplus-logos{
  list-style:none; background:#FFFFFF; border:1px solid var(--line); border-radius:10px;
  padding:20px 24px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:18px 40px;
}
.eplus-logos img{ display:block; width:auto; max-width:100%; object-fit:contain; }
.eplus-logos .logo-eu{ height:80px; }
.eplus-logos .logo-eplus{ height:36px; }
.eplus-logos .logo-inedivim{ height:64px; }
.eplus-logos .logo-ycycle{ height:48px; }
.eplus-logos a{ display:block; border-bottom:none; }
.funding-made{ margin-top:20px; font-size:.9rem; color:var(--ink); max-width:none; }
.funding-disclaimer{ margin-top:10px; font-size:.8rem; line-height:1.55; color:var(--ink-soft); max-width:none; }
.foot-bottom{ margin-top:22px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 24px; }
.footer-links{ list-style:none; display:flex; flex-wrap:wrap; gap:4px 18px; }
.footer-links a, .footer-links button{ color:var(--ink-soft); font:inherit; font-size:.85rem; }
.footer-links button{ background:none; border:none; padding:0; cursor:pointer; border-bottom:1px solid transparent; }
.footer-links button:hover{ border-bottom-color:currentColor; }

/* ===== Cookie consent banner (GA4 Consent Mode v2) ===== */
.consent{
  position:fixed; z-index:60; left:16px; right:16px; bottom:16px; max-width:540px; margin:0 auto;
  padding:18px 20px 20px; background:var(--paper-2); color:var(--ink);
  border:2px solid var(--soil); border-radius:10px; box-shadow:6px 6px 0 var(--soil);
}
.consent[hidden]{ display:none; }
.consent-title{ font-family:var(--serif); font-weight:500; font-size:1.15rem; line-height:1.25; color:var(--soil); }
.consent-title:focus{ outline:none; }
.consent-body{ margin-top:8px; font-size:.92rem; line-height:1.55; color:var(--ink); max-width:none; }
.consent-actions{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.consent-actions button{
  font-family:var(--sans); font-size:.95rem; font-weight:600; min-height:46px; padding:10px 16px;
  background:var(--soil); color:var(--paper); border:2px solid var(--soil); border-radius:6px; cursor:pointer;
}
.consent-actions button:hover{ background:var(--ink); border-color:var(--ink); }

/* ===== Legal pages (privacy, cookies, accessibility) and 404 ===== */
.legal{ padding:56px 0 48px; }
.legal h1{ font-family:var(--serif); font-weight:500; font-size:clamp(2rem,5vw,2.8rem); line-height:1.1; color:var(--soil); }
.legal h2{ font-size:1.2rem; margin:30px 0 10px; display:block; }
.legal p, .legal li{ max-width:66ch; }
.legal ul{ padding-left:20px; margin-top:6px; }
.legal li{ margin-bottom:8px; }
.legal a{ border-bottom-color:currentColor; }
.legal-updated{ margin-top:10px; font-size:.85rem; color:var(--ink-soft); }
.legal-back{ display:inline-block; margin-bottom:22px; font-size:.92rem; }
.legal-table{ width:100%; border-collapse:collapse; margin-top:12px; font-size:.9rem; }
.legal-table th, .legal-table td{ text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.legal-table th{ color:var(--soil); font-weight:600; }
.legal-table code{ font-size:.85em; }
[data-lang-block][hidden]{ display:none; }

/* ===================================================================
   Mobile (phones and small landscape screens). Everything below only
   applies under these widths, so the desktop layout stays exactly the same.
   =================================================================== */
.menu-toggle{ display:none; }

/* Compact header: name, language and a Menu button on one row; the links open below */
@media (max-width: 640px), (max-width: 900px) and (max-height: 500px){
  .nav-inner{ flex-wrap:wrap; gap:8px 10px; padding:8px 16px; }
  .nav-name{ flex:1; min-width:0; display:flex; align-items:center; min-height:44px; }
  .lang-toggle{ min-height:44px; min-width:44px; padding:0 12px; font-size:.85rem; }
  .menu-toggle{
    display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px;
    font-family:var(--sans); font-size:.9rem; font-weight:600;
    background:var(--soil); color:var(--paper); border:1px solid var(--soil); border-radius:4px; cursor:pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after{
    display:block; width:16px; height:2px; background:currentColor; border-radius:1px; position:relative; transition:transform .2s ease;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after{ content:""; position:absolute; left:0; }
  .menu-toggle .bars::before{ top:-5px; }
  .menu-toggle .bars::after{ top:5px; }
  .nav-open .menu-toggle .bars{ background:transparent; }
  .nav-open .menu-toggle .bars::before{ transform:translateY(5px) rotate(45deg); }
  .nav-open .menu-toggle .bars::after{ transform:translateY(-5px) rotate(-45deg); }
  .nav-links{
    order:3; flex-basis:100%; display:none; flex-direction:column; gap:0; padding:4px 0 8px;
    max-height:calc(100vh - 80px); overflow-y:auto; font-size:1rem;
  }
  .nav-open .nav-links{ display:flex; }
  .nav-links a{ display:flex; align-items:center; min-height:44px; padding:0 4px; border-bottom:1px solid var(--line); color:var(--ink); }
  .nav-links a:last-child{ border-bottom:none; }
  html{ scroll-padding-top:72px; }
}

/* Small print that was under 12px on phones and tablets */
@media (max-width: 900px){
  .packet-kicker, .brief-line strong{ font-size:.78rem; }
  .packet-meta{ font-size:.78rem; }
}

@media (max-width: 640px){
  /* long links (LinkedIn, e-mail addresses) wrap instead of pushing the page sideways */
  .contact-list > div{ flex-wrap:wrap; }
  .contact-list a, .legal a, .funding-made a{ overflow-wrap:anywhere; }
  .legal p, .legal li{ overflow-wrap:break-word; }

  /* bigger tap targets */
  .contact-list a{ display:inline-flex; align-items:center; min-height:44px; }
  .game-controls button, #resetRow button{ min-height:44px; padding:10px 16px; }
  .game-controls{ gap:10px; }
  .footer-links{ gap:0 16px; }
  .footer-links a, .footer-links button{ display:inline-flex; align-items:center; min-height:44px; }
  .legal-back{ display:inline-flex; align-items:center; min-height:44px; margin-bottom:12px; }
  .bee{ padding:6px; }

  /* Erasmus+ logos two per row */
  .eplus-logos{ display:grid; grid-template-columns:1fr 1fr; justify-items:center; gap:20px 16px; padding:18px 14px; }
  .eplus-logos .logo-eu{ height:72px; }
  .eplus-logos .logo-eplus{ height:30px; }
  .eplus-logos .logo-inedivim{ height:60px; }
  .eplus-logos .logo-ycycle{ height:42px; }

  /* cookie table becomes one card per row */
  .legal-table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td{ display:block; width:100%; box-sizing:border-box; }
  .legal-table td{ overflow-wrap:anywhere; min-width:0; }
  .eplus-logos a{ display:flex; align-items:center; min-height:48px; }
  .legal-table tr{ background:var(--paper-2); border:1px solid var(--line); border-radius:8px; padding:6px 12px; margin-bottom:12px; }
  .legal-table td{ border-bottom:1px dashed var(--line); padding:7px 0; }
  .legal-table td:last-child{ border-bottom:none; }
  .legal-table td::before{ content:attr(data-label); display:block; font-size:.8rem; font-weight:600; color:var(--soil); }
  .legal{ padding-top:36px; }

  /* cookie banner a little more compact on small screens */
  .consent{ left:10px; right:10px; bottom:10px; padding:14px 14px 16px; box-shadow:4px 4px 0 var(--soil); }
  .consent-title{ font-size:1.02rem; }
  .consent-body{ font-size:.86rem; line-height:1.5; }
  .consent-actions{ margin-top:12px; gap:10px; }
}
