@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --g: 1rem;
  --edge: 1.25rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  padding-bottom: 78px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 .6rem;
  font-family: "Syne", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}

h2 { font-size: clamp(1.45rem, 4.4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.8vw, 1.4rem); }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

hr {
  width: 100%;
  margin: .7rem 0 1.4rem;
  border: 0;
  border-top: 1px solid var(--ink);
}

.mark {
  position: fixed;
  top: .9rem;
  left: .9rem;
  z-index: 70;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: .4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: "Syne", Helvetica, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-align: center;
}

.mark-img { width: 32px; height: 32px; object-fit: contain; }
.mark-txt { max-width: 5.5em; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5.5rem var(--edge) 5rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-media {
  position: absolute;
  top: -12%;
  right: 0;
  bottom: -12%;
  left: 0;
  z-index: 0;
  will-change: transform;
}

.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  filter: grayscale(1) contrast(1.15);
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 10vw, 5.4rem);
  line-height: .97;
  letter-spacing: -.045em;
}

.hero-sub {
  max-width: 32ch;
  margin: 1.15rem auto 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, .78);
}

.hero-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 15%;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--g);
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem var(--edge) 4rem;
}

.rail { grid-column: 1 / -1; order: 1; padding-bottom: 1.5rem; }

.rail h2 {
  font-size: 1.05rem;
  font-family: "Manrope", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: none;
}

.rail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .9rem;
  margin: 0;
  padding: 1.6rem 1.1rem 0;
  list-style: none;
  counter-reset: toc;
}

.rail-list li { counter-increment: toc; }

.rail-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .22);
  font-size: 1rem;
  line-height: 1.3;
  transition: border-color .2s, transform .2s;
}

.rail-list li a::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: .6rem;
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(0, 0, 0, .55);
}

.rail-list li a:hover {
  border-bottom-color: var(--ink);
  transform: translateX(3px);
}

.col { grid-column: 1 / -1; order: 2; }

.col > section {
  padding: 2rem 0 2.4rem;
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: 96px;
}

.col > section + section { border-top: 1px solid var(--ink); }

.col > section:nth-child(even) {
  padding: 2rem 1.2rem 2.4rem;
  border-top: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.col > section:nth-child(even) hr { border-top-color: rgba(255, 255, 255, .45); }

.col > section:nth-child(even) a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.col h2 { max-width: 26ch; }

.col ul,
.col ol { padding-left: 1.2rem; }

.col li { margin-bottom: .4rem; }

.base {
  margin-top: 2.5rem;
  padding: 3rem var(--edge) 1.5rem;
  background: var(--ink);
  color: var(--paper);
}

.base section + section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.base-word {
  margin: 0;
  font-family: "Syne", Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 11vw, 7rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.05em;
  word-break: break-word;
}

.base h2 {
  font-family: "Manrope", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.base hr { border-top-color: rgba(255, 255, 255, .4); }

.base-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .9rem;
}

.base-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: 1rem;
  line-height: 1.3;
  transition: opacity .2s;
}

.base-links a:hover { opacity: .65; }

.base-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.base-row p { margin: 0; }

.base-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem 1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: background .2s, color .2s;
}

.base-top:hover { background: var(--paper); color: var(--ink); }

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.dock-sum {
  display: flex;
  gap: .7rem;
  align-items: center;
  min-height: 58px;
  padding: 0 var(--edge);
  list-style: none;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
}

.dock-sum::-webkit-details-marker { display: none; }

.dock-ico {
  position: relative;
  width: 20px;
  height: 12px;
  border-top: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transition: border-color .2s;
}

.dock-ico::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  margin-top: -1px;
  border-top: 2px solid var(--paper);
  transition: transform .2s;
}

.dock[open] .dock-ico { border-top-color: transparent; }
.dock[open] .dock-ico::after { transform: rotate(45deg); }

.dock:not([open]) .dock-menu { display: none; }

.dock-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  max-height: 62vh;
  margin: 0;
  padding: .7rem var(--edge) .9rem;
  overflow: auto;
  list-style: none;
}

.dock-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.3;
  transition: background .2s, color .2s;
}

.dock-menu a:hover,
.dock-menu a:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

@media (min-width: 820px) {
  html { font-size: 18px; }
  body { padding-bottom: 92px; }

  .stage { padding-top: 4.5rem; padding-bottom: 5rem; }

  .rail {
    grid-column: 1 / span 3;
    order: 0;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    padding-bottom: 0;
  }

  .rail-list { grid-template-columns: 1fr; padding-top: 1.8rem; }

  .col { grid-column: 4 / span 9; order: 0; }

  .hero { clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }

  .dock-menu { grid-template-columns: repeat(7, 1fr); }

  .base {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 4.5rem var(--edge) 1.75rem;
  }

  .base-brand { grid-column: 1 / span 8; }
  .base-nav { grid-column: 9 / span 4; }

  .base section + section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .base-links { grid-template-columns: 1fr; }

  .base-meta {
    grid-column: 1 / -1;
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, .25) !important;
  }

  .base-top { padding: .3rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-media { transform: none !important; }
}

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