:root {
  --page: hsl(31, 28%, 88%);
  --box: hsl(31, 28%, 97%);
  --soft: hsl(31, 28%, 92%);
  --main: hsl(31, 28%, 76%);
  --accent: hsl(31, 28%, 62%);
  --deep: hsl(31, 28%, 30%);
  --ink: hsl(31, 24%, 16%);
  --muted: hsl(31, 14%, 36%);
  --line: hsl(31, 28%, 82%);
  --font: Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  padding: 32px 16px;
}

a {
  color: var(--deep);
}

a:hover,
a:focus {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--ink);
}

.frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--box);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
}

.frame::before,
.frame::after {
  position: absolute;
  font-family: var(--font);
  font-weight: bold;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.frame::before {
  content: "B";
  font-size: 620px;
  top: 40px;
  right: -60px;
}

.frame::after {
  content: "P";
  font-size: 520px;
  bottom: 60px;
  left: 120px;
}

.rail {
  position: relative;
  z-index: 2;
  background: var(--main);
  color: var(--ink);
  border-right: 1px solid var(--accent);
}

.rail-inner {
  position: sticky;
  top: 0;
  padding: 28px 22px;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1;
}

.wordmark .hex-i {
  position: relative;
  display: inline-block;
}

.wordmark .hex-i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 9px;
  height: 10px;
  transform: translateX(-50%);
  background: var(--deep);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.wordmark small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: var(--box);
  color: var(--ink);
  border: 1px solid var(--deep);
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
}

.rail nav ul {
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid var(--accent);
}

.rail nav a {
  display: block;
  padding: 9px 0 9px 10px;
  border-bottom: 1px solid var(--accent);
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.rail nav a:hover,
.rail nav a:focus {
  border-left-color: var(--deep);
  background: var(--soft);
  color: var(--ink);
}

main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

main section {
  padding: 48px 48px;
  border-bottom: 1px solid var(--line);
}

main h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

main h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: var(--accent);
  vertical-align: 2px;
}

main p {
  max-width: 62ch;
}

main p + p {
  margin-top: 12px;
}

.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--soft);
}

.hero .kicker {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 46px;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero .cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  background: var(--deep);
  color: var(--box);
  text-decoration: none;
  font-weight: bold;
}

.hero .cta:hover,
.hero .cta:focus {
  background: var(--ink);
  color: var(--box);
}

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.grid li {
  background: var(--box);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--main);
  padding: 18px;
}

.grid h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.grid p {
  font-size: 15px;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 52px;
  border-bottom: 1px dashed var(--line);
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 22px;
  font-weight: bold;
  color: var(--accent);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags li {
  background: var(--main);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 14px;
}

.band {
  background: var(--deep);
  color: var(--box);
}

.band h2,
.band p {
  color: var(--box);
}

.band h2::before {
  background: var(--main);
}

.band address {
  margin-top: 14px;
  font-style: normal;
  font-size: 18px;
  color: var(--box);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--accent);
  background: var(--box);
  color: var(--ink);
}

.contact-card > div {
  padding: 20px;
}

.contact-card > div + div {
  border-left: 1px solid var(--line);
}

.contact-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card address {
  font-style: normal;
}

.contact-card a {
  color: var(--deep);
  word-break: break-word;
}

.contact-card table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.contact-card td {
  padding: 3px 0;
  color: var(--ink);
}

.contact-card td + td {
  text-align: right;
}

.doc h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.doc h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.doc ul {
  margin: 8px 0 0 20px;
  max-width: 62ch;
}

.doc address {
  font-style: normal;
  margin-top: 8px;
}

footer {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--soft);
  padding: 14px 24px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

footer a {
  color: var(--main);
}

footer a:hover,
footer a:focus {
  color: var(--box);
}

@media (max-width: 820px) {
  body {
    padding: 12px 8px;
  }

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

  .frame::before {
    font-size: 380px;
  }

  .frame::after {
    font-size: 320px;
    left: 20px;
  }

  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--accent);
  }

  .rail-inner {
    position: static;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .rail nav {
    display: none;
    width: 100%;
  }

  .rail nav.open {
    display: block;
  }

  .rail nav ul {
    margin-top: 4px;
  }

  main section {
    padding: 36px 20px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .contact-card > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
