
/* Minimal custom layer to make it feel less "Tailwind default". */

:root{
  --paper: rgba(255,255,255,.86);
  --ink: #18181b;
  --muted: rgba(24,24,27,.68);
  --edge: rgba(24,24,27,.10);
  --accent: #ff3d75;
  --accent2: #5b7cfe;
  --accent3: #00b894;
}

/* Background texture */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.07) 1px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 0) 9px 9px / 18px 18px,
    linear-gradient(180deg, #fafafa 0%, #f6f6f6 40%, #f9f9fb 100%);
}

.bg-blobs{
  position: fixed;
  inset: -20vh -20vw;
  z-index: -2;
  background:
    radial-gradient(closest-side at 20% 25%, rgba(91,124,254,.18), transparent 65%),
    radial-gradient(closest-side at 70% 15%, rgba(255,61,117,.14), transparent 60%),
    radial-gradient(closest-side at 55% 80%, rgba(0,184,148,.12), transparent 62%);
  filter: blur(0px);
}

.mark{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.mark-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
}
.mark-dot:nth-child(2){ background: var(--accent2); }
.mark-dot:nth-child(3){ background: var(--accent); }

.pill{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--edge);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
.pill-kicker{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}
.pill-main{
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.pill-tail{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-weight: 600;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 18px 55px rgba(0,0,0,.12); }
.btn:active{ transform: translateY(0px); }
.btn-primary{
  background: linear-gradient(135deg, rgba(255,61,117,.95), rgba(91,124,254,.92));
  color: white;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost{
  background: rgba(255,255,255,.55);
}
.btn-sm{
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
}

.badge-card{
  width: 220px;
  border-radius: 28px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--edge);
  box-shadow: 0 20px 55px rgba(0,0,0,.14);
}
.badge-title{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}
.badge-lines{
  margin-top: 12px;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.badge-line:nth-child(2){
  opacity: .55;
  font-style: italic;
}
.badge-foot{
  margin-top: 14px;
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-weight: 700;
}

.rail{
  position: relative;
}
.rail-card{
  position: sticky;
  top: 20px;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--edge);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}
.rail-title{
  font-weight: 700;
  letter-spacing: .02em;
}
.rail-nav{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.rail-link{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.58);
  text-align:left;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.rail-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.78);
  border-color: rgba(0,0,0,.14);
}
.rail-link.is-active{
  background: linear-gradient(135deg, rgba(91,124,254,.18), rgba(255,61,117,.14));
  border-color: rgba(0,0,0,.16);
}
.rail-idx{
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  width: 32px;
}
.rail-label{
  font-weight: 650;
  letter-spacing: -0.01em;
}
.rail-divider{
  height: 1px;
  width: 100%;
  background: rgba(0,0,0,.10);
}

.tiny-card{
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
}
.tiny-kicker{
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}
.tiny-main{
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Paper panel */
.paper{
  border-radius: 34px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.16);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.paper-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28));
}
.paper-breadcrumb{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.58);
}
.paper-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.60);
  font-size: 13px;
  font-weight: 650;
}
.chip:hover{ background: rgba(255,255,255,.80); }

.paper-body{
  padding: 22px 18px 20px;
}
@media (min-width: 640px){
  .paper-body{ padding: 30px 28px 26px; }
}

/* Typography */
.page-title{
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
@media (min-width: 640px){ .page-title{ font-size: 46px; } }

.lede{
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0,0,0,.76);
  max-width: 72ch;
}
.text{
  margin-top: 14px;
  line-height: 1.75;
  color: rgba(0,0,0,.72);
  max-width: 78ch;
}

.section-title{
  margin-top: 18px;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.divider{
  margin: 22px 0 18px;
  height: 1px;
  width: 100%;
  background: rgba(0,0,0,.12);
}

.callout{
  margin-top: 18px;
  border-radius: 26px;
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(255,61,117,.10), rgba(91,124,254,.10));
  border: 1px solid rgba(0,0,0,.08);
}
.callout-title{
  font-weight: 800;
  letter-spacing: -0.01em;
}
.callout-body{
  margin-top: 6px;
  line-height: 1.7;
  color: rgba(0,0,0,.72);
  max-width: 78ch;
}

.note{
  margin-top: 16px;
  border-radius: 26px;
  padding: 16px 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
}
.note-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.gridy{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .gridy{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  border-radius: 24px;
  padding: 14px 14px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(0,0,0,.08);
}
.card-title{
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card-text{
  margin-top: 8px;
  line-height: 1.7;
  color: rgba(0,0,0,.70);
}

.bullets{
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
  color: rgba(0,0,0,.74);
  line-height: 1.8;
  max-width: 78ch;
}

.steps{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: 78ch;
}
.steps li{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  line-height: 1.7;
  color: rgba(0,0,0,.74);
}
.step-n{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  background: rgba(0,0,0,.06);
}
.step-t{ flex: 1; }

.cta-row{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Template block */
.template{
  margin-top: 12px;
  border-radius: 26px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(0,0,0,.10);
  overflow:hidden;
}
.template-top{
  padding: 12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.template-label{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  font-weight: 650;
}
.template-text{
  width: 100%;
  min-height: 170px;
  padding: 14px 12px 16px;
  background: transparent;
  resize: vertical;
  outline: none;
  line-height: 1.65;
  color: rgba(0,0,0,.82);
}
.template-foot{
  padding: 0 12px 14px;
  font-size: 13px;
  color: rgba(0,0,0,.60);
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  .btn, .rail-link{ transition: none; }
}
