:root {
  --paper: #f3f1ec;
  --ink: #1a1a1a;
  --muted: #6a6762;
  --white: #fffcf7;
  --blue: #272cd1;
  --magenta: #8f2b7d;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}

main {
  width: min(76rem, 100%);
  display: grid;
  gap: 1.75rem;
}

.offices {
  display: grid;
  gap: 1.5rem;
}

.office {
  background: var(--white);
  overflow: hidden;
  padding: 2.25rem 2rem 2.4rem;
}

.photo {
  display: block;
  width: calc(100% + 4rem);
  max-width: none;
  height: auto;
  aspect-ratio: 2.8 / 1;
  object-fit: cover;
  margin: -2.25rem -2rem 1.5rem;
}

.logo {
  display: block;
  width: min(100%, 13.5rem);
  height: auto;
  margin-bottom: 1.1rem;
}

.details {
  padding-top: 1.15rem;
  border-top: 1px solid #d4cfc4;
}

.name {
  margin: 0 0 0.85rem;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

address {
  margin: 0;
  font-style: normal;
}

address p {
  margin: 0 0 0.85rem;
}

address p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.note {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 720px) {
  .offices {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .office {
    padding: 2.75rem 2.75rem 3rem;
  }

  .photo {
    width: calc(100% + 5.5rem);
    margin: -2.75rem -2.75rem 1.75rem;
  }
}
