:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --text: #303536;
  --muted: #696d6b;
  --line: #dedbd3;
  --sage: #dfe9df;
  --sage-deep: #55695b;
  --rose: #eadcdf;
  --lavender: #e7e3ef;
  --sand: #eee4d5;
  --mint: #dcebe5;
  --shadow: 0 18px 48px rgba(54, 51, 45, 0.09);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Aptos, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 219, 211, 0.75);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.15;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c7cfc6;
  border-radius: 50% 45% 55% 48%;
  background: var(--sage);
  color: var(--sage-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.brand strong { display: block; font-size: 0.97rem; }
.brand small { color: var(--muted); font-size: 0.78rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover { color: var(--text); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero::before {
  width: 380px;
  height: 380px;
  top: -210px;
  right: 10%;
  background: rgba(231, 227, 239, 0.52);
}
.hero::after {
  width: 300px;
  height: 300px;
  bottom: -220px;
  left: 2%;
  background: rgba(220, 235, 229, 0.62);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h1 { max-width: 780px; font-size: clamp(3.2rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 4.7vw, 4rem); }

.hero-text {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions { margin-top: 34px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible,
.main-nav a:focus-visible,
.search-box:focus-within,
.lesson-cover-link:focus-visible {
  outline: 3px solid rgba(85, 105, 91, 0.28);
  outline-offset: 3px;
}
.button-primary { background: var(--text); color: white; box-shadow: 0 10px 26px rgba(48, 53, 54, 0.16); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-ghost { border-color: var(--line); background: transparent; color: var(--text); }

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.88rem;
}
.quick-info span { display: inline-flex; align-items: center; gap: 5px; }
.quick-info strong { color: var(--text); }

.hero-art {
  position: relative;
  min-height: 430px;
}
.paper {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 245px;
  min-height: 145px;
  padding: 28px;
  border: 1px solid rgba(48, 53, 54, 0.08);
  box-shadow: var(--shadow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-style: italic;
}
.paper-one {
  top: 8px;
  right: 40px;
  background: var(--rose);
  transform: rotate(5deg);
  border-radius: 48% 52% 44% 56% / 58% 45% 55% 42%;
}
.paper-two {
  top: 145px;
  left: 0;
  background: var(--sage);
  transform: rotate(-5deg);
  border-radius: 24px 72px 24px 62px;
}
.paper-three {
  right: 10px;
  bottom: 12px;
  background: var(--lavender);
  transform: rotate(3deg);
  border-radius: 60px 22px 60px 22px;
}
.pencil-line {
  position: absolute;
  width: 250px;
  height: 80px;
  right: 72px;
  top: 115px;
  border-top: 2px solid rgba(48, 53, 54, 0.34);
  border-radius: 50%;
  transform: rotate(12deg);
}

.section { padding: 96px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.search-box {
  width: min(100%, 330px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: #8b8e8b; }

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.lesson-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(54, 51, 45, 0.055);
}
.lesson-card[data-accent="areia"] { --card-accent: var(--sand); }
.lesson-card[data-accent="lavanda"] { --card-accent: var(--lavender); }
.lesson-card[data-accent="menta"] { --card-accent: var(--mint); }
.lesson-card[data-accent="rosa"] { --card-accent: var(--rose); }
.lesson-cover-link {
  display: block;
  overflow: hidden;
  margin: 12px;
  border-radius: 22px;
  background: var(--card-accent);
}
.lesson-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}
.lesson-cover-link:hover .lesson-cover { transform: scale(1.02); }
.lesson-content { padding: 14px 28px 30px; }
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.lesson-number {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-accent);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lesson-type { color: var(--muted); font-size: 0.78rem; }
.lesson-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
}
.lesson-description { margin: 15px 0 0; color: var(--muted); }
.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.lesson-tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}
.lesson-actions .button { flex: 1 1 145px; }
.empty-state {
  margin: 30px 0 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.update-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  border: 1px solid #d9d5cc;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}
.update-card p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: var(--muted); }
.update-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50% 46% 52% 48%;
  background: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-style: italic;
  transform: rotate(5deg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
}
.about-card,
.about-note {
  min-height: 330px;
  padding: 44px;
  border-radius: var(--radius-lg);
}
.about-card { border: 1px solid var(--line); background: var(--surface); }
.about-card p:not(.eyebrow) { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }
.about-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sage);
}
.about-note span {
  height: 55px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--sage-deep);
  opacity: 0.55;
}
.about-note p {
  margin: 15px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #f0eee8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: end;
}
.footer-title { margin: 0; font-weight: 700; }
.footer-grid p { margin-top: 4px; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-links a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; margin: 18px 0 0 !important; font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 390px; max-width: 560px; width: 100%; margin: 10px auto 0; }
  .lessons-grid { grid-template-columns: 1fr; }
  .update-card { align-items: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { background: rgba(251, 250, 247, 0.96); }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .main-nav a:hover { background: var(--surface-soft); }
  .hero { padding: 66px 0 58px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-art { min-height: 330px; }
  .paper { min-width: 195px; min-height: 110px; }
  .paper-one { right: 10px; }
  .paper-two { top: 115px; }
  .paper-three { bottom: 4px; }
  .section { padding: 70px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .lesson-content { padding: 10px 20px 24px; }
  .update-card { flex-direction: column; padding: 34px; }
  .update-badge { width: 104px; height: 104px; }
  .about-card, .about-note { min-height: auto; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
