html {
  min-height: 100%;
  background: #f3f1ec;
}

body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: clamp(24px, 6vw, 80px) clamp(16px, 5vw, 64px);
  color: #352f27;
  background:
    radial-gradient(circle at 8% 8%, rgb(128 181 214 / 38%), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgb(245 185 145 / 28%), transparent 30rem),
    radial-gradient(circle at 82% 86%, rgb(152 180 137 / 30%), transparent 36rem),
    linear-gradient(135deg, #e8f0f4 0%, #f5f0e8 48%, #e9f0e6 100%);
  background-attachment: fixed;
  font-family: "Literata", serif;
  line-height: 1.6;
}

.home-page {
  padding-bottom: 0;
}

.home-page .paper-note {
  padding-bottom: 22px;
}

.site-content {
  width: 100%;
}

.button-blue {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgb(95 145 178 / 28%);
  border-radius: 6px;
  background: #e3eff7;
  color: #214c6d;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}

.button-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.button-icon-wide {
  width: 54px;
}

.button-blue:hover {
  background: #cfe3f1;
  border-color: rgb(78 137 175 / 42%);
  color: #153f60;
  box-shadow: 0 3px 8px rgb(33 76 109 / 14%);
}

.button-blue:active {
  background: #b7d4e7;
  border-color: rgb(63 123 163 / 58%);
  color: #103650;
  box-shadow: inset 0 2px 4px rgb(33 76 109 / 18%);
}

.button-blue:focus-visible {
  outline: 2px solid #4e6c86;
  outline-offset: 3px;
}

.link-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 10px;
}

.link-stack-single {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr));
}

.paper-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px clamp(18px, 3vw, 32px);
  border: 1px solid #dbe2d7;
  border-radius: 8px;
  background-color: #fffefa;
  box-shadow: 0 8px 24px rgba(73, 87, 61, .08);
}

.paper-note + .paper-note {
  margin-top: 24px;
}

.paper-note p {
  margin: 0;
}

.paper-note :is(h1, h2, h3) {
  margin: 28px 0 16px;
  line-height: 1.25;
}

.paper-note > :first-child {
  margin-top: 0;
}

.paper-note > :last-child {
  margin-bottom: 0;
}

.introduction {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.profile-photo {
  box-sizing: border-box;
  border: 3px solid #f5b991;
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
}

@media (max-width: 540px) {
  .introduction {
    flex-direction: column;
    gap: 16px;
  }
}

.paper-note a:not(.button-blue) {
  color: #46613e;
  text-underline-offset: .18em;
}

.paper-note a:not(.button-blue):hover {
  color: #2d4427;
}

.paper-note a:not(.button-blue):focus-visible {
  outline: 2px solid #46613e;
  outline-offset: 4px;
}

.site-footer {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: auto;
  padding: 32px 0 20px;
  color: #526b80;
  font-size: .8rem;
}

.site-footer a {
  color: #46613e;
  text-underline-offset: .18em;
  transition: color .15s ease, transform .15s ease;
}

.site-footer a:hover {
  color: #2d4427;
  transform: translateY(-1px) scale(1.03);
}

.site-footer a:active {
  transform: translateY(1px) scale(.99);
}

.site-footer a:last-child {
  justify-self: end;
}

@media (max-width: 540px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer a:last-child {
    justify-self: center;
  }
}
