/* Contact — the hero's yellow panel, the bridge across its foot, and the
 * address as the one thing on the page. Buttons are the site's pressed-key
 * pills: amber to write, cream to copy. */

.sgc {
  background: var(--sg-page);
  padding: var(--page-gutter) 0;
}
.sgc.has-sec-bg { background-color: var(--sg-page) !important; }

.sgc__in {
  position: relative;
  margin-inline: var(--page-gutter);
  border-radius: var(--panel-r);
  background: var(--sec-bg, var(--yel));
  color: var(--plum);
  overflow: hidden;
  isolation: isolate;
  /* about a screen tall, but never flatter than 0.6 of its width, so the
     full-width bridge always fits with its tower inside on wide screens */
  height: max(clamp(640px, calc(100vh - 110px), 800px), calc((100vw - 2 * var(--page-gutter)) * .6));
  display: flex;
  flex-direction: column;
}

.sgc__copy {
  position: relative;
  z-index: 2;
  /* a cream card over the bridge, in the map cards' sticker style */
  margin: clamp(40px, 6vh, 72px) auto 0;
  width: calc(100% - 40px);
  max-width: 680px;
  padding: 40px 44px 44px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--panel-r);
  box-shadow: 6px 6px 0 var(--line);
  text-align: center;
  container-type: inline-size;
}

.sgc__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.sgc__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--plum);
  text-wrap: balance;
}

.sgc__lede {
  margin: 18px auto 0;
  max-width: 36ch;
  font-family: var(--f-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
}

.sgc__email {
  display: inline-block;
  margin-top: clamp(22px, 3vw, 34px);
  font-family: var(--f-body);
  font-weight: 700;
  /* sized to the card, so the address always stays on one line */
  font-size: min(38px, 6.6cqi);
  line-height: 1.15;
  white-space: nowrap;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: .14em;
  text-underline-offset: .18em;
  transition: color .15s ease;
}
.sgc__email:hover { text-decoration-color: var(--plum); }
.sgc__email:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; border-radius: 6px; }

.sgc__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 32px);
}
.sgc__btn { gap: 10px; }
.sgc__btn svg { flex: none; }
.sgc__copybtn { cursor: pointer; }
.sgc__copybtn.is-done { --b-bg: var(--amber); }

/* the bridge, filling from the left and running off the right, as in the hero */
.sgc__art {
  position: absolute;
  z-index: 1;
  left: -10%;
  bottom: 0;
  width: 118%;
  pointer-events: none;
}
.sgc__art img { display: block; width: 100%; height: auto; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 95%, transparent 100%); }
/* the drawing's unfinished left edge stays past the panel (see sg-hero.css) */

/* phones: the card first, the bridge below it, tucked up under its shadow */
@media (max-width: 760px) {
  .sgc__in { height: auto; }
  .sgc__copy { margin-top: 28px; width: calc(100% - 28px); padding: 30px 20px 32px; }
  .sgc__art { position: relative; left: auto; bottom: auto; width: 150%; margin: -12% 0 0 -12%; }
  .sgc__acts { flex-direction: column; align-items: center; }
}
