:root {
  --plum: hsl(294, 58%, 32%);
  --plum-deep: hsl(294, 40%, 22%);
  --plum-soft: hsl(294, 26%, 92%);
  --plum-line: hsl(294, 20%, 84%);
  --rose: hsl(324, 58%, 42%);
  --rose-soft: hsl(324, 42%, 93%);
  --rose-light: hsl(324, 60%, 86%);
  --paper: hsl(294, 30%, 99%);
  --ground: hsl(294, 22%, 95%);
  --ink: hsl(294, 24%, 15%);
  --ink-muted: hsl(294, 12%, 36%);
  --head: "Trebuchet MS", sans-serif;
  --body: Tahoma, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground) url("pattern.svg") repeat;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-family: var(--head);
  line-height: 1.2;
  color: var(--plum-deep);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--plum);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rose);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 8px 14px;
  background: var(--plum);
  color: #ffffff;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
  color: #ffffff;
}

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--plum-line);
}

.masthead__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
  color: var(--plum);
}

.brand:hover {
  color: var(--plum);
}

.brand__mark {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid var(--plum);
  border-radius: 50% 50% 50% 6px;
  color: var(--plum);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--head);
  font-weight: bold;
  font-size: 1.12rem;
  color: var(--plum-deep);
  overflow-wrap: anywhere;
}

.brand__tag {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.langs__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.langs__item + .langs__item::before {
  content: "·";
  padding: 0 3px;
  color: var(--ink-muted);
}

.langs__link {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--plum);
}

.langs__link--current {
  background: var(--plum);
  color: #ffffff;
  border-radius: 12px 2px 12px 2px;
}

.langs__link--current:hover {
  color: #ffffff;
}

.menu {
  position: relative;
  flex: none;
}

.menu__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--plum);
  border-radius: 10px 0 10px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--head);
  font-size: 0.88rem;
  color: var(--plum);
  background: var(--paper);
  user-select: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__icon {
  width: 16px;
  height: 16px;
}

.menu[open] .menu__toggle {
  background: var(--plum);
  color: #ffffff;
}

.menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--plum-line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 28px hsla(294, 40%, 20%, 0.16);
}

.menu__link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}

.menu__link:hover {
  background: var(--plum-soft);
  color: var(--plum-deep);
}

.menu__link--current {
  color: var(--plum);
  font-weight: bold;
}

.sheet {
  max-width: 1080px;
  margin: 28px auto;
  background: var(--paper);
  border: 1px solid var(--plum-line);
  border-radius: 0 32px 0 32px;
  overflow: hidden;
}

.folio {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-top: 1px solid var(--plum-line);
}

.folio:first-child {
  border-top: 0;
}

.folio__margin {
  padding: 34px 22px;
  background: var(--ground);
  border-right: 1px dashed var(--plum-line);
  font-family: var(--head);
}

.folio__num {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--rose);
}

.folio__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.folio__body {
  padding: 34px 42px;
  min-width: 0;
}

.folio__body > :last-child {
  margin-bottom: 0;
}

.folio--dark {
  background: var(--plum-deep);
  color: hsl(294, 30%, 94%);
}

.folio--dark .folio__margin {
  background: hsl(294, 42%, 17%);
  border-right-color: hsl(294, 30%, 34%);
}

.folio--dark .folio__num {
  color: var(--rose-light);
}

.folio--dark .folio__label {
  color: hsl(294, 24%, 78%);
}

.folio--dark h2 {
  color: #ffffff;
}

.folio--dark a {
  color: var(--rose-light);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero__kicker {
  margin-bottom: 0.4em;
  font-family: var(--head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
}

.hero__lead {
  font-size: 1.06rem;
  color: var(--ink);
}

.hero__art {
  width: 100%;
  height: auto;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background: var(--plum-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2em 0 0;
}

.action {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--plum);
  border-radius: 999px;
  background: var(--plum);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--head);
  font-size: 0.95rem;
}

.action:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #ffffff;
}

.action--ghost {
  background: transparent;
  color: var(--plum);
  border-radius: 4px;
}

.action--ghost:hover {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

.steps {
  margin: 1.4em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 0 0 18px 54px;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  font-family: var(--head);
  font-weight: bold;
  color: var(--rose);
  background: var(--rose-soft);
}

.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  border-left: 1.5px dotted var(--plum-line);
}

.steps__title {
  margin-bottom: 0.2em;
}

.steps__text {
  margin: 0;
  color: var(--ink-muted);
}

.place {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 1.2em;
  padding: 18px 20px;
  border: 1px solid var(--plum-line);
  border-radius: 18px 0 18px 0;
  background: var(--ground);
  color: var(--ink);
}

.place__icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--rose);
}

.place__text {
  margin: 0;
  font-style: normal;
}

.tenets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1.2em 0 0;
  padding: 0;
  list-style: none;
}

.tenets__item {
  padding: 16px 18px;
  border-left: 4px solid var(--rose);
  border-radius: 0 16px 16px 0;
  background: var(--rose-soft);
  color: var(--ink);
}

.tenets__title {
  margin-bottom: 0.3em;
  color: var(--plum-deep);
}

.tenets__text {
  margin: 0;
  font-size: 0.94rem;
}

.reach {
  margin: 1.2em 0 0;
  padding: 8px 20px;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px 22px 4px 22px;
}

.reach__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--plum-line);
}

.reach__item:first-child {
  border-top: 0;
}

.reach__icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px 0 10px 0;
  background: var(--plum-soft);
  color: var(--plum);
}

.reach__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.reach__value {
  display: block;
  font-style: normal;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.folio--dark .reach a,
.reach a {
  color: var(--plum);
}

.folio--dark .reach a:hover,
.reach a:hover {
  color: var(--rose);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--rose);
}

.prose__lead {
  font-size: 1.08rem;
}

.prose__note {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum-deep);
  font-size: 0.88rem;
}

.lost {
  text-align: left;
}

.lost__code {
  display: block;
  font-family: var(--head);
  font-size: 4rem;
  line-height: 1;
  color: var(--rose);
}

.colophon {
  padding: 4px 20px 30px;
}

.colophon__line {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.colophon__line a {
  color: var(--plum);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 340px;
  }
}

@media (max-width: 720px) {
  .masthead__inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 100%;
  }

  .langs {
    margin-right: auto;
  }

  .sheet {
    margin: 14px 10px;
    border-radius: 0 20px 0 20px;
  }

  .folio {
    grid-template-columns: 1fr;
  }

  .folio__margin {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px dashed var(--plum-line);
  }

  .folio--dark .folio__margin {
    border-bottom-color: hsl(294, 30%, 34%);
  }

  .folio__num {
    font-size: 1.4rem;
  }

  .folio__label {
    margin-top: 0;
  }

  .folio__body {
    padding: 24px 20px;
  }

  .tenets {
    grid-template-columns: 1fr;
  }

  .reach {
    padding: 6px 14px;
  }
}

@media (max-width: 400px) {
  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .menu__list {
    min-width: 210px;
  }
}
