:root {
  --paper: #f3efe4;
  --paper-dark: #ded6c3;
  --ink: #172824;
  --muted: #5f6b65;
  --red: #c72c34;
  --red-dark: #8e1d24;
  --forest: #234a3d;
  --forest-dark: #17342d;
  --sky: #9cc8cf;
  --sun: #e3b85d;
  --line: rgba(23, 40, 36, 0.2);
  --shadow: 10px 12px 0 rgba(23, 40, 36, 0.14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --condensed: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Impact, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 228, 0.94);
}

.channel-mark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}

.channel-mark__leaf {
  width: 46px;
  height: 46px;
  padding: 8px;
  color: white;
  background: var(--red);
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.channel-mark__leaf path {
  fill: currentColor;
}

.channel-mark span {
  display: grid;
  line-height: 1;
}

.channel-mark strong {
  font-family: var(--condensed);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.channel-mark small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  min-height: 740px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(35, 74, 61, 0.14);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 750px;
  padding: 6rem clamp(1.25rem, 6vw, 7.5rem) 8rem;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.4rem;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 3px;
  content: "";
  background: currentColor;
}

.hero h1,
.about h2,
.connect h2 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(4rem, 7.8vw, 8.8rem);
}

.hero__intro {
  max-width: 620px;
  margin: 2rem 0 0;
  color: #35443f;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
}

