:root {
  --ink: #17324a;
  --paper: rgba(255, 248, 235, 0.9);
  --muted: rgba(23, 50, 74, 0.62);
  --body: rgba(23, 50, 74, 0.82);
  --black: #050505;
  --moon: #ffe38b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #e95f24;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 80px;
  background: #74bdf2;
}

.sky,
.grain {
  position: absolute;
  inset: 0;
}

.sky {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.grain {
  z-index: -2;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(23, 50, 74, 0.35) 0 1px, transparent 1px);
  background-size: 13px 13px, 17px 17px;
}

.essay-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(251, 226, 190, 0.54);
  border-radius: 10px;
  padding: clamp(28px, 5vw, 46px);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(252, 243, 228, 0.88)),
    linear-gradient(135deg, rgba(116, 189, 242, 0.14), rgba(233, 95, 36, 0.09)),
    var(--paper);
  box-shadow:
    0 14px 34px rgba(16, 40, 61, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(0.94);
  backdrop-filter: blur(10px) saturate(0.94);
}

.essay-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(23, 50, 74, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(233, 95, 36, 0.08) 0 1px, transparent 1px);
  background-size: 100% 28px, 19px 19px, 23px 23px;
}

.definition {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--body);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.essay {
  margin-top: 22px;
}

.essay p {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.essay p + p {
  margin-top: 22px;
}

.footer {
  margin-top: 8px;
  padding: 28px 24px 32px;
  color: rgba(255, 250, 242, 0.62);
  background: var(--black);
}

.footer-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 250, 242, 0.14);
  padding-top: 22px;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-name {
  color: rgba(255, 250, 242, 0.88);
}

.footer-meta,
.footer-links span {
  color: rgba(255, 250, 242, 0.48);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 260px;
  color: rgba(255, 250, 242, 0.48);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: right;
}

.footer a {
  color: rgba(255, 250, 242, 0.86);
}

@media (max-width: 720px) {
  .page-shell {
    align-items: flex-start;
    min-height: 100svh;
    padding: 28px 16px 52px;
  }

  .sky {
    object-position: 56% 50%;
  }

  .essay-card {
    border-radius: 10px;
  }

  h1,
  .essay p {
    line-height: 1.68;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 14px;
    text-align: left;
  }
}
