:root {
  color-scheme: light;
  --ink: #202e28;
  --muted: #54645a;
  --line: #d9ded5;
  --green: #174c42;
  --paper: #f7f7f1;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  font: 100%/1.5 "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { border-bottom: 1px solid var(--line); }
.bar, main { width: min(1160px, 90%); margin-inline: auto; }
.bar, nav, .brand, .section-title, .meta, .controls, .progress { display: flex; align-items: center; }
.bar { justify-content: space-between; min-height: 76px; gap: 1rem; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button { font: inherit; color: inherit; }
.brand { gap: .65rem; font: bold 1.65rem var(--serif); letter-spacing: -.045em; }
.mark { width: 1.7rem; height: 2.1rem; display: grid; place-items: center; color: white; background: var(--green); border-radius: 4px; transform: rotate(-8deg); font: 1.65rem Georgia, serif; }
nav { gap: 1.7rem; font-size: .94rem; }
nav button, .link { background: transparent; border: 0; padding: .5rem 0; }
nav a:hover, nav button:hover, .catalog-link:hover, .link:hover { text-decoration: underline; }
main { padding: 1.7rem 0 4rem; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #237ca0; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0; font-weight: 500; letter-spacing: -.04em; }
.hero { background: var(--green); color: #fffcef; border-radius: 18px; overflow: hidden; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 78% 48%, #53937c66, transparent 53%), repeating-linear-gradient(120deg, transparent 0 3px, #ffffff04 3px 4px); z-index: -1; }
.hero-copy { padding: clamp(1.8rem, 4vw, 3.65rem); align-self: center; }
.hero h1 { font-size: clamp(3.3rem, 6.3vw, 5.8rem); line-height: .95; }
.hero em { color: #dbe9ab; font-weight: 400; }
.hero p { max-width: 25rem; color: #e1e9dc; margin: 1.3rem 0 0; font-size: 1.06rem; }
.section-title { align-items: baseline; gap: 1.15rem; margin: 2.5rem 0 1.15rem; }
h2 { font-size: clamp(2rem, 3vw, 2.9rem); }
.section-title span { color: var(--muted); font-size: .94rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fffefa; transition: border-color .18s, box-shadow .18s; }
.tile:hover { border-color: #829887; box-shadow: 0 5px 14px #1a39250d; }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.tile-copy { padding: 1.25rem 1.35rem 1.45rem; }
.meta { gap: .55rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.meta span + span::before { content: "·"; padding-right: .55rem; }
.meta i { font: 1.05rem Georgia, serif; }
h3 { margin: .65rem 0; font-size: clamp(1.5rem, 2.15vw, 2rem); }
.tile p { font-size: 1rem; color: var(--muted); margin: 0; }
.art { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; min-height: 165px; }
.art.eight { background-color: #e5c3ad; }
.art.columns { background-color: #cfdbc3; }
.art.colors { background-color: #c2d2e3; }
.art:not(.hero)::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, #ffffff27 6px 7px); z-index: -1; }
.art.hero { background: transparent; border-radius: 0; display: grid; }
.art.hero::before { display: none; }
.cards { position: relative; font-size: 14px; width: 12em; height: 10em; }
.art.hero .cards { font-size: clamp(18px, 2.65vw, 36px); }
.card { position: absolute; left: 50%; top: 50%; width: 5.2em; height: 7.3em; transform: translate(-50%, -50%); border: 1px solid #20352e5c; border-radius: .36em; box-shadow: .12em .2em .35em #18382e29; }
.face { background: #fffcf0; color: #223c34; }
.face.red { color: #aa463f; }
.face b { position: absolute; top: .26em; left: .3em; text-align: center; font: bold 1.15em/1 Georgia, serif; }
.face small { display: block; font-size: .72em; }
.face b:last-child { transform: rotate(180deg); inset: auto .3em .26em auto; }
.card i { position: absolute; inset: 0; display: grid; place-items: center; font: 3.05em Georgia, serif; }
.back { background: #7a413c; border: .23em solid #fbf1de; }
.back::before { content: ""; position: absolute; inset: .15em; border: 1px solid #efd6b7; background: repeating-linear-gradient(45deg, transparent 0 .25em, #ffebbb70 .25em .3em), repeating-linear-gradient(-45deg, transparent 0 .25em, #ffebbb70 .25em .3em); }
.back i { inset: 28% 17%; border: 2px solid #eed8af; border-radius: 50%; background: #7a413c; color: #f8e5bb; font-size: 1.9em; }
.art.hero .card:nth-child(1), .eight .card:nth-child(1) { transform: translate(-102%, -44%) rotate(-26deg); }
.art.hero .card:nth-child(2), .eight .card:nth-child(2) { transform: translate(-59%, -53%) rotate(-6deg); }
.art.hero .card:nth-child(3), .eight .card:nth-child(3) { transform: translate(-16%, -48%) rotate(17deg); }
.columns .card:nth-child(1) { transform: translate(-132%, -42%) rotate(-14deg); }
.columns .card:nth-child(3) { transform: translate(32%, -47%) rotate(13deg); }
.colors .card:first-child { transform: translate(-94%, -53%) rotate(-17deg); }
.colors .card:last-child { transform: translate(-12%, -43%) rotate(14deg); }
.catalog-link, .link { color: var(--green); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.lesson { width: min(100%, 780px); margin: 1.5rem auto; padding: clamp(1.2rem, 4vw, 3rem); background: #fffefa; border: 1px solid var(--line); border-radius: 15px; }
.lesson h1 { font-size: clamp(1.9rem, 4.1vw, 3.4rem); overflow-wrap: break-word; }
.lesson p, dialog li { font-size: 1.06rem; }
.lesson .kicker { font-weight: bold; font-size: .88rem; color: var(--green); margin: 0 0 1rem; }
.prep .art { border-radius: 8px; margin-bottom: 1.25rem; }
.prep .meta { margin-top: 1rem; }
.progress { justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .9rem; }
progress { width: 100%; height: .42rem; appearance: none; border: none; border-radius: .5rem; overflow: hidden; background: #e5e9df; margin-bottom: 1.3rem; }
progress::-webkit-progress-bar { background: #e5e9df; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.controls { gap: .65rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.primary, .secondary { min-height: 44px; border-radius: .5rem; padding: .65rem 1.2rem; font-weight: 600; }
.primary { color: white; background: var(--green); border: 1px solid var(--green); }
.primary:hover { background: #0d392f; }
.secondary { border: 1px solid #bcc7bb; background: var(--paper); }
.tip { padding-left: 1rem; border-left: 3px solid #a2bba5; color: var(--muted); }
.diagram { display: grid; gap: .25rem; max-width: 18rem; text-align: center; margin-top: .75rem; }
.diagram span, .diagram strong { background: #e9ede2; padding: .25rem; border-radius: .25rem; }
.diagram strong { background: var(--green); color: white; }
.deal { grid-template-columns: repeat(3, 1fr); }
.lesson small { display: block; color: var(--muted); }
.lesson .link { display: block; margin-top: 1rem; }
details { border-top: 1px solid var(--line); padding: .75rem 0; }
summary { color: var(--green); font-weight: 600; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 2rem; color: var(--ink); max-width: min(90%, 32rem); }
dialog::backdrop { background: #172d25a6; }
dialog ol { padding-left: 1.4rem; }
dialog li { margin-bottom: .5rem; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 34% 1fr; }
  .art:not(.hero) .cards { font-size: 11px; }
  .section-title { margin-top: 1.7rem; }
}
@media (max-width: 540px) {
  .bar { min-height: 60px; }
  .bar, main { width: 92%; }
  nav { gap: .5rem; }
  nav a { display: none; }
  main { padding-top: 1rem; }
  .hero { grid-template-columns: 60% 40%; }
  .hero-copy { padding: 1.3rem 0 1.4rem 1.1rem; }
  .hero h1 { font-size: 3.1rem; }
  .hero p { font-size: .96rem; }
  .art.hero .cards { font-size: clamp(9px, 2.35vw, 13px); }
  .tile { grid-template-columns: 1fr; }
  .tile .art { min-height: 145px; }
  .tile .art .cards { font-size: 14px; }
  .lesson { margin-top: .75rem; }
  .controls { gap: .45rem; }
}
