:root {
  --void: #070b08;
  --tablet: #121a14;
  --tablet-edge: rgba(198, 163, 106, 0.42);
  --marble: #f4f0e6;
  --ink: #d7e0d6;
  --dim: #c3cfc8;
  --phosphor: #5dffb0;
  --gold: #c6a36a;
  --gold-text: #f0e2c2;
  --display: "Cinzel", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --body: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pier-inset: 16px;
  --beam: 93px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--beam);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--gold);
  color: #1a1208;
}

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--phosphor);
  color: #06140c;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1rem;
}

.skip:focus { top: 1rem; }

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pier {
  position: fixed;
  top: var(--beam);
  bottom: 0;
  z-index: 2;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.pier-left { left: var(--pier-inset); }
.pier-right { right: var(--pier-inset); }

.capital {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abacus {
  width: 100%;
  height: 11px;
  background: rgba(7, 11, 8, 0.82);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.echinus {
  width: 84%;
  height: 20px;
  background: rgba(7, 11, 8, 0.62);
  border: 1px solid rgba(198, 163, 106, 0.7);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.neck {
  width: 60%;
  height: 9px;
  border-left: 1px solid rgba(93, 255, 176, 0.55);
  border-right: 1px solid rgba(93, 255, 176, 0.55);
}

.shaft {
  width: 52%;
  flex: 1;
  border-left: 1px solid rgba(198, 163, 106, 0.72);
  border-right: 1px solid rgba(198, 163, 106, 0.72);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 5px,
    rgba(198, 163, 106, 0.38) 5px 6px,
    transparent 6px 11px,
    rgba(93, 255, 176, 0.22) 11px 12px,
    transparent 12px 17px
  );
}

.plinth {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 12px;
}

.plinth span { display: block; height: 8px; background: rgba(7, 11, 8, 0.8); }
.plinth span:nth-child(1) {
  width: 62%;
  border-top: 1px solid rgba(93, 255, 176, 0.45);
}
.plinth span:nth-child(2) {
  width: 82%;
  border-top: 1px solid rgba(198, 163, 106, 0.55);
}
.plinth span:nth-child(3) {
  width: 100%;
  height: 11px;
  border-top: 2px solid var(--gold);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 220px));
  margin: 0 auto;
  padding: var(--beam) 0 1.5rem;
}

.entablature {
  position: fixed;
  top: 0;
  left: var(--pier-inset);
  right: var(--pier-inset);
  z-index: 4;
  background: var(--void);
}

.stereobate { background: var(--void); }

.architrave {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  width: min(920px, calc(100% - 220px + 2 * var(--pier-inset)));
  margin-inline: auto;
  padding: 1.15rem 0 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--marble);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.wordmark span { margin-right: -0.34em; }

.wordmark svg {
  width: 18px;
  height: 26px;
  flex: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--marble);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a:hover { color: var(--phosphor); }

nav a[aria-current="page"] {
  color: var(--phosphor);
  box-shadow: inset 0 -1px 0 var(--phosphor);
}

.dentils {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 7px,
    transparent 7px 16px
  );
  opacity: 0.8;
}

.fillet {
  height: 3px;
  margin-top: 6px;
  background: var(--gold);
}

main {
  min-height: 58vh;
  margin: 1.4rem 0;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(198, 163, 106, 0.18), transparent 22px),
    var(--tablet);
  border: 1px solid var(--tablet-edge);
  box-shadow:
    0 0 0 5px rgba(7, 11, 8, 0.4),
    0 0 0 6px rgba(93, 255, 176, 0.12);
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { text-wrap: balance; }

