:root {
  --ink: #17324a;
  --paper: rgba(255, 248, 235, 0.9);
  --muted: rgba(23, 50, 74, 0.62);
  --body: rgba(5, 5, 5, 0.88);
  --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: var(--ink);
}

.link-openai:hover {
  color: #0077ff;
}

.link-cloudflare:hover {
  color: #f6821f;
}

.footer a:hover {
  color: var(--moon);
}

.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: 620px;
  overflow: hidden;
  border: 1px solid rgba(18, 22, 28, 0.12);
  border-radius: 6px;
  padding: clamp(34px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 246, 0.68)),
    linear-gradient(135deg, rgba(116, 189, 242, 0.12), rgba(233, 95, 36, 0.08));
  box-shadow:
    0 26px 72px rgba(5, 12, 20, 0.2),
    0 2px 10px rgba(5, 12, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(30px) saturate(1.08);
  backdrop-filter: blur(30px) saturate(1.08);
}

.essay-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    radial-gradient(circle at 15% 25%, rgba(8, 12, 18, 0.045) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(233, 95, 36, 0.055) 0 1px, transparent 1px);
  background-size: 100% 28px, 19px 19px, 23px 23px;
}

.essay {
  margin-top: 0;
}

.essay p {
  margin: 0;
  color: var(--body);
  font-size: 1.0625rem;
  font-weight: 450;
  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;
}

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

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

.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: center;
    min-height: 100svh;
    padding: 28px 16px 52px;
  }

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

  .essay-card {
    border-radius: 6px;
    padding: 34px 30px;
  }

  .essay p {
    font-size: 1.125rem;
    line-height: 1.72;
  }

  .footer-inner {
    display: block;
  }

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