@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root{
  --green:#69ff69;
  --cyan:#00ffff;
  --ink:#172617;
  --night:#0a130d;
  --paper:#e8f6ec;
  --dim:#a6c4b0;
  --pink:#ff5fc8;
  --chrome:linear-gradient(180deg,#ffffff 0%,#d3e6d9 32%,#7d9987 51%,#f2fdf5 73%,#9db6a5 100%);
  --pad:clamp(16px,4vw,40px);
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding:0;
  font-family:"EB Garamond","Crimson Text",Georgia,"Songti SC","Noto Serif SC",serif;
  font-size:18px;
  line-height:1.72;
  color:var(--paper);
  background-color:var(--night);
  background-image:
    radial-gradient(rgba(105,255,105,.13) 1px,transparent 1px),
    radial-gradient(circle at 16% -10%,rgba(0,255,255,.2),transparent 55%),
    radial-gradient(circle at 88% 0%,rgba(255,95,200,.14),transparent 48%);
  background-size:22px 22px,100% 100%,100% 100%;
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--cyan);text-underline-offset:3px}

:focus-visible{outline:2px solid var(--green);outline-offset:3px}

.chrome,
.brand-word,
.hero-copy h1,
.prose h2,
.foot-brand{
  background:var(--chrome);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 12px rgba(0,255,255,.3));
}

h1,h2,h3{
  font-family:"EB Garamond",Georgia,serif;
  font-weight:700;
  line-height:1.12;
  margin:0 0 .6rem;
  letter-spacing:.02em;
}

hr{
  border:0;
  height:1px;
  margin:.85rem 0 1.6rem;
  background:linear-gradient(90deg,rgba(105,255,105,.85),rgba(0,255,255,.4) 55%,transparent);
}

/* ---------- masthead ---------- */

.masthead{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.7rem 1rem;
  padding:.7rem var(--pad);
  border-bottom:1px solid rgba(105,255,105,.3);
  background:linear-gradient(180deg,rgba(23,38,23,.85),rgba(10,19,13,.82));
  backdrop-filter:blur(10px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:44px;
  text-decoration:none;
  margin-right:auto;
  padding-right:.4rem;
}

.brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:16px;
  color:#08130c;
  background:radial-gradient(circle at 30% 25%,#ffffff,#69ff69 45%,#00ffff 100%);
  box-shadow:0 0 18px rgba(0,255,255,.55);
}

.brand-word{
  font-size:1.3rem;
  letter-spacing:.08em;
  font-weight:700;
}

.pills{min-width:0;max-width:100%;order:3;flex:1 1 100%}

.pills ul,
.strip ul{
  display:flex;
  gap:.45rem;
  list-style:none;
  margin:0;
  padding:0;
  overflow-x:auto;
  scrollbar-width:none;
}

.pills ul::-webkit-scrollbar,
.strip ul::-webkit-scrollbar{height:0}

.pills a,
.strip a,
.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem 1rem;
  border-radius:999px;
  font-size:16px;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  transition:background .22s ease,box-shadow .22s ease,color .22s ease,transform .22s ease;
}

.pills a{
  color:var(--green);
  border:1px solid rgba(105,255,105,.45);
  background:linear-gradient(180deg,rgba(105,255,105,.18),rgba(0,255,255,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 0 12px rgba(0,255,255,.16);
}

.pills a:hover,
.pills a:focus-visible{
  color:#f2fff6;
  background:linear-gradient(180deg,rgba(105,255,105,.46),rgba(0,255,255,.26));
  box-shadow:0 0 22px rgba(105,255,105,.6);
  transform:translateY(-1px);
}

.cta{
  order:2;
  color:#0a1a10;
  font-weight:700;
  border:1px solid rgba(255,255,255,.7);
  background:linear-gradient(180deg,#e5ffe6,#69ff69 52%,#25b925);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 18px rgba(105,255,105,.55);
}

.cta:hover,.cta:focus-visible{box-shadow:inset 0 1px 0 #fff,0 0 28px rgba(0,255,255,.75)}

/* ---------- sticky anchor strip ---------- */

.strip{
  position:sticky;
  top:0;
  z-index:40;
  padding:0 var(--pad);
  border-bottom:1px solid rgba(0,255,255,.28);
  background:rgba(8,17,11,.94);
  backdrop-filter:blur(8px);
}

.strip a{
  color:var(--dim);
  border-radius:0;
  padding:.4rem .75rem;
  border-right:1px dotted rgba(105,255,105,.3);
}

.strip a:hover,.strip a:focus-visible{color:var(--cyan);text-shadow:0 0 12px rgba(0,255,255,.8)}

/* ---------- hero ---------- */

.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:3.5rem var(--pad);
  overflow:hidden;
  border-bottom:1px solid rgba(105,255,105,.35);
  background-image:
    radial-gradient(rgba(0,255,255,.22) 1px,transparent 1px),
    linear-gradient(180deg,rgba(0,255,255,.08),rgba(255,95,200,.05) 55%,transparent);
  background-size:18px 18px,100% 100%;
}

.hero::before,
.hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.hero::before{
  width:210px;height:210px;
  left:-70px;bottom:8%;
  background:radial-gradient(circle at 35% 30%,rgba(0,255,255,.5),transparent 70%);
  filter:blur(6px);
}

.hero::after{
  width:150px;height:150px;
  right:-40px;top:14%;
  background:radial-gradient(circle at 60% 40%,rgba(255,95,200,.45),transparent 68%);
  filter:blur(6px);
}

.collage{
  position:absolute;
  inset:0;
  margin:0;
  pointer-events:none;
  z-index:0;
}

.collage img{
  position:absolute;
  width:min(38vw,290px);
  opacity:.55;
  border:1px solid rgba(105,255,105,.5);
  box-shadow:0 0 30px rgba(0,255,255,.35);
  filter:grayscale(.15) contrast(1.08) saturate(1.2);
}

.collage img:first-child{left:3%;top:11%;transform:rotate(-6deg)}
.collage img:last-child{right:3%;bottom:9%;transform:rotate(5deg)}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:24ch;
  text-align:center;
}

.hero-copy h1{
  font-size:clamp(2.1rem,7vw,4.4rem);
  line-height:1.06;
  letter-spacing:.03em;
  margin:0;
}

/* ---------- shell / split ---------- */

.shell{
  max-width:1180px;
  margin:0 auto;
  padding:0 var(--pad) 2rem;
}

.split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:2rem;
  padding:2.5rem 0 1rem;
}

/* ---------- rail (aside) ---------- */

.rail{
  border-left:3px solid rgba(105,255,105,.55);
  padding:.2rem 0 .4rem 1rem;
  background:linear-gradient(90deg,rgba(0,255,255,.07),transparent 70%);
  box-shadow:-6px 0 26px -22px rgba(0,255,255,.9);
}

.rail h2{
  font-size:1.2rem;
  letter-spacing:.1em;
  margin-bottom:.4rem;
}

.rail hr{width:52px;margin:.4rem 0 1rem}

.rail ul{list-style:none;margin:0;padding:0}

.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.3rem 0;
  font-size:17px;
  color:var(--dim);
  text-decoration:none;
  border-bottom:1px dotted rgba(105,255,105,.25);
}

