:root {
  --ink: #0c2032;
  --ink-soft: rgba(12, 32, 50, 0.76);
  --ink-muted: rgba(12, 32, 50, 0.46);
  --paper: #fbfaf7;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 247, 0) 280px),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid rgba(12, 32, 50, 0.34);
  outline-offset: 4px;
}

p,
h1 {
  margin: 0;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 18px auto 48px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(300px, 1.2fr) minmax(180px, 0.75fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.rule {
  width: 54px;
  border-top: 2px solid rgba(12, 32, 50, 0.72);
  margin-bottom: 15px;
}

.intro-about .rule,
.intro-contact .rule {
  border-top-color: var(--ink-muted);
}

.intro-title h1 {
  max-width: 310px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-about p,
.intro-contact p {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.45;
}

.intro-about p {
  max-width: 390px;
}

.intro-contact p {
  max-width: 240px;
}

.image-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.72;
  background: #d9dee4;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(12, 32, 50, 0.05);
}

.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: contrast(1.08) saturate(0.9);
}

@media (min-width: 768px) {
  .site-shell {
    margin-top: 30px;
  }
}

@media (min-width: 992px) {
  .site-shell {
    margin-top: 40px;
  }
}

@media (min-width: 1200px) {
  .site-shell {
    margin-top: 110px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 32px, var(--max-width));
    margin-bottom: 34px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .intro-title h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1;
  }

  .intro-about p,
  .intro-contact p {
    font-size: 17px;
    max-width: 460px;
  }

  .image-panel {
    aspect-ratio: 1.2;
  }

  .image-panel img {
    object-position: 57% 50%;
  }
}

@media (max-width: 460px) {
  .site-shell {
    width: calc(100% - 24px);
    margin-top: 22px;
  }

  .intro-grid {
    gap: 22px;
  }

  .intro-title h1 {
    font-size: 31px;
  }

  .intro-about p,
  .intro-contact p {
    font-size: 17px;
    line-height: 1.42;
  }

  .image-panel {
    aspect-ratio: 1;
  }
}
