:root {
  color-scheme: dark;
  --surface: #000000;
  --text: #ffffff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
}

body {
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.page {
  width: min(1200px, calc(100% - 72px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(270px, 0.83fr) minmax(460px, 1.45fr);
  align-items: center;
  gap: clamp(60px, 8vw, 138px);
}

.emblem {
  width: 100%;
  display: grid;
  place-items: center;
}

.consul-mark {
  display: block;
  width: min(100%, 350px);
  aspect-ratio: 1278 / 1230;
  background-color: var(--text);
  /* Recolor the supplied transparent logo for display without altering its file. */
  -webkit-mask: url("consul-logo.png") center / contain no-repeat;
  mask: url("consul-logo.png") center / contain no-repeat;
  mask-mode: alpha;
}

.content { padding: 40px 0 52px; }

h1 {
  margin: 0;
  /* The exact Monotype face requires the licensed webfont before public launch.
     Until supplied, the browser uses an installed matching family or a fallback. */
  font-family: "Monotype Baskerville Pro Roman", "Baskerville MT Pro", Baskerville, "Times New Roman", serif;
  font-size: clamp(3.25rem, 6.5vw, 6.5rem);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: 0.14em;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(42px, 6vh, 76px);
  color: var(--text);
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1;
  text-decoration: none;
}

.contact span {
  display: inline-block;
  transition: transform 180ms ease;
}

.contact:hover span,
.contact:focus-visible span { transform: translateX(6px); }

.contact:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 8px;
}

@media (max-width: 960px) {
  .page {
    width: min(100% - 40px, 590px);
    min-height: auto;
    padding: 58px 0 70px;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .emblem {
    justify-content: start;
  }

  .consul-mark { width: min(58vw, 270px); }
  .content { padding: 0; }
  h1 { font-size: clamp(2.5rem, 12vw, 4.875rem); }

  .contact { font-size: 24px; }
}

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