:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #303b4d;
  background: #edf1f6;
}

* { box-sizing: border-box; }

body {
  --ink: #162f74;
  --rule: #243f89;
  --panel-start: #edf1fc;
  --panel-end: #c7d3ee;
  --panel-line: #8197c4;
  --logo-width: 8rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1.125rem, 4vw, 4rem);
  display: grid;
  align-content: center;
  justify-items: center;
  background: radial-gradient(ellipse at 50% -45%, #fff 5%, #edf1f6 70%);
}

body.minav {
  --ink: #143f60;
  --rule: #427da4;
  --panel-start: #edf8ff;
  --panel-end: #b5d8f1;
  --panel-line: #729fc2;
  --logo-width: 13rem;
}

.letter {
  width: min(100%, 68rem);
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.4fr);
  border: 1px solid #d8e0eb;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1.5rem 5rem #20355117, 0 0.25rem 1rem #2035510a;
}

.brand {
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(155deg, var(--panel-start), var(--panel-end));
}

.brand::before,
.brand::after {
  position: absolute;
  z-index: -1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  aspect-ratio: 1;
  border: 1px solid var(--panel-line);
  border-radius: 50%;
  opacity: 0.44;
  content: "";
}

.brand::after { width: 30rem; opacity: 0.23; }

.brand-lockup {
  display: grid;
  place-items: center;
  width: min(100%, 16rem);
  min-height: 13rem;
  padding: 1.5rem;
  border: 1px solid #fff9;
  border-radius: 0.875rem;
  background: #ffffffa8;
  box-shadow: 0 0.75rem 2rem #15345612;
}

.brand img {
  display: block;
  width: min(100%, var(--logo-width));
  height: auto;
}

.message { padding: clamp(2rem, 6vw, 5.75rem); }

h1 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(2.3rem, 4.45vw, 4.2rem) / 1.03 Georgia, "Times New Roman", serif;
  letter-spacing: -0.046em;
  text-wrap: balance;
}

h1 span {
  display: block;
  margin-bottom: 0.55rem;
  font: 600 clamp(0.8rem, 1.5vw, 0.95rem) / 1.5 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy {
  margin-top: 1.75rem;
  max-width: 39rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.copy p { margin: 0 0 0.875rem; }

.signature {
  margin: 1.75rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 51rem) {
  .letter { grid-template-columns: minmax(0, 1fr); max-width: 39rem; }
  .brand { padding: 1rem; min-height: 9rem; }
  .brand-lockup { min-height: 0; padding: 0.75rem 1.25rem; width: fit-content; }
  .brand img { width: min(100%, calc(var(--logo-width) * 0.65)); }
  .message { padding: clamp(1.5rem, 5.5vw, 3rem); }
}

@media (max-width: 27rem) {
  body { padding: 0.75rem; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .copy { font-size: 1rem; }
}
