:root {
  --bg-color: #F3EFEC;
  --text-color: #312A4E;
  --accent-color: #FFAB6B;
  --main-font: Raleway;
  --accent-font: 'STIX Two Text';
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

p,
h1,
h2,
h3,
blockquote,
ul,
ol,
li,
figure {
  margin: 0;
}

.theme_dark {
  --bg-color: #171717;
  --text-color: #B3B3B3;
  --accent-color: transparent;
}

a:focus,
button:focus {
  outline:none;
}

a:focus-visible,
button:focus-visible {
  outline: var(--text-color);
}

button:disabled {
  pointer-events: none;
}

.page {
  min-inline-size: 360px;
  margin: 0;
  background-color: var(--bg-color, #F3EFEC);
  color: var(--text-color, #312A4E);
  font-family: var(--main-font, 'Raleway'), sans-serif;
}

.heading {
  font-family: var(--accent-font), sans-serif;
  text-align: center;
  font-weight: 600;
  line-height: 0.9;
}

.content-section {
  padding: 0 5vi;
}

.header {
  padding-top: 10vi;
}

.header__title {
  font-size: clamp(3.75rem, 2.5rem + 5.5556vw, 7.5rem);
}

.header__menu {
  padding-block: 20px;
  margin-block-start: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}

.header__theme-toggler {
  display: flex;
  gap: 20px;
  list-style: none;
}

.header__theme-button {
  font-family: inherit;
  font-size: 18px;
  color: var(--text-color);
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.header__theme-button:hover {
  text-decoration: underline;
}

.header__theme-button_is-active {
  font-weight: 700;
  position: relative;
}


.header__theme-button_is-active::after {
  z-index: -1;
  content: ' ';
  inline-size: calc(100% + 2px);
  block-size: 0.7ex;
  position: absolute;
  inset: 0.7em -1px;
  background-color: var(--accent-color);
}

.theme_dark .header__theme-button_is-active::after {
  background-image: url(../images/pattern.svg);
}

.content__title {
  font-size: 30px;
  padding: 7vi 2.5vi;
}

.content__text-block {
  font-weight: 400;
  font-size: 18px;
}

.content__text-block>.content__paragraph:not(:last-child) {
  margin-bottom: 1.5em;
}

.content__paragraph>a {
  color: inherit;
}

.content__blockquote {
  font-style: Italic;
  line-height: 2;
  margin-top: 27px;
  inline-size: 75%;
  margin: 1.5em auto;
}

.content__list {
  list-style: none;
}

.content__list li {
  position: relative;
  padding-left: 40px;
}

.content__list li:not(:last-child) {
  margin-bottom: 10px;
}

.content__list li::before {
  content: ' ';
  display: inline-block;
  position: absolute;
  inline-size: 15px;
  block-size: 15px;
  background-image: url(../images/marker-light.svg);
  inset: 3px 13px 0 0;
}

.theme_dark .content__list li::before {
  background-image: url(../images/marker-dark.svg);
}

.content__text-block_type_first-lettered  .content__paragraph:first-of-type::first-letter {
  background-color: var(--accent-color);
  display: inline-block;
  padding: 0 4px;
  margin-inline-end: 1px;

  font-family: Raleway;
font-weight: 700;
font-style: Bold;
font-size: 30px;
line-height: 100%;
letter-spacing: 30%;
}

.theme_dark .content__text-block_type_first-lettered  .content__paragraph:first-of-type::first-letter {
  border: 1px solid  currentColor;
}

.content__figure {
  margin: 7% auto;
  inline-size: calc(100% + 10vi);
  position: relative;
  inset-inline-end: 5vi;
}

.content__picture {
  inline-size: 100%;
}

.content__picture-caption {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--text-color);
}

.content__card {
  margin-top: 7%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--text-color);
}

.content__card-title {
font-size: 60px;
line-height: 0.9;
}

.colored-text {
  position: relative;
}

.colored-text::after {
  z-index: -1;
  content: ' ';
  inline-size: calc(100% + 8px);
  block-size: 0.7ex;
  position: absolute;
  inset: 0.6em -4px;
  background-color: var(--accent-color);
}

.theme_dark .colored-text::after {
  background-image: url(../images/pattern.svg);
}

.footer {
  border-top: 1px solid var(--text-color);
  margin-top: 10%;
  padding-block: 2.5%;
}
.footer__copyright {
  text-align: center;
  font-size: 18px;
  
}