:root{
  --red:#e10600;
  --red-dark:#ad0702;
  --white:#fff;
  --ink:#170201;
  --muted:rgba(255,255,255,.66);
  --line:rgba(255,255,255,.24);
  --ease:cubic-bezier(.22,1,.36,1);
}

*{
  box-sizing:border-box;
}

html{
  min-height:100%;
  scroll-behavior:smooth;
  overscroll-behavior-y:none;
  background:var(--ink);
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--red);
  color:white;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overscroll-behavior-y:none;
}

main{
  flex:1 0 auto;
}

body.modal-open{
  overflow:hidden;
}

button,
input,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

a{
  color:inherit;
}

::selection{
  background:white;
  color:var(--red);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:3px solid currentColor;
  outline-offset:3px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.shell{
  width:min(1400px,calc(100% - 52px));
  margin-inline:auto;
}

.noise{
  position:fixed;
  inset:0;
  z-index:1000;
  pointer-events:none;
  overflow:hidden;
  opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.nav{
  position:fixed;
  z-index:100;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(580px,calc(100% - 28px));
  height:58px;
  padding:7px 9px 7px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  background:rgba(135,0,0,.38);
  backdrop-filter:blur(24px) saturate(150%);
  box-shadow:0 18px 55px rgba(85,0,0,.18);
  transition:.3s ease;
}

.nav.scrolled{
  background:rgba(105,0,0,.76);
}

.brand{
  font-weight:760;
  letter-spacing:-.03em;
  text-decoration:none;
}

.writing-button{
  border:0;
  border-radius:999px;
  background:white;
  color:var(--red);
  padding:11px 18px;
  font-size:.88rem;
  font-weight:720;
}

.hero{
  position:relative;
  min-height:100svh;
  padding:130px 0 58px;
  display:grid;
  align-items:end;
  overflow:hidden;
  background:
    radial-gradient(
      circle at 78% 14%,
      rgba(255,255,255,.13),
      transparent 27%
    ),
    linear-gradient(
      145deg,
      #f00f08,
      var(--red) 58%,
      #c50702
    );
}

.hero-inner{
  position:relative;
  z-index:2;
}

.eyebrow,
.section-label{
  margin:0 0 22px;
  color:var(--muted);
  font-size:.76rem;
  font-weight:720;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  font-size:clamp(6rem,15vw,14rem);
  font-weight:770;
  line-height:.69;
  letter-spacing:-.09em;
}

.hero h1 span{
  color:transparent;
  -webkit-text-stroke:2px rgba(255,255,255,.86);
}

.hero-bottom{
  margin-top:58px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:50px;
}

.hero-copy{
  max-width:760px;
  margin:0;
  font-size:clamp(1.55rem,3vw,3rem);
  line-height:1.02;
  letter-spacing:-.047em;
}

.round-read{
  width:118px;
  height:118px;
  flex:none;
  padding:0 22px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(255,255,255,.08);
  color:white;
  font-weight:700;
  transition:.35s var(--ease);
}

.round-read:hover{
  transform:rotate(-8deg) scale(1.04);
  background:white;
  color:var(--red);
}

.orbit{
  position:absolute;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  pointer-events:none;
  animation:orbit 11s ease-in-out infinite alternate;
}

.orbit-one{
  width:58vw;
  height:58vw;
  min-width:560px;
  min-height:560px;
  right:-16vw;
  top:-22vw;
}

.orbit-two{
  width:26vw;
  height:26vw;
  min-width:260px;
  min-height:260px;
  left:-8vw;
  bottom:7%;
  animation-delay:-4s;
}

@keyframes orbit{
  to{
    transform:translate3d(15px,24px,0);
  }
}

.ticker{
  padding:18px 0;
  border-block:1px solid var(--line);
  overflow:hidden;
  white-space:nowrap;
}

.ticker-track{
  display:inline-flex;
  gap:30px;
  min-width:max-content;
  animation:ticker 26s linear infinite;
  font-size:.78rem;
  font-weight:750;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ticker i{
  font-style:normal;
  opacity:.43;
}

@keyframes ticker{
  to{
    transform:translateX(-50%);
  }
}

.dispatches{
  padding:130px 0;
}

.dispatch-grid{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:70px;
  align-items:end;
}

.dispatches h2{
  margin:0;
  font-size:clamp(4.2rem,8.7vw,9rem);
  line-height:.84;
  letter-spacing:-.075em;
}

.dispatch-copy{
  max-width:560px;
  justify-self:end;
}

.dispatch-copy p{
  margin:0 0 32px;
  color:rgba(255,255,255,.78);
  font-size:1.28rem;
  line-height:1.45;
  letter-spacing:-.02em;
}

.text-link{
  padding:0 0 7px;
  border:0;
  border-bottom:1px solid white;
  background:transparent;
  color:white;
  font-weight:700;
}

.text-link span{
  display:inline-block;
  margin-left:16px;
  transition:transform .3s var(--ease);
}

.text-link:hover span{
  transform:translateX(7px);
}

.principles{
  background:white;
  color:var(--red);
  border-radius:44px 44px 0 0;
  overflow:hidden;
}

.principles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}

.principles article{
  min-height:340px;
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-right:1px solid rgba(225,6,0,.16);
}

.principles article:last-child{
  border:0;
}

.principles article>span{
  font-size:.76rem;
  font-weight:750;
  opacity:.46;
}

.principles h3{
  margin:0;
  font-size:clamp(2.6rem,4.6vw,5rem);
  line-height:.88;
  letter-spacing:-.065em;
}

.principles p{
  max-width:310px;
  margin:18px 0 0;
  color:rgba(155,8,3,.7);
  font-size:1rem;
  line-height:1.42;
}

.statement{
  padding:140px 0;
  background:white;
  color:var(--red);
}

.statement p{
  max-width:1180px;
  margin:0;
  font-size:clamp(3rem,6.4vw,7rem);
  line-height:.94;
  letter-spacing:-.065em;
  font-weight:700;
}

.statement .statement-note{
  margin-top:70px;
  font-size:1rem;
  line-height:1.4;
  letter-spacing:0;
  text-transform:uppercase;
  color:rgba(152,8,3,.62);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer{
  position:relative;
  flex:0 0 auto;
  flex-shrink:0;
  width:100%;
  padding:105px 0 28px;
  background:var(--ink);
  overflow:hidden;
  transform:none;
  contain:paint;
}

.footer-main{
  display:grid;
  grid-template-columns:1fr auto;
  gap:60px;
  align-items:end;
}

.footer-main h2{
  margin:0;
  font-size:clamp(6rem,13vw,13rem);
  line-height:.7;
  letter-spacing:-.09em;
}

.footer-main>div{
  text-align:right;
}

.footer-main p{
  max-width:360px;
  margin:0;
  color:rgba(255,255,255,.58);
  line-height:1.45;
}

.footer-read{
  margin-top:24px;
  padding:11px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:white;
}

.footer-read:hover{
  background:white;
  color:var(--red);
}

.footer-bottom{
  margin-top:92px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.42);
  font-size:.76rem;
}


/* ============================================================
   OVERLAYS
   ============================================================ */

.overlay{
  position:fixed;
  inset:0;
  z-index:500;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.overlay.open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

.overlay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(22,0,0,.7);
  backdrop-filter:blur(18px);
}

.reader-window,
.editor-window{
  position:absolute;
  inset:16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25);
  border-radius:30px;
  background:var(--red);
  box-shadow:0 35px 110px rgba(0,0,0,.36);
  transform:translateY(18px) scale(.99);
  transition:transform .45s var(--ease);
}

.overlay.open .reader-window,
.overlay.open .editor-window{
  transform:none;
}

.window-header{
  height:68px;
  flex:none;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.window-title,
.window-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.window-title strong{
  font-size:.96rem;
}

.window-title span{
  color:rgba(255,255,255,.56);
  font-size:.78rem;
}

.window-title .save-state{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:white;
}

.quiet-button,
.publish-button,
.close-button{
  border:0;
  color:white;
}

.quiet-button{
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  font-size:.82rem;
  font-weight:680;
}

.publish-button{
  padding:10px 17px;
  border-radius:999px;
  background:white;
  color:var(--red);
  font-size:.84rem;
  font-weight:730;
}

.close-button{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.1);
  font-size:1.5rem;
  line-height:1;
}

.reader-layout{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:360px 1fr;
}

.post-list-panel{
  min-height:0;
  overflow-y:auto;
  padding:20px;
  border-right:1px solid var(--line);
}

.panel-heading{
  padding:3px 4px 20px;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:.72rem;
  font-weight:720;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.post-item{
  width:100%;
  margin-bottom:10px;
  padding:20px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:20px;
  background:transparent;
  color:white;
  transition:.3s var(--ease);
}

.post-item:hover,
.post-item:focus-visible{
  outline:none;
  transform:translateX(5px);
  background:rgba(255,255,255,.08);
}

.post-item.active{
  background:white;
  color:var(--red);
  border-color:white;
}

.post-item strong{
  display:block;
  font-size:1.14rem;
  line-height:1.1;
  letter-spacing:-.035em;
}

.post-item small{
  margin-bottom:17px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:.68rem;
  font-weight:720;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.64;
}

.loading-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  color:var(--muted);
}

.article-panel{
  min-width:0;
  overflow-y:auto;
  background:white;
  color:var(--ink);
}

.article{
  width:min(820px,calc(100% - 70px));
  margin:auto;
  padding:72px 0 120px;
}

.empty-state{
  min-height:360px;
  display:grid;
  place-items:center;
  color:rgba(23,2,1,.48);
}

.article-type{
  color:var(--red);
  font-size:.74rem;
  font-weight:760;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.article-title{
  margin:18px 0 28px;
  color:var(--red);
  font-size:clamp(3.3rem,6vw,6.7rem);
  line-height:.9;
  letter-spacing:-.068em;
}

.article-meta{
  margin-bottom:52px;
  padding:17px 0;
  display:flex;
  gap:18px;
  border-block:1px solid rgba(23,2,1,.14);
  color:rgba(23,2,1,.52);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}


/* ============================================================
   PROSE
   ============================================================ */

.prose{
  font-family:"Iowan Old Style","Baskerville",Georgia,serif;
  font-size:1.18rem;
  line-height:1.72;
}

.prose p{
  margin:0 0 1.35em;
}

.prose h1,
.prose h2,
.prose h3{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  line-height:1.04;
  letter-spacing:-.045em;
}

.prose h1{
  margin:1.8em 0 .55em;
  font-size:2.8rem;
}

.prose h2{
  margin:2em 0 .55em;
  color:var(--red);
  font-size:2.25rem;
}

.prose h3{
  margin:1.8em 0 .5em;
  font-size:1.55rem;
}

.prose blockquote{
  margin:2em 0;
  padding:5px 0 5px 25px;
  border-left:4px solid var(--red);
  color:var(--red);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  font-size:1.55rem;
  font-weight:650;
  line-height:1.2;
  letter-spacing:-.035em;
}

.prose a{
  color:var(--red);
  text-underline-offset:3px;
}

.prose code{
  padding:.13em .35em;
  border-radius:6px;
  background:#f0e7e5;
  color:#94110c;
  font-size:.9em;
}

.prose pre{
  overflow:auto;
  padding:22px;
  border-radius:16px;
  background:var(--ink);
  color:white;
  font-size:.9rem;
  line-height:1.55;
}

.prose pre code{
  padding:0;
  background:transparent;
  color:inherit;
}

.prose li{
  margin:.45em 0;
}

.prose hr{
  margin:3em 0;
  border:0;
  border-top:1px solid rgba(23,2,1,.14);
}


/* ============================================================
   AUTH
   ============================================================ */

.auth-window{
  position:absolute;
  top:50%;
  left:50%;
  width:min(480px,calc(100% - 30px));
  padding:34px;
  transform:translate(-50%,calc(-50% + 16px)) scale(.98);
  border:1px solid rgba(255,255,255,.25);
  border-radius:28px;
  background:var(--red);
  box-shadow:0 30px 90px rgba(0,0,0,.34);
  transition:transform .4s var(--ease);
}

.overlay.open .auth-window{
  transform:translate(-50%,-50%) scale(1);
}

.auth-close{
  position:absolute;
  top:18px;
  right:18px;
}

.auth-label{
  margin:0 0 30px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:720;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.auth-window h2{
  margin:0;
  font-size:clamp(4rem,12vw,7rem);
  line-height:.8;
  letter-spacing:-.075em;
}

.auth-window>p:not(.auth-label):not(.form-status){
  color:var(--muted);
}

.auth-window form{
  margin-top:28px;
  display:flex;
  gap:9px;
}

.auth-window input,
.editor-meta input{
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:white;
  outline:none;
}

.auth-window input{
  min-width:0;
  flex:1;
  padding:14px;
}

.auth-window input::placeholder,
.editor-meta input::placeholder{
  color:rgba(255,255,255,.44);
}

.primary-button{
  padding:0 18px;
  border:0;
  border-radius:14px;
  background:white;
  color:var(--red);
  font-weight:720;
}

.form-status{
  min-height:22px;
  margin:16px 0 0;
  font-size:.85rem;
}


/* ============================================================
   EDITOR
   ============================================================ */

.editor-meta{
  padding:18px 22px;
  border-bottom:1px solid var(--line);
}

.editor-meta input:focus{
  border-color:rgba(255,255,255,.65);
}

.title-input{
  width:100%;
  padding:0 0 13px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:clamp(2rem,4vw,4rem)!important;
  font-weight:700;
  letter-spacing:-.055em;
}

.meta-row{
  display:grid;
  grid-template-columns:1fr 180px 1fr;
  gap:10px;
}

.meta-row input{
  min-width:0;
  padding:11px 13px;
}

.editor-layout{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:1fr 1fr;
}

.editor-pane,
.preview-pane{
  min-height:0;
  display:flex;
  flex-direction:column;
}

.editor-pane{
  border-right:1px solid var(--line);
}

.preview-pane{
  background:white;
  color:var(--ink);
}

.pane-label{
  height:38px;
  flex:none;
  padding:12px 18px 0;
  color:var(--muted);
  font-size:.68rem;
  font-weight:720;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.preview-pane .pane-label{
  color:rgba(23,2,1,.45);
}

#markdown-editor{
  min-height:0;
  flex:1;
  padding:18px;
  border:0;
  outline:0;
  resize:none;
  background:transparent;
  color:white;
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:.95rem;
  line-height:1.65;
}

.preview-prose{
  min-height:0;
  overflow-y:auto;
  padding:20px 40px 70px;
}

.publish-status{
  position:absolute;
  right:22px;
  bottom:22px;
  padding:11px 15px;
  border-radius:999px;
  background:var(--ink);
  color:white;
  font-size:.82rem;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:.25s ease;
}

.publish-status.visible{
  opacity:1;
  transform:none;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:900px){
  .shell{
    width:min(100% - 28px,720px);
  }

  .hero{
    min-height:850px;
    padding-top:120px;
  }

  .hero h1{
    font-size:clamp(5.7rem,24vw,10rem);
  }

  .hero-bottom{
    align-items:start;
    flex-direction:column;
  }

  .round-read{
    width:auto;
    height:auto;
    border-radius:999px;
    padding:14px 20px;
    gap:36px;
  }

  .dispatches,
  .statement{
    padding:96px 0;
  }

  .dispatch-grid{
    grid-template-columns:1fr;
    gap:42px;
  }

  .dispatch-copy{
    justify-self:start;
  }

  .principles-grid{
    grid-template-columns:1fr;
  }

  .principles article{
    min-height:260px;
    border-right:0;
    border-bottom:1px solid rgba(225,6,0,.16);
  }

  .footer-main{
    grid-template-columns:1fr;
  }

  .footer-main>div{
    text-align:left;
  }

  .reader-window,
  .editor-window{
    inset:8px;
    border-radius:22px;
  }

  .reader-layout{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
  }

  .post-list-panel{
    max-height:240px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .article{
    width:min(100% - 34px,700px);
    padding-top:48px;
  }

  .meta-row{
    grid-template-columns:1fr;
  }

  .editor-layout{
    grid-template-columns:1fr;
  }

  .editor-pane{
    border-right:0;
  }

  .preview-pane{
    display:none;
  }

  .window-title span:not(.save-state){
    display:none;
  }

  .auth-window form{
    flex-direction:column;
  }

  .primary-button{
    padding:14px;
  }

  .article-title{
    font-size:clamp(2.9rem,12vw,5rem);
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}