@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("fonts/ibm-plex-sans-condensed-light-latin1.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --paper: #f1eee6;
  --ink: #172033;
  --muted: #6e706e;
  --blue: #1c3f78;
  --gold: #b88b1e;
  --rail: #d4dfe3;
  --hero: #e2ddd1;
  --line: rgba(23, 32, 51, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  --photo-width: clamp(280px, 25vw, 360px);
  --page-padding: clamp(38px, 6vw, 96px);

  min-height: 100svh;
  background: linear-gradient(
    to right,
    var(--rail) 0,
    var(--rail) var(--photo-width),
    var(--paper) var(--photo-width),
    var(--paper) 100%
  );
}

.masthead {
  display: grid;
  grid-template-columns: var(--photo-width) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(150px, 19vh, 195px);
  padding: 24px 0;
}

.hero {
  display: grid;
  grid-template-columns: var(--photo-width) minmax(0, 1fr);
  min-height: clamp(330px, 38vh, 390px);
  background: var(--hero);
}

.portrait {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #9aaeba;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 44%;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px var(--page-padding);
}

.crest {
  width: clamp(92px, 7.8vw, 112px);
  height: auto;
  justify-self: center;
}

.location,
.eyebrow {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.location {
  grid-column: 2;
  justify-self: end;
  margin-top: 5px;
  margin-right: var(--page-padding);
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.location span {
  color: var(--gold);
  font-size: 0.78rem;
}

.location:hover,
.location:focus-visible {
  color: var(--blue);
}

.location:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(4.4rem, 7.2vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.88;
}

.lower {
  display: grid;
  grid-template-columns: var(--photo-width) minmax(0, 1fr);
}

.identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(48px, 7vh, 72px) 24px clamp(42px, 6vh, 68px);
}

.identity address {
  width: fit-content;
}

.details {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  grid-column: 2;
  padding: clamp(58px, 8vh, 86px) var(--page-padding) clamp(42px, 6vh, 68px) var(--page-padding);
}

.details-inner {
  width: min(100%, 540px);
}

.details h2 {
  margin: 0 0 0.72rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: right;
}

address {
  display: flex;
  flex-direction: column;
  color: #4f5358;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-style: normal;
  line-height: 1.65;
}

address span:first-child {
  margin-bottom: 0.24rem;
  color: var(--ink);
  font-weight: 600;
}

address a {
  width: fit-content;
  margin-top: 0.65rem;
  color: var(--blue);
  text-decoration-color: rgba(28, 63, 120, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

address a + a {
  margin-top: 0.08rem;
}

.map-feature {
  position: relative;
  width: 100%;
  margin-top: 0.48rem;
}

address .map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

address .map-link img {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}

.map-preview {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  width: calc(var(--photo-width) - 48px);
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.16);
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.map-preview iframe {
  display: block;
  width: 100%;
  height: 232px;
  border: 0;
}

.map-preview > span {
  display: block;
  padding: 6px 9px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-feature:has(.map-link:hover) .map-preview,
.map-feature:has(.map-link:focus-visible) .map-preview {
  opacity: 1;
  transform: translate(-50%, 0);
}

address a:hover,
address a:focus-visible {
  color: var(--gold);
  text-decoration-color: currentColor;
}

address a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

nav {
  border-top: 1px solid var(--line);
}

nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, padding 180ms ease;
}

.link-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.link-note {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: none;
}

.no-wrap {
  white-space: nowrap;
}

.logo-box {
  display: inline-flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.org-logo {
  display: block;
  max-width: 58px;
  max-height: 27px;
  object-fit: contain;
}

.org-logo-kwise {
  width: 28px;
  height: 28px;
}

.org-logo-wide {
  width: 58px;
  height: auto;
}

.org-logo-brand {
  width: 21px;
  height: 21px;
  opacity: 0.62;
  transition: opacity 180ms ease;
}

.org-logo-color {
  opacity: 1;
}

nav a:hover .org-logo-brand,
nav a:focus-visible .org-logo-brand {
  opacity: 0.9;
}

nav a:hover .org-logo-color,
nav a:focus-visible .org-logo-color {
  opacity: 1;
}

nav a:hover,
nav a:focus-visible {
  padding-left: 7px;
  color: var(--blue);
}

nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

nav a:hover .arrow,
nav a:focus-visible .arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 820px) {
  .page {
    --photo-width: clamp(142px, 38vw, 210px);
    --page-padding: clamp(24px, 7vw, 54px);
    background: linear-gradient(
      to right,
      var(--rail) 0,
      var(--rail) var(--photo-width),
      var(--paper) var(--photo-width),
      var(--paper) 100%
    );
  }

  .masthead {
    min-height: 112px;
    padding: 28px 0;
  }

  .hero {
    grid-template-columns: var(--photo-width) minmax(0, 1fr);
    min-height: clamp(220px, 30svh, 270px);
  }

  .portrait img {
    object-position: 57% 40%;
  }

  .intro {
    padding: 26px var(--page-padding);
  }

  h1 {
    font-size: clamp(3.2rem, 10.5vw, 5rem);
  }

  .lower {
    grid-template-columns: var(--photo-width) minmax(0, 1fr);
    column-gap: 0;
    align-items: end;
    padding: 64px var(--page-padding) 52px 0;
  }

  .identity {
    align-items: center;
    padding: 0 18px;
  }

  .map-preview {
    width: calc(var(--photo-width) - 28px);
  }

  .map-preview iframe {
    height: 200px;
  }

  .crest {
    width: 82px;
  }

  .details {
    display: flex;
    justify-content: flex-end;
    grid-column: 2;
    padding: 0 0 0 var(--page-padding);
  }

  .details-inner {
    width: min(100%, 540px);
  }
}

@media (max-width: 560px) {
  .page {
    --photo-width: 38%;
    background: linear-gradient(to right, var(--rail) 0 7px, var(--paper) 7px 100%);
  }

  .masthead {
    min-height: 96px;
    padding: 18px 0;
  }

  .crest {
    width: 70px;
  }

  .lower {
    display: block;
    padding: 0 0 44px;
  }

  .identity {
    display: block;
    padding: 32px 23px;
    background: var(--rail);
    text-align: center;
  }

  .map-preview {
    display: none;
  }

  .identity address {
    width: auto;
    align-items: center;
  }

  .details {
    display: block;
    padding: 0 23px;
    margin-top: 48px;
  }

  .link-note {
    display: block;
    margin-top: 2px;
  }

  .location {
    margin-right: 23px;
  }

  .hero {
    grid-template-columns: var(--photo-width) minmax(0, 1fr);
    min-height: clamp(190px, 27svh, 230px);
  }

  .intro {
    padding: 22px;
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .eyebrow nobr {
    white-space: normal;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.7rem);
    line-height: 0.88;
  }

  nav a {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
