/*
Theme Name: Английский язык — Солнечная
Description: Солнечная редактируемая тема: бесплатная книга и будущие материалы. Готовая главная появляется после активации.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 7.4
Author: English Vmeste
License: GPL-2.0-or-later
Text Domain: english-sun
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #6e43bd; outline-offset: 5px; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
.es-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.es-header { padding-block: 27px; }
.es-logo { letter-spacing: -.04em; font-size: 22px; }
.es-logo a { text-decoration: none; }
.es-logo::before { content: '✦'; color: #a14b12; font-size: 29px; vertical-align: -2px; margin-right: 9px; }
.es-nav { gap: 30px; font-size: 15px; font-weight: 600; }
.es-nav a { text-decoration: none; }
.es-nav a:hover { text-decoration: underline; }
.es-hero { position: relative; isolation: isolate; padding: 66px 0 78px; border-radius: 38px; background: #ffdf69; background-image: radial-gradient(circle at 15% 2%,#fff0aa 0,transparent 49%), radial-gradient(circle at 100% 100%,#ffbc51 0,transparent 52%); }
.es-hero::before { content: ''; pointer-events: none; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%; border: 1px solid #bd7b1c55; top: -125px; right: 8%; }
.es-hero-grid { align-items: center !important; gap: 60px !important; }
.es-hero-copy { flex-basis: 55% !important; }
.es-hero-art { flex-basis: 45% !important; position: relative; padding: 20px 16px; }
.es-eyebrow { display: inline-block; padding: 8px 14px; border: 1px solid #b5872d66; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; background: #fff5ce80; }
.es-hero-title { font-size: clamp(38px, 4.4vw, 65px); line-height: 1.06; letter-spacing: -.055em; max-width: 660px; margin-block: 23px !important; font-weight: 750; text-wrap: balance; }
.es-hero-lead { max-width: 505px; font-size: 19px; line-height: 1.65; color: #4c4030; }
.es-hero-note { font-size: 13px; line-height: 1.6; max-width: 430px; color: #5c4b34; margin-top: 13px !important; }
.es-channel-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px !important; }
.es-channel { margin: 0 !important; padding: 15px 20px; border-radius: 14px; font-size: 15px; line-height: 1.25; font-weight: 700; background: #252a26; color: white; }
.es-channel-alt { background: #fff9e9; color: #252a26; box-shadow: inset 0 0 0 1px #252a2622; }
.es-channel:has(a) { padding: 0; }
.es-channel a { display: block; padding: 15px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.es-channel a:hover { text-decoration: underline; }
.es-phrase-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.es-phrase-list > * { margin-block-start: 0; }
.es-phrase { padding: 20px 24px; border: 1px solid #e8e2d3; border-radius: 18px; background: #fffef9; }
.es-phrase p { margin: 0; }
.es-phrase p + p { margin-top: 7px; color: #5b6258; font-size: 15px; }
.es-partners { margin-top: 32px; padding-block: 52px; background: #f4efff; border-radius: 32px; }
.es-coming-panel { margin-top: 24px; padding: 25px; border: 1px solid #ddd3ee; border-radius: 20px; background: #fffef9; }
.es-coming-panel p { margin: 0; }
.es-coming-panel p + p { margin-top: 10px; color: #5b6258; }
.es-privacy { padding-bottom: 28px; font-size: 12px; color: #64695f; }
.es-privacy p { max-width: 760px; }
.es-benefit-line { font-size: 13px; color: #514532; margin-top: 26px !important; }
.es-book { position: relative; width: min(310px, 100%); min-height: 395px; margin: 0 auto !important; padding: 30px 25px 26px 32px; background: #fffaf0; border-radius: 5px 17px 17px 5px; border-left: 9px solid #efb43d; box-shadow: 14px 18px 0 #bd751529, 19px 29px 45px #8e5e3430; transform: rotate(5deg); color: #252a26; }
.es-book::after { content: ''; position: absolute; inset: 7px 7px 7px auto; width: 3px; border-right: 1px solid #dfcfb4; pointer-events: none; }
.es-book-label { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; margin: 0; }
.es-book-number { font-size: 94px; font-weight: 800; line-height: 1; letter-spacing: -.08em; color: #a64b17; margin-block: 23px 8px !important; }
.es-book-title { font-size: 25px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; margin-block: 0 14px !important; }
.es-book-subtitle { font-size: 14px; line-height: 1.5; max-width: 220px; margin: 0 !important; }
.es-book-footer { font-size: 11px; border-top: 1px solid #dfcfb4; padding-top: 17px; margin-top: 25px !important; }
.es-art-caption { width: fit-content; position: relative; margin: 32px auto 0 !important; padding: 11px 17px; background: #fff9e9; border-radius: 12px; transform: rotate(-3deg); font-size: 13px; box-shadow: 0 8px 20px #9d640d18; }
.es-section { padding-block: 88px; }
.es-kicker { color: #8d431b; font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.es-section-title { font-size: clamp(29px, 3.1vw, 43px); letter-spacing: -.045em; font-weight: 750; line-height: 1.15; margin-block: 13px 17px !important; text-wrap: balance; }
.es-section-intro { font-size: 17px; line-height: 1.7; color: #5b6258; max-width: 650px; }
.es-features { gap: 22px !important; margin-top: 35px !important; }
.es-feature { padding: 27px; border: 1px solid #e8e2d3; border-radius: 22px; background: #fffef9; }
.es-feature-number { display: flex; width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 12px; background: #ffedb2; color: #8d431b; font-size: 13px; font-weight: 700; }
.es-feature h3 { font-size: 19px; letter-spacing: -.025em; line-height: 1.3; margin-top: 23px; }
.es-feature p:last-child { font-size: 15px; line-height: 1.7; color: #5b6258; }
.es-materials { background: #f0f1e8; border-radius: 36px; padding: 64px 0; }
.es-course-grid { gap: 22px !important; margin-top: 34px !important; }
.es-course { height: 100%; padding: 15px 15px 25px; border-radius: 24px; background: #fffef9; border: 1px solid #252a260a; }
.es-course-cover { min-height: 156px; border-radius: 15px; padding: 22px; display: flex; align-items: center; justify-content: center; text-align: center; background: #ffdf69; }
.es-cover-mint { background: #cfe4d6; }
.es-cover-lilac { background: #e2daf5; }
.es-course-cover p { font-size: 43px; letter-spacing: -.05em; line-height: 1.1; font-weight: 750; margin: 0; }
.es-course h3 { font-size: 21px; letter-spacing: -.025em; margin: 22px 10px 9px; line-height: 1.25; }
.es-course-desc { color: #5b6258; font-size: 14px; line-height: 1.65; margin-inline: 10px; }
.es-soon { display: inline-block; background: #f1f0e8; padding: 6px 12px; font-size: 11px; font-weight: 700; border-radius: 99px; margin: 12px 10px 0 !important; color: #555d52; }
.es-closing { text-align: center; padding-block: 64px 72px; }
.es-closing .es-section-intro { margin-inline: auto; }
.es-footer { border-top: 1px solid #e4e1d5; padding-block: 30px; color: #64695f; font-size: 12px; }
.es-footer strong { font-size: 16px; color: #252a26; }
.es-page { padding-block: 48px 80px; min-height: 55vh; }
.es-material-panel { background: #ffedb2; border-radius: 24px; padding: 40px; }
.es-demo-notice { background: #fff2ce; border-left: 4px solid #a64b17; padding: 16px 20px; font-size: 14px; }
.wp-block-post-content a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .es-hero-grid { gap: 24px !important; }
  .es-hero { padding-block: 45px; }
  .es-book { padding-left: 23px; padding-right: 18px; }
  .es-section { padding-block: 60px; }
  .es-feature { padding: 20px; }
}
@media (max-width: 781px) {
  .es-hero-copy, .es-hero-art { flex-basis: 100% !important; }
  .es-hero-grid { flex-direction: column; }
  .es-hero-title { font-size: clamp(38px, 8vw, 57px); }
  .es-book { width: 290px; }
  .es-hero-art { width: 100%; margin-top: 16px; }
  .es-features, .es-course-grid { gap: 16px !important; }
}
@media (max-width: 520px) {
  .es-phrase-list { grid-template-columns: 1fr; }
  .es-channel a { padding: 14px 13px; }
  .es-channel:has(a) { padding: 0; }
  .es-shell { width: calc(100% - 36px); }
  .es-header { padding-block: 19px; gap: 14px !important; }
  .es-logo { font-size: 19px; }
  .es-nav { gap: 18px; font-size: 12px; }
  .es-hero { border-radius: 23px; padding-block: 35px 44px; }
  .es-hero .es-shell { width: calc(100% - 40px); }
  .es-hero-title { font-size: 40px; line-height: 1.08; }
  .es-hero-lead { font-size: 17px; }
  .es-channel-row { gap: 8px; }
  .es-channel { font-size: 13px; padding: 14px 13px; }
  .es-hero-art { padding-inline: 10px; }
  .es-book { width: 265px; min-height: 365px; transform: rotate(3deg); }
  .es-book-number { font-size: 82px; }
  .es-book-title { font-size: 23px; }
  .es-materials { border-radius: 25px; padding-block: 44px; }
  .es-section { padding-block: 48px; }
  .es-closing { padding-block: 48px; }
  .es-footer { gap: 14px !important; }
  .es-material-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
