:root {
  color-scheme: light;
  --paper: #f2efdf;
  --ink: #11110f;
  --acid: #c8ff35;
  --orange: #ff5938;
  --rule: rgba(17, 17, 15, .34);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 17, 15, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 11px;
}

a { color: inherit; }

main {
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--ink);
}

.wordmark {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}

.masthead p,
.eyebrow,
.copyright {
  margin: 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero {
  align-self: center;
  padding: clamp(60px, 11vh, 150px) 0;
}

.eyebrow {
  width: fit-content;
  margin-bottom: clamp(22px, 4vw, 42px);
  padding: 8px 12px;
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1deg);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 10.5rem);
  font-weight: 950;
  line-height: .79;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

h1 span {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.intro {
  max-width: 34ch;
  margin: clamp(30px, 5vw, 60px) 0 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.28;
}

.early-code { width: min(100%, 540px); margin: 32px 0 0 auto; padding: 14px 16px; border: 2px dashed var(--ink); background: var(--acid); transform: rotate(.6deg); }
.early-code summary { width: fit-content; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.early-code p { margin: 14px 0; font-family: Georgia, 'Times New Roman', serif; line-height: 1.5; }
.early-code code { padding: 3px 6px; background: var(--ink); color: var(--acid); font: 900 .9em ui-monospace, monospace; letter-spacing: .06em; }
.early-code a { font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-underline-offset: 4px; text-transform: uppercase; }

.ticker {
  overflow: hidden;
  margin-inline: calc(clamp(20px, 4vw, 64px) * -1);
  padding: 13px clamp(20px, 4vw, 64px);
  color: var(--paper);
  background: var(--ink);
}

.ticker p {
  margin: 0;
  font-size: clamp(.78rem, 1.5vw, 1rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.ticker b { color: var(--acid); }

.ident-news {
  position: relative;
  padding: clamp(52px, 8vw, 100px) 0;
  border-bottom: 3px solid var(--ink);
}

.ident-news::before {
  position: absolute;
  top: clamp(52px, 8vw, 100px);
  right: 0;
  width: clamp(42px, 8vw, 96px);
  height: 12px;
  background: var(--orange);
  content: "";
  transform: rotate(-2deg);
}

.ident-news > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.feed-heading { min-width: 0; }

.ident-news .eyebrow { margin-bottom: 18px; }

.ident-news h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.feed-source {
  display: grid;
  justify-items: end;
  gap: 10px;
  padding-right: clamp(0px, 10vw, 140px);
  text-align: right;
}

.feed-source > span,
.feed-rail > p:last-child {
  color: #58574f;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feed-source > a,
.feed-link {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.feed-source > a {
  padding: 10px 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}

.feed-source > a:hover,
.feed-source > a:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.feed-rail {
  min-height: 42px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.feed-status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #48473f;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 89, 56, .16);
}

.ident-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 2px solid var(--ink);
}

.feed-entry {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 12px 18px;
  min-height: 280px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
}

.feed-entry-featured {
  min-height: 360px;
  grid-column: 1 / -1;
  grid-template-columns: 54px minmax(120px, 180px) minmax(0, 1fr);
  align-items: start;
  border-right: 0;
  background: var(--acid);
}

.feed-marker {
  grid-row: 1 / span 2;
  font: 900 clamp(1rem, 2vw, 1.45rem)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.08em;
}

.feed-entry:not(.feed-entry-featured) time {
  grid-column: 2;
}

.feed-entry time {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.feed-entry > div { grid-column: 2; }
.feed-entry-featured > div { grid-column: 3; }

.feed-entry h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.feed-entry h3 a { text-decoration: none; }
.feed-entry h3 a:hover,
.feed-entry h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.feed-entry p { max-width: 65ch; margin: 12px 0 18px; font-family: Georgia, 'Times New Roman', serif; line-height: 1.55; }
.feed-error { padding: 30px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; }

.feed-archive {
  width: fit-content;
  margin: 26px 0 0 auto;
  padding-bottom: 4px;
  display: block;
  border-bottom: 2px solid var(--ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.feed-archive:hover,
.feed-archive:focus-visible { color: var(--orange); border-color: var(--orange); }

footer {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(38px, 6vw, 72px);
}

.company-stamp {
  width: fit-content;
  padding: 13px 16px 11px;
  display: grid;
  border: 3px double var(--ink);
  transform: rotate(-2deg);
  text-transform: uppercase;
}

.company-stamp span,
.company-stamp small {
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.company-stamp strong { font-size: clamp(1rem, 2vw, 1.35rem); }

.corporate {
  justify-self: end;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-style: italic;
}

.corporate span { display: inline-block; transform: rotate(8deg); }

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero { padding-block: 70px; }
  h1 { font-size: clamp(3rem, 18vw, 5.5rem); }
  .intro { margin-left: 0; }
  .early-code { margin-left: 0; }
  .ident-news > header { align-items: flex-start; flex-direction: column; }
  .ident-news::before { top: 30px; }
  .feed-source { justify-items: start; padding-right: 0; text-align: left; }
  .feed-rail { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ident-feed { grid-template-columns: 1fr; }
  .feed-entry,
  .feed-entry-featured { grid-column: 1; grid-template-columns: 34px minmax(0, 1fr); min-height: 0; padding-inline: 0; background: var(--paper); }
  .feed-entry time,
  .feed-entry:not(.feed-entry-featured) time { grid-column: 2; }
  .feed-entry > div,
  .feed-entry-featured > div { grid-column: 2; }
  footer { grid-template-columns: 1fr; align-items: start; }
  .corporate { justify-self: start; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
