@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body,
body.bleu,
body.rouge,
body.vert,
body.encre,
body.lecture {
  margin: 0;
  background: #14110e;
  color: #f0e6da;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.98rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a { color: #fff; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #fff;
  color: #09090b;
  padding: 0.3rem 0.55rem;
}

.skip:focus { top: 0.4rem; }

.agebar {
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 6;
  background: #1a1612;
  color: #fff8f0;
  border-bottom: 6px solid #a6846a;
  padding: 0.85rem 1.15rem;
}

.agebar strong {
  font-family: "Cabinet Grotesk", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
}

.agebar a { color: #fff; }

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem 1.2rem;
  padding: 1rem 1.15rem 0.85rem;
  background: #1a1612;
  border-bottom: 1px solid #3a2e26;
}

.wordmark {
  font-family: "Cabinet Grotesk", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 2px solid #a6846a;
  background: #2a211c;
  color: #fff;
  font-family: "Cabinet Grotesk", "Arial Black", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.menu a {
  text-decoration: none;
  color: #d4d4d8;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
  border: 2px solid #6b5344;
  background: #2a211c;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.55);
}

.menu a[aria-current="page"] {
  color: #09090b;
  background: #fff;
  border-color: #fff;
}

main {
  margin: 0.75rem;
  padding: 0.85rem;
  background-color: #241c18;
  background-image:
    linear-gradient(180deg, rgba(255, 220, 180, 0.05), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
  border: 10px solid #a6846a;
  box-shadow:
    inset 0 14px 22px rgba(0, 0, 0, 0.45),
    inset 0 -10px 18px rgba(0, 0, 0, 0.35);
}

h1, h2, h3, .wordmark, .note-num, .bigphone, .mail, .btn, .facts strong, .foot-links, .others {
  font-family: "Cabinet Grotesk", "Arial Black", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1, h2, h3 {
  color: #fff;
  line-height: 0.92;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 6px rgba(0, 0, 0, 0.8);
}

h1 {
  margin: 0 0 0.45rem;
  font-weight: 900;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: none;
}

h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0.85rem 0 0.35rem; }

h3 { font-size: 1.4rem; margin: 0 0 0.35rem; }

.dek {
  max-width: none;
  margin: 0 0 0.7rem;
  color: #e4d2c2;
}

.bigphone {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.9;
  margin: 0.2rem 0;
  color: #fff;
  text-shadow: 0 3px 0 #000;
}

.bigphone a { color: #fff; text-decoration: none; }

.scene,
.iconrow img,
.with-pic img,
.logo {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #120f0c;
  border: 3px solid #e7c7a1;
  padding: 7px;
  box-shadow:
    0 0 0 1px #3a2a22,
    7px 7px 0 #3a2418;
  animation: plate-in 0.7s ease both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.scene {
  width: min(100%, 560px);
  margin: 0.9rem auto;
}

.iconrow img,
.with-pic img {
  width: min(100%, 200px);
  margin: 0 auto 0.55rem;
}

.iconrow article:nth-child(2) img { animation-delay: 0.12s; }
.iconrow article:nth-child(3) img { animation-delay: 0.24s; }

.scene:hover,
.iconrow img:hover,
.with-pic img:hover,
.logo:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px #f0d7b8,
    11px 12px 0 #3a2418;
}

.with-pic {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

@keyframes plate-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem 0.85rem;
  background: #1a1612;
  border: 2px solid #6b5344;
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4);
}

.panel h2 { margin-top: 0; }

.iconrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.7rem 0;
}

.iconrow article {
  background: #1a1612;
  border: 2px solid #6b5344;
  padding: 0.55rem 0.6rem 0.7rem;
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.35);
}

.well {
  border: 2px solid #e7c7a1;
  box-shadow: 5px 5px 0 #3a2418, inset 4px 4px 8px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tile:hover .well {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 #3a2418, inset 4px 4px 8px rgba(0, 0, 0, 0.65);
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0.7rem;
  padding: 8px;
  background: #a6846a;
  border: 8px solid #a6846a;
}

.tile {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  align-items: start;
  margin: 0;
  padding: 0.55rem 0.6rem;
  background-color: #2a211c;
  background-image: linear-gradient(160deg, rgba(255, 214, 170, 0.06), transparent 36%);
  color: #f0e6da;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.12),
    inset 0 -10px 16px rgba(0, 0, 0, 0.4);
}

.tile > .well { grid-column: 1; grid-row: 1 / span 5; }

.tile > :not(.well) { grid-column: 2; }

.tile h2 { margin: 0; font-size: 1.45rem; }

.tile p { margin: 0.15rem 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

.well {
  background: #1a1612;
  padding: 0.35rem;
  border: 2px solid #e7c7a1;
  box-shadow: 5px 5px 0 #3a2418, inset 4px 4px 8px rgba(0, 0, 0, 0.65);
}

.tile .logo {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.logo {
  width: min(100%, 148px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.note-num {
  margin: 0.1rem 0 0.25rem;
  color: #fff;
  font-weight: 900;
  font-size: 2rem;
  line-height: 0.85;
  text-shadow: 0 2px 0 #3a2418;
}

.note-num small {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  font-weight: 400;
  color: #c4a48a;
  margin-left: 0.35rem;
  letter-spacing: 0;
  text-shadow: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; }

.btn {
  display: inline-block;
  background: #1a1612;
  color: #fff8f0;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3rem 0.55rem;
  border: 2px solid #a6846a;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.65);
}

.btn-out {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 0;
}

.scrap { margin-top: 0.75rem; max-width: none; }

.pair {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 6px solid #a6846a;
}

.pair h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }

.poster {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.facts li,
.sheet,
.note,
body.vert .steps li,
body.lecture .steps li {
  background: #1a1612;
  color: #f0e6da;
  border: 1px solid #6b5344;
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.72);
  padding: 0.7rem 0.8rem;
  margin: 0.4rem 0;
  width: auto;
}

.facts li { margin: 0; min-width: 8rem; }

.facts strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.sheet h2, .note h2 { margin-top: 0; }

.s1, .s2, .s3, .s4 { width: auto; margin-left: 0; }

.cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.7rem;
}

.steps { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }

.sticker {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0;
  transform: none;
}

.mail {
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.mail a { color: #fff; }

.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.narrow { max-width: none; }

.foot {
  margin: 0 1.1rem 1.2rem;
  padding: 1rem 0.2rem 0.4rem;
  background: transparent;
  color: #e4d2c2;
  border-top: 6px solid #a6846a;
  font-size: 0.86rem;
}

.foot a { color: #fff; }

.foot-links, .others {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  margin: 0.6rem 0;
  padding: 0;
  font-size: 1.15rem;
}

.others a, .foot-links a { text-decoration: none; border-bottom: 2px solid #a6846a; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .menu { display: none; width: 100%; margin-left: 0; }
  .menu.is-open { display: flex; }
  .poster, .cols, .split-lists, .pair, .with-pic, .iconrow, .tile { grid-template-columns: 1fr; }
  .tile > .well, .tile > :not(.well) { grid-column: auto; grid-row: auto; }
  main { margin: 0.6rem; border-width: 10px; }
  .mosaic { border-width: 10px; gap: 8px; padding: 8px; }
}

@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr; }
  .with-pic { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .iconrow img,
  .with-pic img,
  .logo,
  .well {
    animation: none;
    transition: none;
  }
}