.hero__actions,
.connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button--primary {
  color: white;
  background: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.button--primary:hover {
  box-shadow: 9px 9px 0 var(--ink);
}

.button--text {
  min-height: auto;
  padding-right: 0;
  padding-left: 0;
  border-bottom: 2px solid var(--ink);
}

.hero__scene {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  background: var(--sky);
  border-left: 1px solid var(--line);
}

.sun {
  position: absolute;
  top: 80px;
  right: 11%;
  width: 124px;
  height: 124px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(23, 40, 36, 0.18);
}

.mountain {
  position: absolute;
  right: -8%;
  bottom: 180px;
  left: -12%;
  height: 360px;
  clip-path: polygon(0 100%, 0 74%, 13% 45%, 20% 66%, 37% 18%, 48% 59%, 59% 34%, 67% 56%, 80% 8%, 100% 69%, 100% 100%);
}

.mountain--back {
  bottom: 260px;
  background: #6d9286;
  transform: scaleX(1.12);
}

.mountain--front {
  background: var(--forest);
}

.treeline {
  position: absolute;
  right: -3%;
  bottom: 0;
  left: -3%;
  height: 235px;
  background: var(--forest-dark);
  clip-path: polygon(0 100%, 0 58%, 4% 58%, 6% 30%, 8% 58%, 13% 58%, 16% 15%, 19% 58%, 23% 58%, 25% 37%, 27% 58%, 33% 58%, 36% 22%, 39% 58%, 43% 58%, 46% 4%, 50% 58%, 55% 58%, 58% 32%, 61% 58%, 66% 58%, 69% 13%, 73% 58%, 77% 58%, 81% 27%, 84% 58%, 89% 58%, 92% 7%, 96% 58%, 100% 58%, 100% 100%);
}

.road-sign {
  position: absolute;
  top: 95px;
  left: 8%;
  z-index: 2;
  display: grid;
  min-width: 190px;
  padding: 1rem 1.25rem;
  color: white;
  background: var(--forest);
  border: 5px solid white;
  outline: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.road-sign span,
.road-sign small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.road-sign strong {
  margin: 0.2rem 0;
  font-family: var(--condensed);
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.irc-window {
  position: absolute;
  right: clamp(1rem, 7%, 5.5rem);
  bottom: 72px;
  z-index: 4;
  width: min(570px, 82%);
  color: #d9eadf;
  background: #12201d;
  border: 2px solid #07110f;
  box-shadow: 18px 20px 0 rgba(23, 40, 36, 0.28);
  transform: rotate(1.2deg);
}

.irc-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: #d8ddcf;
  border-bottom: 2px solid #07110f;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.irc-window__body {
  min-height: 215px;
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--mono);
  font-size: clamp(0.73rem, 1.1vw, 0.9rem);
}

.irc-window__body p {
  margin: 0.55rem 0;
}

.irc-window__body time {
  color: #6f8d82;
}

.irc-window__body b {
  color: #ffcb68;
}

.irc-window__body .system {
  color: #86c4a4;
}

.cursor span {
  display: inline-block;
  width: 0.65em;
  height: 1.05em;
  vertical-align: -0.13em;
  background: #d9eadf;
  animation: blink 1s steps(1) infinite;
}

.hero__stamp {
  position: absolute;
  bottom: 26px;
  left: clamp(1.25rem, 3vw, 3rem);
  z-index: 5;
  display: grid;
  width: 134px;
  height: 134px;
  padding: 1rem;
  place-content: center;
  color: var(--red-dark);
  text-align: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: rotate(-10deg);
}

.hero__stamp::before,
.hero__stamp::after {
  position: absolute;
  inset: 7px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hero__stamp::after {
  inset: 13px;
  border-style: dashed;
}

.hero__stamp span,
.hero__stamp strong {
  position: relative;
  z-index: 1;
}

.hero__stamp span {
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero__stamp strong {
  margin: 0.35rem 0;
  font-family: var(--condensed);
  font-size: 0.95rem;
  line-height: 0.92;
}

.about {
  padding: 6rem clamp(1.25rem, 5vw, 5rem) 0;
}

.section-label {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label span {
  display: grid;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--red);
  place-items: center;
}

.section-label p {
  margin: 0;
}

.about__content {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.65fr);
  gap: clamp(3rem, 10vw, 10rem);
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

.about h2 {
  font-size: clamp(3.5rem, 7vw, 7.5rem);
}

.about__copy {
  padding-top: 0.5rem;
  font-size: 1.08rem;
}

.about__copy p:first-child {
  margin-top: 0;
}

.underlined-link {
  display: inline-block;
  margin-top: 0.7rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.topic-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin: 6rem calc(clamp(1.25rem, 5vw, 5rem) * -1) 0;
  padding: 1.25rem clamp(1.25rem, 5vw, 5rem);
  color: white;
  background: var(--red);
  align-items: center;
  overflow: hidden;
}

.topic-strip > span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.topic-strip div {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  min-width: max-content;
  font-family: var(--condensed);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topic-strip i {
  font-size: 0.48rem;
}

.connect {
  padding: 6rem clamp(1.25rem, 5vw, 5rem);
  color: #e9efe9;
  background: var(--forest-dark);
}

.section-label--light {
  color: #b2c4bb;
}

.connect__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(270px, 0.65fr) minmax(390px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}

.eyebrow--light {
  color: #e3b85d;
}

.connect h2 {
  color: white;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.connect__lead > p:last-child {
  max-width: 500px;
  color: #b9cbc2;
  font-size: 1.04rem;
}

.connection-board {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.connection-board div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.connection-board dt {
  color: #8fa79b;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-board dd {
  margin: 0;
  color: white;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  word-break: break-word;
}

.command-panel {
  color: #e4ece6;
  background: #0d1b18;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.22);
}

.command-panel__top {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.copy-button {
  padding: 0;
  color: #ffcf70;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.command-panel pre {
  margin: 0;
  padding: 1.35rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.83rem, 1.2vw, 1rem);
  line-height: 1.8;
}

.command-panel code span {
  color: #ffcf70;
}

.connect__actions {
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

.button--paper {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}

.button--paper:hover {
  box-shadow: 9px 9px 0 var(--red);
}

.button--outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.button--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  color: #52605a;
  background: var(--paper-dark);
  border-top: 1px solid rgba(23, 40, 36, 0.15);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding-bottom: 5rem;
  }

  .hero__scene {
    min-height: 610px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero__stamp {
    top: 29rem;
    bottom: auto;
    left: auto;
    right: 2rem;
  }

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

  .connect__lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 78px;
    padding: 0.85rem 1rem;
  }

  .channel-mark__leaf {
    width: 40px;
    height: 40px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero__copy {
    padding: 4.5rem 1.25rem 5rem;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 16vw, 6rem);
  }

  .hero__scene {
    min-height: 540px;
  }

  .road-sign {
    top: 45px;
    left: 1.5rem;
    min-width: 165px;
  }

  .sun {
    top: 44px;
    right: 1.4rem;
    width: 84px;
    height: 84px;
  }

  .irc-window {
    right: 1rem;
    bottom: 50px;
    width: calc(100% - 2rem);
  }

  .hero__stamp {
    display: none;
  }

  .about {
    padding-top: 4.5rem;
  }

  .about__content,
  .connect__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about h2,
  .connect h2 {
    font-size: clamp(3.25rem, 15vw, 5.5rem);
  }

  .topic-strip {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .topic-strip div {
    gap: 0.8rem 1rem;
    flex-wrap: wrap;
    min-width: 0;
    overflow: visible;
  }

  .connect {
    padding-top: 4.5rem;
  }

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

  .site-footer p:nth-child(2),
  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .hero__actions,
  .connect__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button--text {
    width: auto;
    align-self: flex-start;
  }

  .connection-board div {
    grid-template-columns: 82px 1fr;
  }

  .irc-window__body {
    min-height: 230px;
    font-size: 0.68rem;
  }
}

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

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