.blog-page { background: var(--milk); }
.blog-page main { min-height: 70vh; }

.blog-hero {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding-block: 42px 50px;
}
.blog-hero h1 {
  max-width: 980px;
  margin: 15px 0 12px;
  font: 700 clamp(39px, 4.7vw, 67px)/1.02 var(--display);
  letter-spacing: -.06em;
}
.blog-hero h1 em,
.blog-hero h1 strong { font-style: normal; font-weight: inherit; }
.blog-hero h1 em { color: var(--leaf-dark); }
.blog-hero h1 strong { color: var(--coral); }
.blog-hero__copy > p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.blog-hero__note {
  position: relative;
  width: min(100%, 170px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border: 2px solid var(--bark);
  border-radius: 46% 54% 62% 38% / 51% 38% 62% 49%;
  background: var(--sun);
  box-shadow: 8px 10px 0 var(--bark);
  transform: rotate(3deg);
  animation: blogBlob 7s ease-in-out infinite alternate;
}
.blog-hero__note::before,
.blog-hero__note::after {
  position: absolute;
  border: 2px solid var(--bark);
  border-radius: 50%;
  content: "";
}
.blog-hero__note::before { width: 34px; height: 34px; top: -10px; left: 14%; background: var(--sky); }
.blog-hero__note::after { width: 23px; height: 23px; right: 1%; bottom: 9%; background: var(--coral); }
.blog-hero__note span,
.blog-hero__note small { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.blog-hero__note b { font: 800 43px/1 var(--accent); }

.blog-library { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: start; gap: clamp(28px,4vw,58px); padding-bottom: 130px; }
.blog-library__content { min-width: 0; }
.audience-switch {
  position: sticky;
  top: 126px;
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--bark);
  border-radius: 24px 24px 24px 8px;
  overflow: hidden;
  box-shadow: 5px 6px 0 var(--bark);
}
.audience-switch button {
  position: relative;
  min-height: 135px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 17px;
  padding: 18px 14px;
  border: 0;
  background: var(--white);
  color: var(--bark);
  text-align: left;
  font: 700 16px var(--display);
  transition: background .25s ease, color .25s ease;
}
.audience-switch button + button { border-top: 2px solid var(--bark); }
.audience-switch button[aria-selected="true"] { background: var(--leaf-dark); color: var(--white); }
.audience-switch button span {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 800 13px var(--accent);
}
.audience-switch button small { grid-column: 2; opacity: .6; font: 800 9px var(--font); text-transform: uppercase; }

.blog-section-head {
  display: grid;
  grid-template-columns: .28fr .72fr;
  gap: 25px;
  align-items: start;
  margin-bottom: 28px;
}
.blog-section-head > span { color: var(--leaf-deep); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.blog-section-head h2 { margin: 0; font: 700 clamp(39px, 4.5vw, 65px)/1.05 var(--display); letter-spacing: -.055em; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--bark);
  border-radius: 28px 28px 28px 9px;
  background: var(--white);
  box-shadow: 7px 8px 0 var(--bark);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.blog-card[hidden] { display: none; }
.blog-card:hover { transform: translateY(-7px) rotate(-.4deg); box-shadow: 11px 14px 0 var(--bark); }
.blog-card--featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 500px; }
.blog-card--featured .blog-cover { min-height: 100%; }
.blog-cover {
  min-height: 290px;
  background-image: url("/public/blog-grid.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}
.blog-cover--memory { background-position: 0 0; }
.blog-cover--poem { background-position: 50% 0; }
.blog-cover--english { background-position: 100% 0; }
.blog-cover--favorite { background-position: 0 100%; }
.blog-cover--class { background-position: 50% 100%; }
.blog-cover--explain { background-position: 100% 100%; }
.blog-card__body { display: flex; flex-direction: column; min-height: 330px; padding: 29px; }
.blog-card__body > div { display: flex; justify-content: space-between; color: var(--leaf-deep); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.blog-card__body i { color: var(--muted); font-style: normal; }
.blog-card h2 { margin: 34px 0 14px; font: 700 clamp(26px, 3.1vw, 44px)/1.08 var(--display); letter-spacing: -.045em; }
.blog-card p { color: var(--muted); }
.blog-card b { margin-top: auto; padding-top: 30px; font-size: 10px; text-transform: uppercase; }
.blog-card b em { color: var(--leaf-deep); font: 800 18px var(--accent); font-style: normal; }

.blog-phone-cta { padding-block: 100px; background: var(--leaf-dark); color: var(--white); }
.blog-phone-cta > .shell { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.blog-phone-cta span { color: var(--leaf); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.blog-phone-cta h2 { margin: 17px 0 0; font: 700 clamp(39px, 4.5vw, 63px)/1.08 var(--display); letter-spacing: -.055em; }
.blog-phone-cta a {
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--bark);
  border-radius: 50%;
  background: var(--sun);
  color: var(--bark);
  box-shadow: 9px 11px 0 var(--white);
  transition: transform .25s ease;
}
.blog-phone-cta a:hover { transform: rotate(5deg) scale(1.02); }
.blog-phone-cta a small { font: 800 22px var(--accent); }
.blog-phone-cta a strong { padding: 1px 10px; border: 2px solid var(--bark); border-radius: 10px; background: var(--white); font: 800 38px var(--accent); letter-spacing: .04em; }
.blog-phone-cta a i { margin-top: 12px; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }

.article-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
  padding-block: 90px;
}
.article-hero__copy > a { display: inline-block; margin-bottom: 55px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.article-hero__copy > span { display: block; color: var(--leaf-deep); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-hero h1 { margin: 20px 0 28px; font: 700 clamp(47px, 5.3vw, 76px)/1.02 var(--display); letter-spacing: -.065em; }
.article-hero p { max-width: 710px; color: var(--muted); font-size: 19px; }
.article-hero .blog-cover { min-height: 570px; border: 2px solid var(--bark); border-radius: 45% 45% 45% 12%; box-shadow: 12px 14px 0 var(--bark); }
.article-accent { padding-block: 68px; background: var(--sun); border-block: 2px solid var(--bark); }
.article-accent .shell { display: grid; grid-template-columns: .35fr .65fr; gap: 40px; }
.article-accent span { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.article-accent blockquote { margin: 0; font: 700 clamp(34px, 4.2vw, 58px)/1.1 var(--display); letter-spacing: -.05em; }

.article-layout { display: grid; grid-template-columns: 280px minmax(0, 790px); justify-content: space-between; gap: 90px; padding-block: 120px; }
.article-layout aside { position: sticky; top: 110px; align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 22px 22px 22px 7px; background: var(--white); }
.article-layout aside > span { color: var(--leaf-deep); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.article-layout aside ol { display: grid; gap: 12px; margin: 24px 0 35px; padding-left: 20px; color: var(--muted); font-size: 13px; }
.article-layout aside a { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.article-content > section { position: relative; padding: 0 0 100px 82px; }
.article-content > section > span { position: absolute; top: 3px; left: 0; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--bark); border-radius: 50%; background: var(--leaf); font: 800 12px var(--accent); }
.article-content h2 { margin: 0 0 28px; font: 700 clamp(34px, 4vw, 54px)/1.08 var(--display); letter-spacing: -.05em; }
.article-content p { color: var(--bark-2); font-size: 18px; line-height: 1.72; }
.article-tip { margin-top: 34px; padding: 25px; border-left: 7px solid var(--leaf); border-radius: 0 18px 18px 0; background: var(--leaf-soft); }
.article-tip b { color: var(--leaf-deep); font-size: 9px; text-transform: uppercase; }
.article-tip p { margin: 8px 0 0; font-size: 15px; }
.article-content .article-practice { padding: 38px; border: 2px solid var(--bark); border-radius: 26px 26px 26px 8px; background: var(--sky); box-shadow: 7px 8px 0 var(--bark); }
.article-content .article-practice > span { position: static; width: auto; height: auto; display: inline; border: 0; border-radius: 0; background: transparent; font: 900 9px var(--font); text-transform: uppercase; }
.article-practice h2 { margin-top: 16px; }
.article-practice p { margin-bottom: 0; }
.article-next { padding-bottom: 120px; }
.article-next > span { display: block; margin-bottom: 18px; color: var(--leaf-deep); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.article-next > a { display: grid; grid-template-columns: 1fr auto; gap: 7px 30px; padding: 32px; border: 2px solid var(--bark); border-radius: 24px 24px 24px 8px; background: var(--white); transition: background .2s ease, transform .2s ease; }
.article-next > a:hover { background: var(--leaf-soft); transform: translateX(5px); }
.article-next small { color: var(--leaf-deep); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.article-next strong { grid-column: 1; font: 700 clamp(25px, 3vw, 40px) var(--display); }
.article-next i { grid-column: 2; grid-row: 1/3; align-self: center; font: 800 36px var(--accent); font-style: normal; }

@keyframes blogBlob {
  to { border-radius: 55% 45% 38% 62% / 42% 60% 40% 58%; transform: rotate(-2deg) translateY(-8px); }
}

@media (max-width: 1100px) {
  .blog-hero { grid-template-columns: 1fr 150px; }
  .blog-hero__note { width: 145px; }
  .blog-library { grid-template-columns: 155px minmax(0,1fr); gap: 28px; }
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }
}

@media (max-width: 760px) {
  .blog-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 30px 26px; }
  .blog-hero h1 { font-size: clamp(35px, 10vw, 48px); }
  .blog-hero__copy > p { font-size: 14px; }
  .blog-hero__note { display: none; }
  .blog-library { display: block; }
  .audience-switch { position: sticky; z-index: 20; top: calc(var(--global-header-height,112px) + 8px); grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-radius: 18px 18px 18px 6px; box-shadow: 4px 5px 0 var(--bark); }
  .audience-switch button { min-height: 72px; grid-template-columns: 1fr; padding: 12px; font-size: 15px; text-align: center; }
  .audience-switch button + button { border-top: 0; border-left: 2px solid var(--bark); }
  .audience-switch button span { display: none; }
  .audience-switch button small { grid-column: 1; }
  .blog-section-head { grid-template-columns: 1fr; gap: 18px; }
  .blog-section-head h2 { font-size: 38px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: auto; display: block; min-height: 0; }
  .blog-card--featured .blog-cover, .blog-cover { min-height: 250px; }
  .blog-card__body { min-height: 320px; padding: 23px; }
  .blog-card h2 { font-size: 29px; }
  .blog-phone-cta { padding-block: 75px; }
  .blog-phone-cta > .shell { grid-template-columns: 1fr; }
  .blog-phone-cta h2 { font-size: 39px; }
  .blog-phone-cta a { width: 230px; height: 230px; justify-self: center; }
  .article-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 60px 85px; }
  .article-hero__copy > a { margin-bottom: 35px; }
  .article-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .article-hero p { font-size: 16px; }
  .article-hero .blog-cover { min-height: 360px; border-radius: 30px 30px 30px 9px; }
  .article-accent .shell { grid-template-columns: 1fr; gap: 15px; }
  .article-accent blockquote { font-size: 35px; }
  .article-layout { grid-template-columns: 1fr; gap: 55px; padding-block: 80px; }
  .article-layout aside { position: static; }
  .article-content > section { padding: 0 0 80px 0; }
  .article-content > section > span { position: static; margin-bottom: 20px; }
  .article-content h2 { font-size: 36px; }
  .article-content p { font-size: 16px; }
  .article-content .article-practice { padding: 26px; }
  .article-next { padding-bottom: 85px; }
}
