/* A brown notebook cover, cream paper, and the exact MetwoVT brand accents. */
:root {
  color-scheme: light;
  --text: #51372f;
  --muted: #75584c;
  --surface: #fffbf3;
  --background: #fff8ec;
  --pink: #e367a2;
  --pink-light: #a03c6d;
  --brown: #8f574d;
  --amber: #de9f50;
  --line: #8f574d40;
}
[hidden] { display: none !important; }
body {
  padding: 32px 3%;
  background-color: #452f29;
  background-image: radial-gradient(#de9f5022 1px, transparent 1px);
  background-size: 22px 22px;
}
.notebook-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 18px 18px 53px;
  background: var(--brown);
  border: 1px solid #de9f5080;
  border-radius: 19px 30px 30px 19px;
  box-shadow: 0 18px 60px #180d0c77, inset 0 0 0 7px #72483e;
  position: relative;
}
.notebook-binding {
  position: absolute;
  left: 12px;
  top: 65px;
  bottom: 50px;
  width: 48px;
  z-index: 5;
  background: repeating-linear-gradient(transparent 0 24px, #38241f 25px 28px, #de9f50 29px 33px, #f5d3a0 34px 36px, #6d4a33 37px 40px, transparent 41px 69px);
  border-radius: 5px;
  pointer-events: none;
}
.notebook-paper {
  position: relative;
  background-color: var(--background);
  background-image: linear-gradient(90deg, transparent 31px, #e367a240 32px, transparent 33px), repeating-linear-gradient(transparent 0 31px, #8f574d10 32px, transparent 33px);
  border-radius: 5px 17px 17px 5px;
  box-shadow: 4px 4px 0 #ecddc6, 7px 7px 0 #c9ad90, 10px 10px 0 #e7d5b9;
  overflow: hidden;
}
.notebook-label {
  margin: 0;
  padding: 20px 35px 0;
  color: var(--brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}
.notebook-label span { color: var(--pink); padding-left: 7px; }
.site-header {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #8f574d55;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  margin: 0 30px 0 35px;
  padding: 19px 0;
  gap: 16px;
}
.brand, .site-header nav a { color: var(--brown); }
.site-header nav { gap: 7px; }
.site-header nav a { font-size: 11px; padding: 7px 10px; border-radius: 9px 9px 2px 2px; background: #de9f5025; }
.site-header nav a:nth-child(even) { background: #e367a21c; }
.site-header nav a[aria-current] { background: var(--pink); color: #351b25; box-shadow: 0 3px 0 var(--brown); }
.header-link, .menu-toggle { color: var(--brown); background: #de9f5020; border-color: #8f574d55; }
.notebook-pages { perspective: 1600px; min-height: 600px; }
.notebook-page { position: relative; min-height: 600px; }
.notebook-page.hero { padding: 48px 42px 55px 52px; gap: 20px; }
.hero h1 { font-size: clamp(45px, 5vw, 70px); }
.hero-art { height: 440px; }
.hero .eyebrow { background: #e367a21a; color: #92416a; }
.section.notebook-page { padding: 35px 40px 60px 52px; }
.section-kicker, .section-kicker > span:first-child { color: var(--brown); }
.paper-page-number { position: absolute; bottom: 12px; right: 28px; font-family: Georgia, serif; font-style: italic; color: var(--brown); font-size: 15px; }
.chemical-top, .chemical-name, .chemical-bottom { color: #fff8f2; }
.art-label { background: #fffbf3; color: var(--brown); }
.heart-sticker { filter: drop-shadow(2px 3px 0 #fff8ec); }
.button-primary { background: var(--pink); color: #351b25; }
.button-primary:hover { background: #ed8bb8; }
.pill-row span { color: #95466d; }
.formula, .schedule-block, .stream-card-bottom, .faq-list details, .faq-list details:first-child { background: #fffaf0; }
.formula-result, .small-tag, .corner-arrow, .stream-card-top, .round-arrow { color: #9d4270; }
.stream-art > span { color: var(--brown); }
.stream-card { background: #e367a223; }
.faq-list details[open] { background: #e367a213; }
.notebook-page.community-section { padding: 48px 52px 70px; background: #de9f5040; border: 0; }
.community-content { padding-top: 25px; }
.community-content h2 { font-size: clamp(40px, 5vw, 62px); }
.community-section::before, .community-section::after { display: none; }
.community-decoration { font-size: 340px; top: 0; right: -40px; }
.community-small-star { top: 49%; right: 9%; }
.notebook-page.faq-section { align-content: start; padding-top: 65px; }
.page-controls { margin: 0 30px 0 42px; padding: 18px 0; border-top: 1px dashed #8f574d55; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-controls button { border: 1px solid var(--brown); border-radius: 18px; padding: 9px 15px; background: var(--amber); color: #45281e; font-size: 11px; font-weight: 700; box-shadow: 0 3px 0 #8f574d; }
.page-controls button:hover:not(:disabled) { background: var(--pink); color: #351b25; }
.page-controls button:disabled { opacity: .4; cursor: default; box-shadow: none; }
#page-status { color: var(--brown); font-size: 10px; text-align: center; }
.notebook-footer { max-width: none; margin: 0 30px 0 42px; padding: 6px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.privacy-button { color: var(--brown); }
.privacy-button:hover { color: #45281e; }
dialog { color: var(--text); background: #fff8ec; }
@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: center; }
  .header-link { margin-left: auto; }
  .notebook-page.hero { grid-template-columns: 1fr 1fr; padding-left: 42px; padding-right: 25px; }
  .hero h1 { font-size: 55px; }
  .chemical-card { width: 240px; }
}
@media (max-width: 760px) {
  body { padding: 12px 7px 20px; }
  .notebook-shell { padding: 10px 10px 10px 26px; border-radius: 12px 20px 20px 12px; }
  .notebook-binding { left: 3px; width: 29px; top: 80px; bottom: 45px; }
  .notebook-paper { background-image: linear-gradient(90deg, transparent 13px, #e367a240 14px, transparent 15px), repeating-linear-gradient(transparent 0 31px, #8f574d10 32px, transparent 33px); }
  .notebook-label { padding: 17px 16px 0 22px; font-size: 7px; letter-spacing: 1.2px; }
  .site-header { margin: 0 12px 0 21px; padding: 14px 0; width: auto; gap: 7px; }
  .site-header .brand { font-size: 19px; }
  .site-header .brand img { width: 23px; height: 23px; margin-right: 5px; }
  .header-link { font-size: 9px; padding: 6px 8px; }
  .menu-toggle { font-size: 9px; padding: 6px 8px; }
  .menu-toggle > span { display: none; }
  .site-header nav { padding-top: 9px; gap: 5px; }
  .site-header nav a { border: 0; border-radius: 8px; font-size: 11px; padding: 9px 12px; }
  .notebook-pages, .notebook-page { min-height: 560px; }
  .notebook-page.hero { padding: 32px 15px 48px 24px; }
  .hero h1 { font-size: clamp(39px, 9vw, 58px); letter-spacing: -2px; }
  .hero .eyebrow { font-size: 7px; padding: 7px 9px; letter-spacing: .7px; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 18px; }
  .button { padding: 12px 14px; font-size: 10px; }
  .hero-footnote { font-size: 8px; }
  .hero-art { height: 350px; }
  .chemical-card { width: 215px; height: 285px; padding: 13px; }
  .avatar-art { height: 174px; }
  .chemical-name { font-size: 10px; }
  .chemical-bottom { font-size: 6px; left: 13px; right: 13px; bottom: 13px; }
  .art-label { font-size: 7px; padding: 8px; bottom: 25px; }
  .note-bottom { font-size: 5px; }
  .heart-sticker { left: 1%; top: 10%; width: 32px; height: 32px; }
  .star-one { right: 1%; font-size: 40px; }
  .section.notebook-page, .notebook-page.community-section { padding: 30px 17px 55px 24px; }
  .section-kicker { font-size: 7px; gap: 10px; }
  .section-kicker > span:last-child { font-size: 6px; }
  h2, .community-content h2 { font-size: 33px; }
  .about-details > p { font-size: 12px; }
  .formula { grid-template-columns: 1fr; gap: 12px; }
  .formula-plus, .formula-equals { display: none; }
  .formula-item:nth-child(5), .formula-result { grid-column: auto; grid-row: auto; }
  .formula-result { padding-top: 7px; }
  .section-heading > p { font-size: 11px; }
  .stream-card-bottom h3 { font-size: 12px; }
  .stream-card-bottom p { font-size: 10px; }
  .stream-art > span { font-size: 27px; }
  .stream-card-top, .stream-card-bottom { padding: 17px; }
  .schedule-block { padding: 20px; }
  .schedule-block h3 { font-size: 23px; }
  .community-content { padding-top: 25px; }
  .community-content > p:not(.eyebrow) { font-size: 12px; }
  .community-decoration { font-size: 250px; top: 100px; right: -160px; }
  .community-small-star { top: 15%; right: 9%; }
  .social-links { gap: 4px; }
  .social-links a { font-size: 10px; margin-right: 11px; }
  .faq-section h2 { font-size: 29px; }
  summary { font-size: 11px; }
  .faq-list details { padding: 0 13px; }
  .page-controls { margin: 0 14px 0 23px; gap: 8px; flex-wrap: wrap; }
  #page-status { flex-basis: 100%; order: -1; font-size: 9px; }
  .page-controls button { font-size: 9px; padding: 8px 10px; }
  .notebook-footer { margin: 0 14px 0 23px; padding-bottom: 15px; font-size: 8px; }
  .notebook-footer-note { display: none; }
  .privacy-button { font-size: 8px; }
}


/* The moving sheet has separate front and reverse faces on a curved mesh. */
.notebook-pages { position: relative; perspective: none; }
.notebook-pages.is-turning { overflow: hidden; }
.paper-turn-underlay { position: absolute; inset: 0; }
.paper-turn-scene {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  perspective-origin: 25% 45%;
  transform-style: preserve-3d;
  contain: layout style;
}
.paper-turn-strip {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
.paper-turn-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #fff8ec;
  background-image: repeating-linear-gradient(transparent 0 31px, #8f574d10 32px, transparent 33px);
}
.paper-turn-front { transform: translateZ(.15px); }
.paper-turn-reverse {
  transform: rotateY(180deg) translateZ(.15px);
  background-color: #f8edd9;
}
.paper-turn-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 47, 41, var(--shade-start, 0)), rgba(69, 47, 41, var(--shade-end, 0)));
  pointer-events: none;
}
.notebook-page.paper-turn-copy {
  position: absolute;
  top: 0;
  margin: 0;
  max-width: none;
  visibility: visible !important;
  pointer-events: none;
}
.paper-turn-ink { position: absolute; top: 0; height: 100%; opacity: .055; transform: scaleX(-1); }
.paper-turn-ink .paper-turn-copy { left: 0; }
.paper-turn-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, #452f2966 35%, #452f2933 60%, transparent);
  transform: translateZ(-1px);
  pointer-events: none;
}
