@font-face {
  font-family: Nunito;
  src: url("./nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --glacier: #eaf7fa;
  --ink: #103847;
  --muted: #395f6c;
  --line: #afcfd8;
  --teal: #006982;
  font-family: Nunito, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--glacier);
}

* { box-sizing: border-box; }
body { margin: 0; }

.landing {
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  width: min(100%, 108rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1rem, 3.2vh, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: clamp(1.3rem, 2.25vw, 1.85rem);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -.065em;
}

.wordmark img { width: 1.45em; height: 1.45em; }
.address { font-size: .875rem; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2rem, 6vh, 5rem);
}

.message {
  align-self: center;
  padding-block: 2rem;
}

h1 {
  margin: 0;
  font: 400 clamp(5.2rem, 10.4vw, 11.5rem)/.79 "Instrument Serif", Georgia, serif;
  letter-spacing: -.055em;
}

h1 em { display: block; color: var(--teal); }

.message p {
  max-width: 24rem;
  margin: clamp(2rem, 5vw, 4.25rem) 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.artwork {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  min-height: clamp(24rem, 72svh, 58rem);
  border-radius: .5rem;
  background:
    radial-gradient(ellipse at 7% 0%, #4490a1 0%, transparent 66%),
    linear-gradient(138deg, var(--teal) 1%, #145267 50%, var(--ink) 90%);
}

.artwork::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgb(234 247 250 / 4%) 3px 4px);
}

/* Enlarge the two offset capsule outlines from the wordmark into a relief. */
.emblem {
  position: absolute;
  font-size: 2.65cqw;
  width: 30em;
  height: 20em;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-34deg);
}

.capsule {
  position: absolute;
  width: 21em;
  height: 11em;
  border-radius: 6em;
  background: linear-gradient(145deg, #fbffff 5%, #cdebf1 30%, #9cccd7 74%, #78aebc);
  box-shadow:
    inset .1em .15em .14em #fbffff,
    inset -.16em -.22em .23em #78acba,
    -.08em .25em 0 #94bec8,
    -.15em .52em 0 #79a9b7,
    -.22em .8em 0 #6598a6,
    -.4em 1.2em .9em rgb(10 48 62 / 48%),
    -1em 2.7em 2.6em rgb(8 41 54 / 40%);
}

.capsule::after {
  content: "";
  position: absolute;
  inset: 2.85em;
  border-radius: 4em;
  background: linear-gradient(165deg, #164658, #296478 62%, #398094);
  box-shadow:
    inset .2em .8em .55em rgb(10 42 55 / 52%),
    inset .13em -.3em .14em #83afbb,
    0 .09em .12em #f4ffff;
}

.capsule-back { top: 0; left: 0; }
.capsule-front { right: 0; bottom: 0; }

@media (max-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 1.25rem; }
  .message { padding: 0; }
  h1 { font-size: clamp(4.25rem, 13.5vw, 6.25rem); line-height: .94; }
  h1 em { display: inline; }
  .message p { margin-top: 1.25rem; max-width: 28rem; }
  .artwork { width: 100%; min-height: min(53svh, 31rem); aspect-ratio: 1.34; }
}

@media (max-width: 19rem) {
  .address { display: none; }
}
