/* Contact: the lamp, and the two screens around it */

/* First screen */
.contact-stage { align-items: center; padding-bottom: 8rem; }
.contact-grid { align-items: center; }
.contact-sill { text-align: center; padding-inline: clamp(1.5rem, 4vw, 3.5rem); }
.contact-sill h1 { font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.contact-sill h3 { margin-bottom: .4em; }
.contact-mail { margin: 1.25rem 0 1rem; }
.mail {
  display: inline-block; min-height: 2.75rem; padding: .35rem 0;
  font-size: clamp(1.05rem, .7rem + 1.5vw, 1.8rem); line-height: 1.3;
  overflow-wrap: anywhere; text-decoration-thickness: .2rem;
}
.contact-address { font-style: normal; margin: 0 0 1rem; }
.contact-hours { max-width: 30rem; margin-inline: auto; }

/* The lamp */
.lamp { display: grid; align-content: center; }
.lamp .arch { width: 100%; }
.lamp .arch__frame,
.lamp .arch__frame:first-child:not(.is-off) { position: absolute; inset: 0; }
.lamp .arch--frame { aspect-ratio: 4 / 5; }
.lamp__glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 60% 45% at 68% 28%, rgba(243, 237, 226, .55), rgba(243, 237, 226, 0) 70%),
    linear-gradient(180deg, rgba(243, 237, 226, 0) 55%, rgba(243, 237, 226, .22));
  transition: opacity 1.6s var(--drift);
}
/* the lamp's reflection in the glass: a soft disc and a pale streak, low on the left */
.lamp__glow::before {
  content: ""; position: absolute; left: 16%; top: 56%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 244, .9), rgba(243, 237, 226, .35) 55%, rgba(243, 237, 226, 0) 72%);
}
.lamp__glow::after {
  content: ""; position: absolute; left: 25%; top: 70%; width: 3%; height: 22%; border-radius: 999rem;
  background: linear-gradient(180deg, rgba(243, 237, 226, .5), rgba(243, 237, 226, 0));
}
.lamp.is-lit .lamp__glow { opacity: 1; }

.lamp__base { display: grid; justify-items: center; align-items: start; }
.lamp__base > * { grid-area: 1 / 1; }
.lamp__base .arch-sill { justify-self: stretch; align-self: start; }
.lamp__btn {
  position: relative; z-index: 2; margin-top: .5rem;
  width: 7.5rem; height: 7.5rem; padding: .75rem; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--cream); color: var(--ink); border: .125rem solid var(--ink);
  font: 400 1rem/1.2 Lexend, sans-serif; cursor: pointer;
  box-shadow: 0 .5rem 1.1rem rgba(34, 26, 46, .3);
  transition: background .25s var(--settle);
}
.lamp__btn:hover { background: #fff; }
.lamp__btn[aria-pressed="true"] { background: #fff; outline: .1875rem solid var(--moss); outline-offset: .2rem; }

/* Second screen */
.contact-notes { min-height: 70svh; }
.contact-sill--left { text-align: left; }
.contact-sill--left .contact-mail { text-align: left; }
.pills { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.pills .btn { text-align: center; }
.contact-notes .sill { padding-top: 2.5rem; }
.contact-snap { justify-self: center; }

@media (max-width: 59.99rem) {
  .contact-stage { padding-bottom: 3rem; }
  .contact-grid { row-gap: 2.5rem; }
  .lamp { max-width: 24rem; width: 100%; justify-self: center; }
}

@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .contact-stage .opening__arch { grid-column: 8 / -1; align-self: center; }
  .contact-notes { padding-top: 4rem; }
  .contact-notes .sill { grid-column: 1 / span 7; }
  .contact-snap {
    grid-column: 9 / span 3; align-self: start; width: 100%; max-width: 22rem; margin: 0;
    translate: 0 -35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lamp__glow { transition: none; }
}
