@media screen {
  body {
    display: grid;
    grid-template-columns: 10rem minmax(0, var(--sheet-width));
    gap: 2rem;
    justify-content: center;
    align-items: start;
  }

  .sheet { width: 100%; }

  .controls {
    position: sticky;
    top: 2rem;
    display: grid;
    justify-items: start;
    gap: .3rem;
    padding-top: 1rem;
    color: #47565e;
    font: 500 .9rem/1.4 var(--font-ui);
  }

  .controls a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding-inline: .5rem;
    border-radius: .3rem;
    text-decoration: none;
  }

  .controls a:hover {
    color: #243640;
    background: rgb(36 54 64 / 6%);
  }

  .controls a:focus-visible {
    outline: 2px solid #356174;
    outline-offset: 1px;
  }

  .controls svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .languages {
    display: flex;
    align-items: center;
    gap: .125rem;
  }

  .languages a { justify-content: center; min-width: 2.4rem; }
  .languages [aria-current] {
    color: #243640;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .34em;
  }
}

@media screen and (max-width: 65rem) {
  body { display: block; }
  .controls {
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem .6rem;
    max-width: var(--sheet-width);
    margin: 0 auto;
    padding: .35rem .5rem;
  }
  .controls .home { margin-inline-end: auto; }
}

@media screen and (max-width: 24rem) {
  .controls { column-gap: .2rem; }
  .controls .home svg { display: none; }
  .controls a { padding-inline: .35rem; }
}

@media print { .controls { display: none; } }

.contact a[href^="tel:"] { white-space: nowrap; }
