﻿:root {
  --header-height: 82px;
  --bg: #f4f3ef;
  --surface: #fbfaf7;
  --text: #1f2128;
  --muted: #666c7a;
  --line: #dcd8ce;
  --accent: #0ea5a0;
  --accent-2: #ff5e4a;
  --shadow: 0 16px 35px rgba(20, 30, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 160, 0.18), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(255, 94, 74, 0.15), transparent 28%),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: #0f5f5b;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover {
  color: #0b4541;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244, 243, 239, 0.88);
  border-bottom: 1px solid rgba(220, 216, 206, 0.85);
}

.site-header,
main {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.45rem 0;
}

.brand img {
  width: 210px;
  max-width: 42vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  color: #1f222d;
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 220ms ease, color 220ms ease;
}

.main-nav a:hover,
.main-nav .active {
  color: #0f1118;
  border-color: var(--accent-2);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #1f222d;
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

main {
  padding: 1.5rem 0 4rem;
}

.hero {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
}

.hero p a,
.sheet-block p a {
  color: #0f5f5b;
  text-decoration-color: rgba(15, 95, 91, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  font-weight: 650;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.hero p a:hover,
.sheet-block p a:hover {
  color: #0a3f3c;
  text-decoration-color: rgba(10, 63, 60, 0.65);
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-media {
  margin: 1.2rem 0 0;
  padding: 0.65rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 160, 0.16), transparent 38%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(245, 240, 231, 0.95));
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.hero-media img {
  display: block;
  width: min(100%, 920px);
  margin: 0 auto;
  border-radius: 13px;
  border: 1px solid #ddd5c7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

.hero-media figcaption {
  margin-top: 0.52rem;
  text-align: center;
  color: #5a6270;
  font-size: 0.84rem;
}

.page-meta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 900px;
}

.page-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.56rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
  color: #3d4655;
  font-size: 0.9rem;
  line-height: 1.2;
}

.page-meta__item strong {
  color: #111827;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-meta__item a {
  color: #0f5f5b;
  font-weight: 700;
  text-decoration: none;
}

.page-meta__item a:hover {
  text-decoration: underline;
}

.page-meta__item--author {
  background: linear-gradient(135deg, rgba(14, 165, 160, 0.14), rgba(255, 255, 255, 0.86));
  border-color: rgba(14, 165, 160, 0.24);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}

.btn-ghost {
  color: #131722;
  border: 1px solid #c9c3b8;
  background: rgba(255, 255, 255, 0.6);
}

.catalogue {
  margin-top: 2.1rem;
}

.catalogue-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
}

.catalogue-head p {
  margin: 0.4rem 0 1.1rem;
  color: var(--muted);
}

.plan-section .sheet-block {
  padding: 0.95rem;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 235, 0.88)),
    var(--surface);
  border-color: #d9d3c6;
}

.plan-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.plan-links li {
  margin: 0;
}

.plan-links li a {
  position: relative;
  display: block;
  min-height: 58px;
  padding: 0.9rem 2.2rem 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #d8d2c5;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2533;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plan-links li a::after {
  content: "→";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0f766e;
  font-size: 1.05rem;
  font-weight: 800;
}

.plan-links li a:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 160, 0.45);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.11);
}

.filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.chip {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  background: #e8e3d9;
  color: #232734;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.active {
  background: #111827;
  color: #fff;
}

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

.card {
  border: 1px solid #d5d0c4;
  border-radius: 20px;
  padding: 1rem;
  background:
    linear-gradient(120deg, rgba(14, 165, 160, 0.05), rgba(255, 94, 74, 0.04)),
    var(--surface);
  box-shadow: 0 8px 25px rgba(40, 48, 64, 0.08);
  transition: transform 200ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(40, 48, 64, 0.13);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card-cover-link {
  display: block;
  margin: -1rem -1rem 0.8rem;
  border-bottom: 1px solid #dcd6c9;
  text-decoration: none;
}

.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ece7dd;
  transition: transform 240ms ease;
}

.card:hover .card-cover {
  transform: scale(1.02);
}

.tag,
.duration {
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
}

.tag {
  color: #11504d;
  background: rgba(14, 165, 160, 0.16);
}

.duration {
  color: #874338;
  background: rgba(255, 94, 74, 0.18);
}

.card h3 {
  margin: 0.85rem 0 0.45rem;
  line-height: 1.25;
}

.card p {
  color: #535a68;
  line-height: 1.55;
  margin-top: 0;
}

.card-link {
  font-weight: 700;
  color: #121826;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.has-js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card.is-hidden {
  display: none;
}

.learning-sheet {
  display: grid;
  gap: 1rem;
}

.sheet-block {
  border: 1px solid #d5d0c4;
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: rgba(251, 250, 247, 0.9);
  box-shadow: 0 8px 22px rgba(40, 48, 64, 0.08);
}

.sheet-block h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.sheet-block h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.02rem;
}

.sheet-block p {
  margin: 0.45rem 0;
  line-height: 1.65;
  color: #444d5c;
}

.simple-list,
.check-list {
  margin: 0.5rem 0 0.2rem;
  padding-left: 1.1rem;
}

.simple-list li,
.check-list li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.check-list li::before {
  content: "□";
  line-height: 1.4;
  color: #1f222d;
}

.sheet-block.is-accordion {
  padding: 0;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.35rem 1rem;
}

.accordion-title {
  grid-column: 2;
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
}

.accordion-summary {
  grid-column: 2;
  color: #525a67;
  line-height: 1.55;
}