.rail a:hover,.rail a:focus-visible{color:var(--green);text-shadow:0 0 12px rgba(105,255,105,.6)}

/* ---------- prose (page.content) ---------- */

.prose{min-width:0}

.prose section{
  scroll-margin-top:96px;
  padding:2.4rem 0 2.8rem;
  border-top:1px dashed rgba(105,255,105,.35);
  box-shadow:0 24px 44px -40px rgba(0,255,255,.9);
}

.prose section:first-child{border-top:0;padding-top:0}

.prose h2{
  font-size:clamp(1.45rem,3.4vw,2rem);
  margin-bottom:.35rem;
}

.prose h3{
  font-size:1.2rem;
  color:var(--green);
  margin-top:1.8rem;
  text-shadow:0 0 14px rgba(105,255,105,.4);
}

.prose p{margin:0 0 1.05rem;color:#ddefe3}

.prose strong{color:var(--green)}

.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.3rem}
.prose li{margin-bottom:.45rem}

.prose blockquote{
  margin:1.4rem 0;
  padding:.9rem 1.1rem;
  border-left:3px solid var(--cyan);
  background:linear-gradient(90deg,rgba(0,255,255,.1),rgba(255,95,200,.05));
  box-shadow:0 16px 30px -26px rgba(0,255,255,.9);
}

.prose blockquote p:last-child{margin-bottom:0}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.2rem 0;
  font-size:17px;
}

.prose th,.prose td{
  border:1px solid rgba(105,255,105,.3);
  padding:.55rem .7rem;
  text-align:left;
}

.prose th{background:rgba(105,255,105,.14);color:#eafff0}

.prose img{margin:1.2rem 0;border:1px solid rgba(105,255,105,.4)}

/* ---------- footer ---------- */

.site-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1.2rem 2rem;
  padding:2.2rem var(--pad);
  border-top:2px solid rgba(105,255,105,.5);
  background:linear-gradient(180deg,rgba(23,38,23,.75),rgba(8,16,11,.97));
}

.foot-brand{
  font-size:clamp(2rem,9vw,4.4rem);
  line-height:.92;
  letter-spacing:.01em;
  font-weight:800;
  margin-right:auto;
}

.site-foot nav{min-width:0;max-width:100%}

.site-foot dl{
  display:flex;
  flex-wrap:wrap;
  gap:.3rem 1.1rem;
  margin:0;
}

.site-foot dt{
  font-size:16px;
  letter-spacing:.18em;
  color:var(--cyan);
}

.site-foot dd{margin:0 0 .35rem}

.site-foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:17px;
  color:var(--dim);
  text-decoration:none;
}

.site-foot dd a:hover,.site-foot dd a:focus-visible{color:var(--green)}

.legal{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  font-size:16px;
  color:var(--dim);
}

.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.3rem .95rem;
  border-radius:999px;
  border:1px solid rgba(0,255,255,.55);
  color:var(--cyan);
  text-decoration:none;
  background:linear-gradient(180deg,rgba(0,255,255,.16),rgba(105,255,105,.08));
}

.totop:hover,.totop:focus-visible{box-shadow:0 0 18px rgba(0,255,255,.6)}

/* ---------- reveal ---------- */

html.js .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}

html.js .reveal.in{opacity:1;transform:none}

/* ---------- responsive ---------- */

@media (min-width:900px){
  .split{grid-template-columns:250px minmax(0,1fr);gap:2.6rem;align-items:start}
  .rail{position:sticky;top:76px}
  .pills{order:1;flex:0 1 auto;margin-right:auto}
  .brand{margin-right:0}
  .masthead{flex-wrap:nowrap}
}

@media (max-width:720px){
  body{font-size:17px}
  .hero{min-height:58vh;padding:3rem var(--pad) 3.4rem}
  .collage img{width:44vw;opacity:.38}
  .collage img:first-child{top:6%}
  .collage img:last-child{bottom:6%}
  .foot-brand{flex:1 1 100%}
  .legal{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .reveal{opacity:1;transform:none;transition:none}
  *{animation-duration:.001s !important;transition-duration:.001s !important}
}

button[aria-expanded]{min-width:44px;min-height:44px}
