:root {
  --ink: #0f0f0f;
  --muted: #6b6860;
  --paper: #efe9d3;
  --cream: #fff8e2;
  --line: #161718;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper) url("paper.jpg");
  background-size: 512px 512px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(60, 55, 45, .42) 1px, transparent 1.4px);
  background-size: 51px 51px;
  background-position: 25px 25px;
}
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(960px, calc(100% - 32px)); margin-inline: auto; }

/* nav */
header { padding-top: 32px; }
.nav-pill {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 26px;
  border: 1px solid rgba(15, 15, 15, .28);
  border-radius: 999px;
  background: rgba(247, 241, 222, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: 26px; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: #161718;
  color: var(--cream);
  font-size: 16px;
  transition: background .2s;
}
.pill-link:hover { background: #000; }
.pill-link svg { width: 24px; height: 24px; transition: transform .3s ease; }
.pill-link:hover svg { transform: rotate(45deg); }

/* hero */
main { flex: 1; display: flex; align-items: center; padding: 72px 0; }
.hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.kicker { margin: 0 0 14px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
h1 { margin: 0; font-size: clamp(40px, 6.4vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.hint { margin: 20px 0 0; min-height: 1.5em; font-family: var(--mono); font-size: 17px; color: #2c2a26; }
.hint-label { color: var(--muted); }
.hint-word { background: rgba(227, 209, 154, .55); padding: 1px 4px; border-radius: 3px; }
.hint-word:empty { padding: 0; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { margin: 18px 0 36px; max-width: 440px; font-size: 20px; line-height: 1.45; font-weight: 500; color: #2c2a26; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 16px 0 24px;
  border-radius: 999px;
  background: #161718;
  color: var(--cream);
  font-size: 18px;
  transition: transform .25s ease, background .25s;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn svg { width: 30px; height: 30px; transition: transform .3s ease; }
.btn:hover svg { transform: rotate(45deg); }

/* sticky note */
.note {
  position: relative;
  justify-self: center;
  width: min(300px, 100%);
  padding: 34px 26px 24px;
  background: linear-gradient(180deg, #fbf5e2, #f5eed6);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 16px 24px -12px rgba(40, 30, 10, .38), 0 2px 3px rgba(0, 0, 0, .08);
  transform: rotate(1.6deg);
  animation: drop .9s cubic-bezier(.2, .9, .3, 1.2) .2s both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(-3deg); } }
.note .clip { position: absolute; top: -14px; left: 16px; width: 20px; transform: rotate(-10deg); }
.note h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.note dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 15px; }
.note dt { color: var(--muted); }
.note dd { margin: 0; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e0a526; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.bits {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(22, 23, 24, .45);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  color: #3a3833;
}

/* footer */
footer { padding: 0 0 36px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  header { padding-top: 16px; }
  .nav-pill { padding-left: 18px; }
  .brand { font-size: 22px; }
  main { padding: 48px 0 56px; }
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .kicker { font-size: 17px; }
  .lede { font-size: 17px; }
  .hint { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .note, .dot, .caret { animation: none; }
}
