/*
  The Grand-Place webcam
  ----------------------
  Loaded only on /webcam/, after style.css and places.css. The page head and
  the .place-facts panel come from places.css; everything here belongs to the
  one figure at the top of the page and the cards under it.

  Conventions taken from css/style.css rather than re-chosen: 4 px on panels,
  hairline borders instead of shadows, uppercase labels at 11px / 700 / .1em,
  Montserrat for headings and Open Sans for prose.
*/

/* --- The still, and the way out of the page ------------------------------
   A photograph of the square with the call to action laid over it. It is a
   link to somebody else's site, and it has to say so before the click rather
   than after, so the button carries the destination host and a second line
   states that the tab is new. A bare play triangle would promise a player
   that this page cannot give. */

.wc-frame{
  margin: 0;
  position: relative;
}

.wc-shot{
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-sunken);
  line-height: 0;   /* kill the inline-image gap under the picture */
}

.wc-shot img{
  display: block;
  width: 100%;
  height: auto;
}

/* Baked dark enough that the white button holds its contrast over the
   brightest part of any photograph put behind it. */
.wc-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20,24,33,0.10), rgba(20,24,33,0.62));
}

.wc-cta{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}

.wc-cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  transition: background .18s ease, transform .18s ease;
}

.wc-cta-icon{
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.wc-cta-note{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(255,255,255,0.86);
}

.wc-shot:hover .wc-cta-btn,
.wc-shot:focus .wc-cta-btn{
  background: #a33a3a;
  transform: translateY(-1px);
}

.wc-shot:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wc-langs{
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- Prose --------------------------------------------------------------- */

.section-title.wc-left{ text-align: left; }

.wc-lede{
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
}

.wc-intro{
  margin: 0 0 8px;
  color: var(--text-body);
}

/* --- When to look -------------------------------------------------------- */

.wc-when{ margin-top: 10px; }

.wc-card{
  height: 100%;
  padding: 22px 24px 24px;
  margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.wc-card h3{
  margin: 0 0 8px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.wc-card p{ margin: 0; color: var(--text-body); }

.wc-weather{
  margin: 6px 0 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  color: var(--text-body);
}

/* --- The explanation, and the way back in -------------------------------- */

.wc-close{
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  color: var(--text);
}

.wc-links{
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.wc-links li{
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-body);
}
.wc-links li:last-child{ border-bottom: 1px solid var(--border); }

.wc-links a{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 767px){
  .wc-lede{ font-size: 17px; }
  .wc-cta{ gap: 9px; }
  .wc-cta-btn{ padding: 12px 18px; font-size: 13px; }
  .wc-cta-note{ font-size: 10px; letter-spacing: .08em; }
}