.page-head h1 {
  margin: 0;
  color: var(--marble);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede,
.dek {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.55;
}

.dek {
  font-style: italic;
  color: var(--dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-solid {
  background: var(--gold);
  color: #1a1208;
}

.btn-solid:hover {
  background: var(--phosphor);
  border-color: var(--phosphor);
  color: #06140c;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-text);
}

.btn-ghost:hover {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.numeral {
  margin: 0 0 0.4rem;
  color: var(--gold-text);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}

.tool h2,
.closing h2,
.more-notes h2,
.prose h2 {
  margin: 0 0 0.55rem;
  color: var(--marble);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  color: var(--gold-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
}

.text-link:hover {
  color: var(--phosphor);
  border-bottom-color: var(--phosphor);
}

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

.rows.directory a {
  grid-template-columns: 1fr;
}

.rows a {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid rgba(198, 163, 106, 0.32);
  color: inherit;
  text-decoration: none;
}

.rows a:hover { background: rgba(93, 255, 176, 0.04); }
.rows a:hover .name { color: var(--phosphor); }

.num {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.what {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.name {
  color: var(--marble);
  font-family: var(--body);
  font-size: 1.32rem;
  font-weight: 560;
  line-height: 1.25;
}

.rows .question {
  color: var(--dim);
  font-style: italic;
  font-size: 1.05rem;
}

.seal {
  justify-self: end;
  color: var(--phosphor);
  border: 1px solid var(--phosphor);
  box-shadow:
    inset 0 0 0 3px var(--tablet),
    inset 0 0 0 4px rgba(93, 255, 176, 0.75);
  padding: 0.4rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.how-long {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-head { margin-bottom: 2rem; }

.tool-list { display: flex; flex-direction: column; }

.tool {
  scroll-margin-top: 1.25rem;
  padding: 1.6rem 0 1.8rem;
  border-top: 1px solid rgba(198, 163, 106, 0.4);
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tool h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.tool .question {
  margin: 0.3rem 0 0.9rem;
  max-width: 28rem;
  color: var(--marble);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-style: italic;
  font-weight: 450;
  line-height: 1.25;
}

.tool p { margin: 0.4rem 0; max-width: 40rem; }

.also {
  color: var(--dim);
  font-size: 1.02rem;
}

.tool h3 {
  margin: 1.3rem 0 0.45rem;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fields {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.fields li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 1.15rem;
}

.fields li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--phosphor);
}

.pending {
  color: var(--gold-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.tool .text-link { display: inline-block; margin-top: 0.85rem; }

.closing {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(198, 163, 106, 0.4);
}

.closing h2 { font-size: 1.4rem; }
.closing p { margin: 0; max-width: 38rem; }

.post h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--marble);
  font-family: var(--body);
  font-weight: 550;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.prose {
  max-width: 38rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(198, 163, 106, 0.45);
  font-size: 1.2rem;
  line-height: 1.7;
}

.prose h2,
.more-notes h2 {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.prose h2 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.45rem;
}

.prose p { margin: 0.8rem 0; }

.prose a {
  color: var(--gold-text);
  text-underline-offset: 0.18em;
}

.prose a:hover { color: var(--phosphor); }

.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--gold);
}

.prose blockquote p {
  margin: 0;
  color: var(--gold-text);
  font-family: var(--body);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.more-notes { margin-top: 2.8rem; }

.more-notes h2 { font-size: 1.2rem; }

.more-notes ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.more-notes li { margin: 0.45rem 0; }

.more-notes a {
  color: var(--gold-text);
  font-size: 1.15rem;
  text-underline-offset: 0.16em;
}

.more-notes a:hover { color: var(--phosphor); }

.back { margin: 1.6rem 0 0; }

.stereobate { padding-bottom: 0.4rem; }

.stereobate p {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 0.9rem;
}

.steps span {
  display: block;
  height: 8px;
  background: #101710;
  border-top: 1px solid rgba(198, 163, 106, 0.5);
}

.steps span:nth-child(1) { width: 86%; }
.steps span:nth-child(2) { width: 93%; }
.steps span:nth-child(3) {
  width: 100%;
  height: 11px;
  border-top: 2px solid var(--gold);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: #1a2c22;
  border: 1px solid var(--gold);
}

@media (max-width: 900px) {
  .entablature { left: 0; right: 0; }
  .pier, #rain { display: none; }
  .shell,
  .architrave { width: min(920px, calc(100% - 1.5rem)); }
}

@media (max-width: 680px) {
  :root { --beam: 125px; }
  .architrave {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  nav { gap: 0.15rem 1rem; }
  .rows a { grid-template-columns: 1fr; gap: 0.35rem; }
  .seal, .how-long { justify-self: start; }
  .wordmark { letter-spacing: 0.22em; }
  .wordmark span { margin-right: -0.22em; }
  .page-head h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
}