.accordion-icon {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d5d0c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.accordion-progress {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  min-width: 3.2rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #4b5563;
  background: #f1ede4;
  border: 1px solid #d9d2c4;
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
}

.accordion-progress.is-started {
  color: #0f5132;
  background: #e6f7ef;
  border-color: #b9e5cc;
}

.accordion-progress.is-complete {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.sheet-block.is-open .accordion-icon {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.accordion-content {
  border-top: 1px solid #dfdbd1;
  padding: 0.85rem 1.15rem 1.1rem;
}

.check-list .check-item {
  display: block;
  margin: 0.35rem 0;
  gap: 0;
  align-items: initial;
}

.check-list .check-item::before {
  content: none;
}

.check-label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 0.55rem;
  cursor: pointer;
}

.progress-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-indicator {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid #a8afbc;
  border-radius: 0.3rem;
  background: #fff;
  margin-top: 0.12rem;
  transition: all 160ms ease;
}

.check-item-text {
  line-height: 1.55;
}

.progress-check:checked + .check-indicator {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: inset 0 0 0 2px #fff;
}

.check-item.is-done .check-item-text {
  color: #6b7280;
  text-decoration: line-through;
}

.tip-block {
  border-color: #82c7c1;
  border-left: 6px solid #0f766e;
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.94));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.12);
}

.tip-block .accordion-trigger {
  gap: 0.5rem 1rem;
}

.tip-block .accordion-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tip-logo {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.35);
}

.tip-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f5f5b;
  background: #dff6f3;
  border: 1px solid #bcebe6;
}

.attention-block {
  border-color: #f1b7a2;
  border-left: 6px solid #d97706;
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.95));
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.14);
}

.attention-block .accordion-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.attention-logo {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.35);
}

.attention-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #92400e;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.accordion-thumb-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.accordion-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9d2c4;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
  background: #fff;
}

.lesson-media {
  position: relative;
  margin: 1.05rem auto 0.45rem;
  width: min(100%, 460px);
  border-radius: 18px;
  padding: 0.75rem;
  border: 1px solid #d9d2c4;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(165deg, #ffffff, #f5f1e8 92%);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.lesson-media img {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #ddd5c7;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
  background: #fff;
  cursor: zoom-in;
}

.lesson-media figcaption {
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem 0.25rem;
  font-size: 0.84rem;
  color: #5b6473;
  background: transparent;
  border-top: 0;
  text-align: center;
}

.lesson-media--focus::before {
  content: "Capture utile";
  position: absolute;
  top: -0.55rem;
  left: 0.7rem;
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f5f5b;
  background: #dff6f3;
  border: 1px solid #bcebe6;
}

.lesson-media--focus::after {
  content: "Capture";
  position: absolute;
  right: 0.62rem;
  top: 0.62rem;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(2px);
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.qr-modal__dialog {
  position: relative;
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #ddd6c9;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
  padding: 1rem 1rem 1.2rem;
  text-align: center;
}

.qr-modal__dialog h2 {
  margin: 0.2rem 0 0.85rem;
  font-size: 1.1rem;
}

.qr-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d8d2c6;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.qr-modal__image {
  width: min(78vw, 320px);
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5dfd2;
  background: #fff;
  padding: 0.45rem;
}

.qr-modal__url {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: #5b6473;
  word-break: break-word;
}

.resources-section .catalogue-head {
  max-width: 760px;
}

.resources-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 160, 0.24);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 160, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255, 94, 74, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 237, 0.96));
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.1);
}

.resources-spotlight::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 160, 0.14), transparent 68%);
  pointer-events: none;
}

.resources-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 160, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resources-spotlight h3 {
  margin: 0;
  max-width: 16ch;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.resources-spotlight p {
  max-width: 72ch;
}

.resource-tags {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.resource-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

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

.resource-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.resource-card--author {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 160, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 249, 248, 0.92));
}

.resource-card--place {
  background:
    radial-gradient(circle at top right, rgba(255, 94, 74, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 244, 239, 0.94));
}

.resource-card--links {
  background:
    radial-gradient(circle at top right, rgba(17, 24, 39, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 242, 236, 0.95));
}

.resource-card__eyebrow {
  margin: 0 0 0.55rem;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.resource-card__role {
  margin-top: -0.1rem;
  color: #1f2128;
  font-weight: 700;
}

.resource-card__meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(31, 33, 40, 0.08);
  color: #5b6473;
  font-weight: 700;
}

.resource-links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.resource-links li a {
  display: block;
  padding: 0.86rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 33, 40, 0.08);
  text-decoration: none;
  color: #1f2128;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-links li a:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 160, 0.34);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.image-lightbox__dialog {
  position: relative;
  width: min(96vw, 1400px);
  max-height: 92vh;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(20, 24, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 1.6rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
}

.image-lightbox__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 950px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% - 8px);
    flex-direction: column;
    align-items: flex-start;
    width: min(260px, calc(100vw - 3rem));
    background: #fffefa;
    border: 1px solid #d6d0c4;
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .plan-links {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .site-header,
  main {
    width: calc(100% - 1.4rem);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 18px;
  }

  .hero-media {
    border-radius: 14px;
    padding: 0.45rem;
  }

  .hero-media img {
    border-radius: 10px;
  }

  .page-meta {
    gap: 0.55rem;
  }

  .page-meta__item {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .resources-spotlight h3 {
    max-width: none;
    font-size: 1.9rem;
  }

  .lesson-media img {
    height: 180px;
  }

  .accordion-trigger {
    grid-template-columns: 48px 1fr auto;
    gap: 0.35rem 0.7rem;
  }

  .accordion-thumb-wrap {
    grid-row: 1 / span 2;
  }

  .accordion-thumb {
    width: 48px;
    height: 48px;
  }

  .accordion-progress {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 2.7rem;
    font-size: 0.74rem;
    padding: 0.2rem 0.38rem;
  }

  .accordion-icon {
    grid-column: 3;
    grid-row: 2;
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.05rem;
    justify-self: end;
  }
}

