:root {
  --ink: #23362f;
  --paper: #fafaf7;
  --muted: #586259;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(1440px, calc(100% - 48px));
  margin: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 0 28px;
  border-bottom: 1px solid #d8dbd4;
}

.brand {
  text-decoration: none;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.brand span {
  font-weight: 400;
}

.region {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  text-align: right;
}

.intro {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

h1 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.5px;
  margin: 0;
}

.intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.practice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.roland {
  background: #eeeadd;
  color: #23362f;
}

.weisman {
  background: #e2e8dc;
  color: #293e36;
}

.auburn {
  background: #e8cdb1;
  color: #493325;
}

.optical {
  background: #293e59;
  color: #f2f2e9;
}

.practice-photo {
  height: 36%;
  min-height: 150px;
  overflow: hidden;
}

.practice-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.roland .practice-photo img {
  object-position: 12% 36%;
}

.weisman .practice-photo img {
  object-position: 55% 40%;
}

.auburn .practice-photo img {
  object-position: 38% 38%;
}

.practice:hover .practice-photo img {
  transform: scale(1.025);
}

.practice-content {
  padding: 23px 34px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.city {
  font-size: 12px;
  letter-spacing: .4px;
  margin: 0;
}

.practice h2 {
  margin: 20px 0 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font: 400 42px/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -1.3px;
}

.practice h2 span {
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3.4px;
  margin-top: 6px;
}

.practice-logo {
  display: block;
  max-width: 85%;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.roland .practice-logo {
  width: 295px;
  mix-blend-mode: multiply;
}

.auburn .practice-logo {
  width: 265px;
  mix-blend-mode: multiply;
}

.optical .practice-logo {
  max-height: 88px;
}

address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
}

.practice-actions {
  border-top: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.website {
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  gap: 17px;
  align-items: center;
}

.website span {
  font-size: 24px;
  line-height: 1;
}

.website::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.website:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.website:focus-visible {
  outline: none;
}

.website:focus-visible::after {
  outline: 3px solid currentColor;
  outline-offset: -7px;
}

.phone {
  font-size: 13px;
  text-decoration: none;
  position: relative;
  z-index: 2;
  padding-block: 7px;
}

.phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.patient-note {
  margin: 27px 0 31px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 20px;
}

.patient-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.patient-note p:first-child {
  font-weight: 700;
}

.patient-note p:nth-child(2) {
  grid-column: 1;
  color: var(--muted);
}

.patient-note small {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 11px;
  color: var(--muted);
}

footer {
  border-top: 1px solid #d8dbd4;
  display: flex;
  justify-content: space-between;
  padding: 22px 0 28px;
  font-size: 11px;
  color: var(--muted);
}

footer>span:first-child {
  font-weight: 700;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 15px;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 900px) {
  .page {
    width: calc(100% - 48px);
  }

  .directory {
    aspect-ratio: auto;
  }

  .practice-photo {
    height: 175px;
  }

  .practice-content {
    padding: 22px;
  }

  .practice h2 {
    font-size: 36px;
  }

  .practice-logo {
    max-width: 100%;
  }

  .practice-actions {
    gap: 8px;
  }

  .website,
  .phone {
    font-size: 12px;
  }

  .website {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .page {
    width: calc(100% - 32px);
  }

  .masthead {
    padding-block: 25px;
  }

  .brand {
    font-size: 25px;
    letter-spacing: -.9px;
  }

  .region {
    display: none;
  }

  .intro {
    display: block;
    padding-block: 24px;
  }

  .intro p {
    margin-top: 10px;
  }

  .directory {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .practice-photo {
    height: 175px;
  }

  .practice-content {
    padding: 23px 25px;
  }

  .practice h2 {
    margin-block: 19px 15px;
  }

  .practice-logo {
    max-width: 90%;
  }

  .practice-actions {
    padding-top: 13px;
  }

  .phone,
  .website {
    font-size: 13px;
  }

  .patient-note {
    display: block;
  }

  .patient-note small {
    display: block;
    margin-top: 13px;
  }

  .desktop-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.directory {
  aspect-ratio: auto;
  grid-auto-rows: 420px;
}

.practice {
  height: 420px;
}

.practice-photo {
  height: 145px;
  min-height: 145px;
  flex: 0 0 145px;
}

.practice-content {
  padding: 19px 30px 18px;
  min-height: 0;
}

.practice h2 {
  height: 68px;
  min-height: 68px;
  margin: 13px 0 12px;
}

.practice-logo,
.optical .practice-logo {
  max-height: 68px;
}

address {
  margin-bottom: 12px;
}

.practice-actions {
  padding-top: 12px;
}

@media (max-width: 900px) {
  .practice-content {
    padding-inline: 22px;
  }
}

@media (max-width: 620px) {
  .practice-content {
    padding-inline: 25px;
  }
}

@media (min-width: 900px) and (min-height: 700px) {
  .page {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .masthead {
    flex: 0 0 auto;
    padding: 17px 0;
  }

  .brand {
    font-size: 28px;
  }

  main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .intro {
    flex: 0 0 auto;
    padding: 15px 0;
  }

  .intro p {
    font-size: 12px;
  }

  .directory {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .practice {
    height: auto;
    min-height: 0;
    flex-direction: row;
  }

  .practice-photo {
    width: 42%;
    height: auto;
    min-height: 0;
    flex: 0 0 42%;
  }

  .practice-content {
    width: 58%;
    padding: 18px 16px;
    min-width: 0;
  }

  .practice h2 {
    height: 60px;
    min-height: 60px;
    margin: 10px 0;
    font-size: 35px;
  }

  .practice h2 span {
    font-size: 10px;
    letter-spacing: 2.7px;
  }

  .practice-logo,
  .optical .practice-logo {
    max-width: 100%;
    max-height: 60px;
  }

  address {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .practice-actions {
    padding-top: 8px;
    gap: 8px;
  }

  .website,
  .phone {
    font-size: 12px;
    white-space: nowrap;
  }

  .website {
    gap: 10px;
  }

  .patient-note {
    flex: 0 0 auto;
    margin: 12px 0;
    gap: 1px 20px;
  }

  .patient-note p {
    font-size: 12px;
  }

  footer {
    flex: 0 0 auto;
    padding: 12px 0;
  }
}

.optical .practice-photo {
  background: #293e59;
  display: flex;
  justify-content: center;
}

.optical .practice-photo img {
  height: 100%;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 899px) {
  .page {
    width: calc(100% - 32px);
    height: auto;
  }

  .directory {
    grid-auto-rows: auto;
    grid-template-rows: none;
    gap: 16px;
  }

  .practice {
    height: auto;
    min-height: 0;
  }

  .practice-photo {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    flex: 0 0 auto;
  }

  .practice-photo img,
  .optical .practice-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .practice-content {
    width: 100%;
    padding: 22px;
  }

  .practice h2 {
    height: 68px;
    min-height: 68px;
    margin: 15px 0;
  }

  .city {
    font-size: 13px;
  }

  address {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .practice-actions {
    flex-wrap: wrap;
    padding-top: 8px;
    gap: 0 14px;
  }

  .website,
  .phone {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
  }

  .website::after {
    display: none;
  }

  .website:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  .patient-note {
    display: block;
  }

  .patient-note small {
    display: block;
    margin-top: 12px;
  }

  .patient-note p {
    font-size: 14px;
  }

  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .masthead {
    padding: 22px 0;
  }

  .brand {
    font-size: clamp(22px, 5.8vw, 28px);
    letter-spacing: -.8px;
  }

  .intro {
    display: block;
    padding: 23px 0;
  }

  .intro p {
    margin-top: 10px;
    font-size: 14px;
    max-width: 370px;
  }

  .desktop-break {
    display: none;
  }

  .practice-content {
    padding: 20px;
  }
}

@media (hover: none) {
  .practice:hover .practice-photo img {
    transform: none;
  }
}