/*
Theme Name: Eugene Stegantsov
Description: An English learning site theme based on Eugene Stegantsov's visual identity.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: english-with-eugene
*/

.english-wrap {
  box-sizing: border-box;
  width: min(1222px, calc(100% - 48px));
  margin-inline: auto;
}

.english-front {
  position: relative;
}

.english-front > .wp-block-group,
.english-front > .wp-block-template-part,
.english-front + .wp-block-template-part,
.english-main > .wp-block-group {
  margin-block: 0;
}

.english-masthead {
  position: relative;
  z-index: 2;
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}

.english-front .english-masthead {
  position: absolute;
  inset: 0 0 auto;
  background-color: transparent;
}

.english-header-inner {
  display: flex;
  align-items: center;
  gap: 12px 32px;
  min-height: 90px;
}

.english-header-inner > *,
.english-brand > * {
  margin-block: 0;
}

.english-brand {
  flex: none;
}

.english-brand-name {
  font: 22px/1.1 var(--wp--preset--font-family--editorial);
  letter-spacing: .02em;
}

.english-brand-name a {
  color: inherit;
  text-decoration: none;
}

.english-brand-role {
  margin-top: 4px;
  color: var(--wp--preset--color--copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.english-menu {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.english-menu .wp-block-navigation__container {
  gap: 8px 30px;
}

.english-menu a {
  color: inherit;
}

.english-front .english-menu [href$="/"] {
  color: var(--wp--preset--color--copper);
}

.english-menu a:hover,
.english-brand a:hover {
  color: var(--wp--preset--color--copper);
  text-decoration: underline;
}

.english-hero {
  box-sizing: border-box;
  min-height: clamp(680px, 63vw, 920px);
  padding-block: clamp(184px, 17.8vw, 244px) 112px;
  background:
    linear-gradient(90deg, #0b1118 0%, rgba(11, 17, 24, .98) 34%, rgba(11, 17, 24, .82) 44%, rgba(11, 17, 24, .3) 54%, rgba(11, 17, 24, .06) 62%, transparent 70%),
    url("assets/eugene.webp") center / cover no-repeat,
    var(--wp--preset--color--ink);
}

.english-hero-copy {
  width: 45%;
  max-width: 630px;
}

.english-hero h1 {
  margin: 0;
  font-size: clamp(49px, 5.2vw, 92px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.english-hero h1 mark {
  background: transparent;
  color: var(--wp--preset--color--copper);
}

.english-hero-copy > p {
  margin-block: 26px 0;
  color: rgba(244, 239, 232, .82);
  font-size: 17px;
  line-height: 1.75;
}

.english-hero-copy .wp-block-buttons {
  margin-block: 34px 0;
}

.wp-block-button__link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wp-block-button__link:hover {
  text-decoration: underline;
}

.english-section {
  padding-block: clamp(48px, 7.5vw, 96px);
}

.english-section h2 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.06;
}

.english-about .english-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: 20px clamp(30px, 9vw, 112px);
  max-width: 1180px;
}

.english-about .english-wrap > * {
  margin-block: 0;
}

.english-about p {
  color: rgba(28, 36, 39, .85);
  line-height: 1.75;
}

.english-footer .english-wrap {
  padding-block: 38px;
}

.english-footer .english-wrap > * {
  margin: 0;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .english-hero {
    min-height: 660px;
    padding-block-start: 174px;
    background-position: 0 0, 58% center, 0 0;
  }

  .english-hero-copy {
    width: 55%;
  }
}

@media (max-width: 767px) {
  .english-wrap {
    width: calc(100% - 44px);
  }

  .english-header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 72px;
    gap: 10px 16px;
    padding-block: 12px;
  }

  .english-brand-name {
    font-size: 19px;
  }

  .english-brand-role {
    font-size: 9px;
  }

  .english-menu {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .english-menu .wp-block-navigation__container {
    gap: 8px 14px;
  }

  .english-hero {
    min-height: clamp(520px, 144vw, 660px);
    padding-block: 134px 68px;
    background-image:
      linear-gradient(90deg, rgba(11, 17, 24, .98) 0%, rgba(11, 17, 24, .9) 48%, rgba(11, 17, 24, .35) 100%),
      url("assets/eugene.webp");
    background-position: 0 0, 64% center;
  }

  .english-hero-copy {
    width: min(100%, 390px);
  }

  .english-hero h1 {
    font-size: clamp(42px, 8.8vw, 57px);
  }

  .english-hero-copy > p {
    max-width: 31ch;
    margin-block-start: 20px;
  }

  .english-about .english-wrap {
    grid-template-columns: 1fr;
  }
}
