@font-face {
  font-family: Mundial;
  src: url("/assets/mundial-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Mundial;
  src: url("/assets/mundial-demibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

[hidden] { display: none !important; }

.site-footer {
  padding: 1.05rem 1.25rem;
  background: #f8e3cf;
  color: #47372f;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.4rem;
}

.site-footer a,
.site-footer button {
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-footer button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
}

.cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 2;
  inset: auto 1rem 1rem auto;
  width: min(33rem, calc(100% - 2rem));
  padding: 1.2rem 1.35rem;
  color: #302422;
  background: #fff9f2;
  border: 1px solid #e2cbb6;
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px #442d2526;
  font-family: Mundial, system-ui, sans-serif;
}

.cookie-notice h2 { margin: 0; font-size: 1rem; }
.cookie-notice p { margin: 0.45rem 0 0.8rem; font-size: 0.875rem; line-height: 1.5; }
.cookie-notice a { color: #614532; text-underline-offset: 0.15em; }

.cookie-notice button, .article-cta {
  display: inline-block;
  padding: 0.65rem 0.95rem;
  color: #fff9f2;
  background: #382921;
  border: 0;
  border-radius: 0.6rem;
  font: 600 0.875rem/1.3 Mundial, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.site-footer :focus-visible, .cookie-notice :focus-visible, .reading-page :focus-visible {
  outline: 2px solid #5d4535;
  outline-offset: 4px;
}

.reading-page {
  margin: 0;
  background: #fff9f2;
  color: #302422;
  font: 400 1.0625rem/1.65 Mundial, system-ui, sans-serif;
}

.reading-header {
  border-bottom: 1px solid #e9d6c4;
  padding: 1.1rem max(1.4rem, calc((100vw - 46rem) / 2));
}

.reading-header a {
  font-size: 1.35rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.reading-content {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.4rem 4rem;
}

.reading-content h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.reading-content h2 { margin: 2rem 0 0.4rem; font-size: 1.25rem; line-height: 1.35; }
.reading-content p { margin: 0 0 1rem; }
.reading-content li { margin-bottom: 0.6rem; }
.reading-content a:not(.article-cta) { color: #734f37; text-underline-offset: 0.2em; }
.reading-content .intro { font-size: 1.2rem; }
.reading-content .effective { color: #68564c; font-size: 0.9rem; }

.work-mode-screens,
.work-mode-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 4vw, 2.25rem);
  align-items: start;
  margin: 1.35rem 0 2rem;
}

.work-mode-screens {
  max-width: 35rem;
  margin-inline: auto;
}

.work-mode-example { grid-template-columns: minmax(0, 1fr) minmax(10rem, 15rem); }

.work-mode-screens figure,
.work-mode-example figure { margin: 0; }

.work-mode-screens img,
.work-mode-example img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.work-mode-screens figcaption,
.work-mode-example figcaption {
  margin-top: 0.55rem;
  color: #68564c;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 34rem) {
  .work-mode-example { grid-template-columns: 1fr; }
  .work-mode-example figure { width: min(100%, 15rem); margin-inline: auto; }
}
