:root {
  --navy: #0b1f3a;
  --ocean: #155e75;
  --gold: #f4c542;
  --coral: #d94f4f;
  --cream: #fffdf7;
  --text: #172033;
  --muted: #647484;
  --line: rgba(11, 31, 58, 0.15);
  --ocean-light: rgba(21, 94, 117, 0.12);

  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: rgba(21, 94, 117, 0.16);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(11, 31, 58, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(11, 31, 58, 0.07) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 78%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(250px, 31%) 1fr;
  width: min(1180px, calc(100vw - 80px));
  height: min(760px, calc(100vh - 80px));
  min-height: 620px;
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(11, 31, 58, 0.2);
}

/* Profile rail */

.profile-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px 31px 24px;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
}

.profile-rail::after {
  position: absolute;
  right: -95px;
  bottom: 58px;
  width: 290px;
  height: 290px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(244, 197, 66, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(244, 197, 66, 0.05),
    0 0 0 56px rgba(244, 197, 66, 0.04);
}

.rail-topline,
.rail-footer,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  color: var(--gold);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.14em;
}

.logo-mark span {
  color: var(--coral);
}

.availability {
  color: #c7d3db;
  font: 9px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.14);
}

.profile-core {
  position: relative;
  z-index: 1;
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 25px;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.08em;
  border: 7px solid var(--gold);
  border-radius: 50%;
  background: var(--coral);
  transform: rotate(-7deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ocean);
  font: 10px var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

.profile-core h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(42px, 5vw, 61px);
  line-height: 0.92;
  letter-spacing: -0.09em;
}

.rail-role {
  max-width: 180px;
  margin: 13px 0 0;
  color: #c7d3db;
  font-size: 12px;
  line-height: 1.55;
}

.rail-rule {
  height: 1px;
  margin: 31px 0 22px;
  background: rgba(255, 253, 247, 0.2);
}

.rail-facts {
  display: grid;
  gap: 14px;
}

.rail-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-facts span {
  color: #9fb2bf;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-facts strong {
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
}

.rail-cta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 36px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.rail-cta:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.rail-footer {
  position: relative;
  z-index: 1;
  color: #9fb2bf;
  font: 9px var(--mono);
}

/* Main content */

.content-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 53px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-kicker {
  color: #8093a1;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  position: relative;
  color: #6d7f8d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--text);
}

.content-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 42px 9% 35px;
}

.view-panel {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

.view-panel.is-active {
  display: flex;
  animation: panel-in 0.28s ease both;
}

.view-panel:target {
  display: flex;
}

.content-body:has(.view-panel:target)
.view-panel.is-active:not(:target) {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  margin-bottom: 4px;
}

.section-index {
  color: #8093a1;
  font: 10px var(--mono);
}

.view-panel > h3 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -0.07em;
}

/* About section */

.intro-block {
  max-width: 650px;
}

.intro-block h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(43px, 5.1vw, 71px);
  line-height: 0.99;
  letter-spacing: -0.09em;
}

.intro-block h2 em {
  color: var(--ocean);
  font-style: normal;
}

.intro-copy {
  max-width: 555px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-education {
  max-width: 700px;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.about-education-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ocean);
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-education-main {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.about-education-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.about-education-main ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 10px;
}

.about-education-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 11px;
}

.about-education-mini div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.about-education-mini strong {
  color: var(--text);
  font-size: 10px;
}

.about-education-mini span {
  color: var(--muted);
  font: 9px var(--mono);
}

.about-education-mini small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 700px;
}

.project-card {
  min-height: 190px;
  padding: 19px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.project-card.accent-card {
  border-color: transparent;
  background: var(--gold);
}

.project-number,
.project-tag {
  color: var(--ocean);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h4 {
  margin: 37px 0 9px;
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.05em;
}

.project-card p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.project-tag {
  display: block;
  margin-top: 17px;
}

.accent-card .project-number,
.accent-card .project-tag {
  color: var(--navy);
}

.accent-card p {
  color: var(--navy);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.arrow-line {
  color: var(--coral);
  font-size: 18px;
}

/* Contact */

.contact-view h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 67px);
  line-height: 0.98;
  letter-spacing: -0.09em;
}

.contact-view h3 em {
  color: var(--ocean);
  font-style: normal;
}

.contact-view p {
  max-width: 500px;
  margin: 21px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 700px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 67px;
  padding: 13px 36px 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.contact-card:hover {
  background: var(--ocean-light);
  transform: translateY(-2px);
}

.contact-card span {
  color: var(--ocean);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.contact-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card b {
  position: absolute;
  top: 24px;
  right: 14px;
  color: var(--ocean);
  font-size: 15px;
  font-weight: 400;
}

.accent-contact {
  border-color: transparent;
  background: var(--gold);
}

.accent-contact:hover {
  background: var(--coral);
}

/* Decorative shape */

.corner-shape {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--ocean-light);
}

/* Mobile */

@media (max-width: 800px) {
  body {
    background: var(--cream);
  }

  body::before {
    display: none;
  }

  .site-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-rail {
    min-height: 420px;
    padding: 24px;
  }

  .profile-core {
    margin-top: 25px;
  }

  .profile-core h1 {
    font-size: 54px;
  }

  .rail-footer {
    margin-top: 35px;
  }

  .content-panel {
    min-height: 620px;
  }

  .top-nav {
    padding: 0 24px;
  }

  .nav-kicker {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
  }

  .content-body {
    height: auto;
    padding: 42px 24px 48px;
  }

  .about-education-mini {
    grid-template-columns: 1fr;
  }

  .entry-topline {
    flex-direction: column;
    gap: 4px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 140px;
  }

  .project-card h4 {
    margin-top: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}