:root {
  --ink: hsl(110, 22%, 14%);
  --soft: hsl(110, 10%, 34%);
  --paper: hsl(110, 28%, 95%);
  --sheet: hsl(110, 24%, 99%);
  --line: hsl(110, 18%, 84%);
  --main: hsl(110, 38%, 32%);
  --accent: hsl(110, 63%, 24%);
  --tint: hsl(110, 40%, 90%);
  --pale: hsl(110, 30%, 78%);
  --deep: hsl(110, 30%, 17%);
  --r: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper) url("../img/pattern.svg") repeat;
}

h1,
h2,
h3 {
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.masthead {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 20px 0;
  text-align: center;
}

.langs {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.langs a {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--soft);
  text-decoration: none;
}

.langs a:hover {
  color: var(--accent);
  background: var(--tint);
}

.langs a[aria-current] {
  color: #fff;
  background: var(--main);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  display: block;
  width: 54px;
  height: 54px;
}

.brand span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.brand b {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
}

.brand small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--soft);
}

.primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 30px;
  margin-top: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.primary a {
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.primary a:hover {
  color: var(--accent);
}

.primary a[aria-current] {
  color: var(--accent);
  border-color: var(--main);
}

main {
  counter-reset: part;
  width: calc(100% - 40px);
  max-width: 1040px;
  margin: 30px auto;
  padding: 0 52px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 22px 44px -34px hsla(110, 30%, 18%, 0.45);
}

main > section {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0 52px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

main > section:first-child {
  border-top: 0;
}

main > section > h2,
.kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

main > section > h2 {
  counter-increment: part;
}

main > section > h2::before {
  content: counter(part, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--pale);
}

.kicker span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--soft);
}

.lead {
  font-size: 19px;
  color: var(--soft);
  max-width: 40em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--main);
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: var(--main);
}

.btn:hover {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.btn.quiet {
  color: var(--accent);
  background: transparent;
}

.btn.quiet:hover {
  color: var(--deep);
  background: var(--tint);
}

.plate {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.facts div {
  padding: 18px 20px;
  background: var(--sheet);
}

.facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.ticks {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px dashed var(--line);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--main);
  border-radius: 2px;
  transform: rotate(45deg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 32px;
  align-items: start;
}

.monogram {
  margin: 0;
  padding: 22px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--ink);
}

.monogram svg {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.monogram figcaption {
  font-size: 15px;
  color: var(--ink);
}

.monogram strong {
  display: block;
  font-size: 17px;
  color: var(--accent);
}

.places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.places li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--sheet);
}

.places li:first-child {
  color: #fff;
  background: var(--main);
  border-color: var(--main);
}

.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px;
  border-radius: 6px;
  color: hsl(110, 28%, 92%);
  background: var(--deep) url("../img/pattern.svg") repeat;
}

.desk h3 {
  margin-bottom: 14px;
  font-size: 20px;
  color: #fff;
}

.desk address {
  font-style: normal;
  margin-bottom: 18px;
  color: hsl(110, 28%, 92%);
}

.desk dl {
  margin: 0;
}

.desk dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(110, 40%, 74%);
}

.desk dd {
  margin: 2px 0 14px;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.desk a {
  color: #fff;
}

.desk a:hover {
  color: hsl(110, 45%, 80%);
}

.hours {
  padding: 22px;
  border-radius: var(--r);
  color: var(--ink);
  background: var(--sheet);
}

.hours h3 {
  color: var(--accent);
}

.hours table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.hours th,
.hours td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
}

.hours th {
  font-weight: 500;
}

.hours td {
  text-align: right;
  font-weight: 600;
}

.hours p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--soft);
}

.hours a {
  color: var(--accent);
}

.lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lines li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}

.lines svg {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.lines p {
  margin: 0;
  font-size: 16px;
  color: var(--soft);
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  font-weight: 700;
  color: #fff;
  background: var(--main);
}

.steps p {
  margin: 0;
  color: var(--soft);
}

.note {
  padding: 16px 20px;
  border-left: 4px solid var(--main);
  border-radius: var(--r);
  color: var(--ink);
  background: var(--tint);
}

.note a {
  color: var(--accent);
}

.prose h3 {
  margin-top: 24px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.stamp {
  font-size: 15px;
  color: var(--soft);
}

.colophon {
  max-width: 1040px;
  margin: 0 auto;
  padding: 6px 20px 34px;
  text-align: center;
  font-size: 14px;
  color: var(--soft);
}

.colophon p {
  margin: 0;
}

.colophon a {
  color: var(--accent);
}

@media (max-width: 860px) {
  main {
    padding: 0 28px;
  }

  main > section {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 40px 0;
  }

  main > section > h2::before {
    display: inline;
    margin: 0 12px 0 0;
    font-size: 26px;
    vertical-align: -3px;
  }

  .split,
  .desk {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .masthead {
    padding-top: 44px;
  }

  .langs {
    top: 10px;
    right: 12px;
  }

  .primary {
    gap: 2px 18px;
  }

  main {
    width: calc(100% - 20px);
    margin: 20px auto;
    padding: 0 18px;
  }

  .facts,
  .lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk {
    padding: 20px 16px;
  }

  .hours {
    padding: 18px 16px;
  }

  .lead {
    font-size: 17px;
  }
}
