@font-face {
  font-family: Inter;
  src: url('/assets/inter-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/inter-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f5f7ff;
  --secondary: #c6d2e5;
  --red: #f43c51;
  --navy: #091426;
  font-family: Inter, system-ui, sans-serif;
  color: var(--paper);
  background-color: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fb6270; outline-offset: 6px; }
img { display: block; max-width: 100%; }

.page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 78% 49%, #183a66 0%, #10223d 32%, transparent 66%),
    linear-gradient(150deg, #0b1426, #08101e);
  overflow: hidden;
}

.site-header, .hero {
  width: min(100% - 9rem, 1160px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid #36455d;
}

.brand { display: inline-block; }
.brand img { width: 97px; height: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(22rem, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "title portrait" "details portrait";
  grid-template-rows: 1fr 1fr;
  align-items: start;
  column-gap: clamp(1.5rem, 6vw, 6rem);
  min-height: min(660px, calc(100svh - 110px));
}

.hero-title {
  grid-area: title;
  align-self: end;
  padding-block-start: 2.5rem;
}

.status {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.4rem;
  color: #e7edf8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.status::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: var(--red);
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7.3vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -.076em;
  line-height: .93;
}

.hero-greeting { display: block; font-size: .59em; letter-spacing: -.062em; margin-bottom: .18em; }
.hero-name { display: block; }
.hero-name span { color: var(--red); }

.hero-details {
  grid-area: details;
  align-self: start;
  padding-block: 1.7rem 3rem;
}

.hero-details p {
  color: var(--secondary);
  max-width: 28rem;
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.64;
}

.action {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: .7rem .95rem .7rem 1.1rem;
  border-radius: 7px;
  border: 1px solid #6a7e9d;
  color: var(--paper);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.action:hover { background: #18314e; border-color: #b0bed2; }
.action span { font-size: 1.18rem; font-weight: 400; }

.portrait {
  grid-area: portrait;
  position: relative;
  isolation: isolate;
  align-self: end;
  margin: 0;
  width: 100%;
  height: clamp(420px, 66vw, 650px);
  overflow: hidden;
}

.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  width: 92%;
  aspect-ratio: 1;
  left: 4%;
  top: 13%;
}

.portrait::before {
  border: 1px solid #7490b8;
  border-right-color: #e63b52;
  box-shadow: 0 0 45px #538fc62c, inset 0 0 55px #285c9444;
  transform: rotate(-25deg);
}

.portrait::after {
  width: 80%;
  left: 10%;
  top: 18%;
  border: 1px solid #4a6892;
  opacity: .65;
}

.portrait img {
  position: absolute;
  inset: auto 0 0;
  width: 99%;
  height: 96%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(black 86%, transparent);
}

@media (max-width: 900px) {
  .site-header, .hero { width: calc(100% - 4rem); }
  .site-header { min-height: 85px; }
  .hero { grid-template-columns: minmax(15rem, 1fr) minmax(0, 1fr); }
  .portrait { height: clamp(400px, 67vw, 550px); }
}

@media (max-width: 650px) {
  .page {
    background: radial-gradient(ellipse at 66% 47%, #183a66, #101f36 42%, var(--navy) 78%);
  }
  .site-header, .hero { width: calc(100% - 3rem); }
  .site-header { min-height: 68px; }
  .brand img { width: 77px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "title" "portrait" "details";
    min-height: auto;
    gap: 0;
  }

  .hero-title { padding-top: 1.75rem; }
  .status { margin-bottom: .75rem; font-size: .7rem; }
  h1 { font-size: clamp(2.65rem, 10.7vw, 4.4rem); }
  .hero-greeting { display: inline; font-size: .79em; }
  .hero-name { display: inline; }

  .portrait {
    justify-self: center;
    width: min(100%, 410px);
    height: clamp(275px, 83vw, 420px);
    margin-top: .55rem;
  }

  .portrait::before { top: 13%; }
  .portrait::after { top: 19%; }
  .portrait img { height: 100%; }

  .hero-details { padding-block: .1rem 1.9rem; }
  .hero-details p { margin-bottom: .9rem; font-size: 1rem; }
}
