@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --paper: #faf7f0;
    --ink: #302b2b;
    --muted: #706966;
    --line: #e5ded5;
    --berry: #874f5d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: auto; min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 28px; }
.brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 700; white-space: nowrap; }
.brand span { color: var(--berry); }
nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
nav a:hover { color: var(--berry); }
main { min-height: 65vh; }
.intro { max-width: 1120px; margin: 0 auto; padding: 112px 28px 108px; position: relative; }
.intro:not(.compact) { background: url('../img/header.jpg') right center / auto 100% no-repeat; }
.intro:not(.compact)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--paper) 36%,rgba(250,247,240,.88) 64%,rgba(250,247,240,.38)); }
.intro > * { position: relative; }
.eyebrow { color: var(--berry); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1,h2,h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(64px, 9vw, 126px); line-height: .89; letter-spacing: -.045em; margin: 30px 0; }
h1 em { font-weight: 400; color: var(--berry); }
.lead { font-size: 18px; line-height: 1.9; max-width: 560px; }
.compact { padding-top: 86px; padding-bottom: 55px; }
.compact h1 { font-size: clamp(52px,7vw,90px); line-height: 1.04; }
.article { max-width: 810px; padding: 40px 28px 90px; margin: auto; }
.article h2 { font-size: 52px; margin: 0 0 20px; }
.article p { font-size: 16px; line-height: 2; margin: 0 0 24px; }
.article figure { margin: 40px 0; }
.article img { display: block; max-width: 100%; max-height: 580px; object-fit: contain; }
.collection { padding: 80px 28px 115px; background: #f1ebe2; }
.section-heading { max-width: 1120px; margin: 0 auto 32px; }
.section-heading h2 { font-size: 64px; margin: 0; }
.lesson-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.lesson { background: #fffdf8; min-height: 260px; padding: 36px; display: flex; flex-direction: column; transition: transform .2s; }
.lesson:hover { transform: translateY(-4px); }
.lesson-type { font-size: 11px; color: var(--berry); letter-spacing: .12em; text-transform: uppercase; }
.lesson h3 { font-size: 36px; line-height: 1.1; margin: 30px 0; }
.lesson-link { margin-top: auto; color: var(--berry); font-size: 12px; font-weight: 700; }
.about-strip { max-width: 1120px; padding: 100px 28px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.about-strip h2 { font-size: 60px; line-height: 1.05; margin: 0; }
.about-strip p { line-height: 2; }
.site-footer { background: #352d31; color: #fff9f3; }
.footer-inner { max-width: 1120px; margin: auto; padding: 42px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 27px; }
.footer-inner span { font-size: 12px; opacity: .7; }
@media (max-width: 800px) {
    .header-inner { align-items: flex-start; flex-direction: column; }
    nav { gap: 14px 20px; }
    .intro { padding-top: 70px; padding-bottom: 75px; }
    .intro:not(.compact) { background-size: cover; }
    .intro:not(.compact)::before { background: rgba(250,247,240,.84); }
    .lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .about-strip { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .lesson-grid { grid-template-columns: 1fr; }
    .collection { padding-top: 55px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .section-heading h2 { font-size: 50px; }
}
