@import url("/assets/shared/common.css");

:root {
  --paper: #efe8d8;
  --paper-light: #fff7df;
  --ink: #171717;
  --muted: #625f59;
  --accent: #ff4f24;
  --accent-dark: #ca3213;
  --teal: #1026d8;
  --blue: #1026d8;
  --pink: #f6b3c4;
  --yellow: #ffd83d;
  --sky: #87d9ff;
  --green: #42a45e;
  --line: #171717;
  --white: #fffdf7;
  --shadow: 9px 9px 0 #171717;
  --radius: 0;
}

body {
  background: var(--paper-light);
}

h1,
h2 {
  font-family: "Lora", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h3 {
  letter-spacing: -0.03em;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 247, 223, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 74px;
}

.brand {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.nav-list {
  gap: 0;
  border: 2px solid var(--ink);
}

.nav-list a {
  padding: 0.48rem 0.72rem;
  color: var(--ink);
  border-right: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-list li:last-child a {
  border-right: 0;
}

.nav-list a:hover {
  color: var(--paper-light);
  background: var(--accent);
}

.nav-list a[aria-current="page"] {
  color: var(--paper-light);
  background: var(--blue);
}

.eyebrow {
  color: var(--blue);
  letter-spacing: 0.14em;
}

.eyebrow::before {
  height: 4px;
  background: var(--accent);
}

.button {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
}

.button-primary {
  color: var(--paper-light);
  background: var(--blue);
}

.button-primary:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--yellow);
}

.button-secondary {
  background: var(--paper-light);
}

.button-secondary:hover {
  color: var(--paper-light);
  border-color: var(--ink);
  background: var(--accent);
}

.hero {
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.hero-layout {
  display: grid;
  min-height: 780px;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise-in 650ms ease-out both;
}

.issue-label {
  width: fit-content;
  margin: 0 0 1.4rem;
  padding: 0.38rem 0.6rem;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.65rem, 7.4vw, 7.2rem);
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  width: fit-content;
  margin-top: 0.08em;
  padding: 0.06em 0.12em 0.12em;
  transform: rotate(-1.5deg);
  color: var(--paper-light);
  background: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 58ch;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  animation: cover-in 750ms 80ms ease-out both;
}

.hero-visual::before {
  position: absolute;
  top: -1.2rem;
  right: -1.3rem;
  z-index: -1;
  width: 55%;
  height: 60%;
  background: var(--yellow);
  content: "";
}

.hero-visual img {
  width: 100%;
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}

.hero-visual figcaption {
  width: 72%;
  margin: -1.8rem 0 0 auto;
  padding: 0.85rem 1rem;
  color: var(--paper-light);
  border: 3px solid var(--ink);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.ticker {
  display: flex;
  overflow: hidden;
  justify-content: space-around;
  gap: 2rem;
  padding: 0.9rem 1.2rem;
  color: var(--ink);
  border-top: 3px solid var(--ink);
  background: var(--yellow);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker span::after {
  margin-left: 2rem;
  content: "✦";
}

.manifesto {
  background: var(--paper);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.manifesto-index {
  color: var(--accent);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.8;
}

.manifesto h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.manifesto-copy {
  border-top: 8px solid var(--blue);
}

.manifesto-copy p {
  color: var(--muted);
}

.editorial-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
  margin-bottom: 3.5rem;
}

.editorial-heading span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.editorial-heading h2,
.edit-intro h2,
.horizon-title h2 {
  max-width: 15ch;
  margin: 0.65rem 0 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.editorial-heading > p,
.edit-intro > p:last-child {
  color: var(--muted);
}

.feature-stack {
  display: grid;
  gap: 2.4rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  align-items: stretch;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.feature:nth-child(even) {
  grid-template-columns: minmax(360px, 1.14fr) minmax(0, 0.86fr);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  background: var(--paper-light);
}

.feature-number {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feature h3 {
  max-width: 17ch;
  margin: 1rem 0;
  font-family: "Lora", serif;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1;
}

.feature p {
  color: var(--muted);
}

.feature a {
  width: fit-content;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 0.3rem;
}

.feature img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-left: 4px solid var(--ink);
}

.feature:nth-child(even) img {
  border-right: 4px solid var(--ink);
  border-left: 0;
}

.feature-style .feature-copy {
  background: var(--pink);
}

.feature-space .feature-copy {
  background: var(--sky);
}

.feature-work .feature-copy {
  background: var(--yellow);
}

.edit-list {
  color: var(--paper-light);
  background: var(--blue);
}

.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.edit-intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.edit-intro .eyebrow {
  color: var(--yellow);
}

.edit-intro > p:last-child {
  color: #cbd1ff;
}

.edit-layout ol {
  margin: 0;
  padding: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  list-style: none;
}

.edit-layout li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.edit-layout li > strong {
  color: var(--yellow);
  font-size: 1.4rem;
}

.edit-layout li b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--paper-light);
}

.edit-layout li span {
  color: #d9ddff;
}

.horizon {
  background: var(--accent);
}

.horizon-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.horizon-title .eyebrow {
  color: var(--paper-light);
}

.horizon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.horizon-grid article {
  min-height: 230px;
  padding: 1.4rem;
  border: 3px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 6px 6px 0 var(--ink);
}

.horizon-grid span {
  color: var(--blue);
  font-weight: 800;
}

.horizon-grid h3 {
  margin: 2.4rem 0 0.5rem;
}

.horizon-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cooperation-summary {
  color: var(--ink);
  border-block: 4px solid var(--ink);
  background: var(--yellow);
}

.cooperation-panel .eyebrow,
.cooperation-panel p {
  color: var(--ink);
}

.cooperation-panel .button-primary {
  color: var(--paper-light);
  border-color: var(--ink);
  background: var(--blue);
}

.cooperation-panel .button-secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-light);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 4px solid var(--ink);
  background: var(--pink);
}

.page-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border: 3rem solid var(--yellow);
  border-radius: 50%;
  content: "";
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.page-hero p:last-child {
  color: #3f3d39;
}

.page-hero img {
  width: 100%;
  transform: rotate(1.5deg);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.page-hero-space {
  background: var(--sky);
}

.page-hero-work {
  background: var(--yellow);
}

.content-page {
  background: var(--paper-light);
}

.article-magazine {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.margin-note {
  position: sticky;
  top: 7rem;
  align-self: start;
  padding: 1.4rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}

.margin-note span {
  display: block;
  margin-bottom: 2rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.margin-note strong {
  font-family: "Lora", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.margin-note p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.lead-paragraph {
  margin-top: 0;
  color: var(--blue);
  font-family: "Lora", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  line-height: 1.45;
}

.content-copy h2 {
  margin-top: 3.5rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.numbered-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.numbered-cards section {
  padding: 1.35rem;
  border: 3px solid var(--ink);
  background: var(--white);
}

.numbered-cards section:nth-child(2) {
  background: var(--pink);
}

.numbered-cards section:nth-child(3) {
  background: var(--sky);
}

.numbered-cards section:nth-child(4) {
  background: var(--yellow);
}

.numbered-cards span {
  color: var(--accent);
  font-weight: 800;
}

.numbered-cards h3 {
  margin: 1.8rem 0 0.5rem;
}

.numbered-cards p {
  margin: 0;
  color: #45423e;
}

.line-list {
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
  list-style: none;
}

.line-list li {
  padding: 1rem 0 1rem 2.1rem;
  border-bottom: 1px solid var(--ink);
}

.line-list li::before {
  float: left;
  margin-left: -2rem;
  color: var(--accent);
  font-weight: 800;
  content: "→";
}

.pull-quote {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--paper-light);
  border: 4px solid var(--ink);
  background: var(--blue);
  box-shadow: 8px 8px 0 var(--accent);
  font-family: "Lora", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 650;
  line-height: 1.35;
}

.simple-page .page-hero {
  color: var(--paper-light);
  background: var(--blue);
}

.simple-page .page-hero .eyebrow {
  color: var(--yellow);
}

.simple-page .page-hero p:last-child {
  color: #d7dcff;
}

.article-aside,
.contact-note,
.contact-panel {
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 7px 7px 0 var(--ink);
}

.article-aside,
.contact-note {
  background: var(--yellow);
}

.contact-panel {
  background: var(--pink);
}

.contact-address {
  color: var(--blue);
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
}

.error-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.error-number {
  color: var(--yellow);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  line-height: 0.8;
}

.site-footer {
  color: var(--paper-light);
  border-top: 0;
  background: var(--ink);
}

.site-footer .brand span {
  color: var(--yellow);
}

.site-footer .footer-main p,
.site-footer .footer-links a,
.site-footer .footer-bottom,
.site-footer .footer-bottom a {
  color: #c7c1b5;
}

.site-footer .footer-bottom {
  border-color: #494641;
}

@keyframes rise-in {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cover-in {
  from { transform: translateY(28px) rotate(1deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

@media (max-width: 980px) {
  .hero-layout,
  .manifesto-grid,
  .editorial-heading,
  .edit-layout,
  .horizon-layout,
  .page-hero-grid,
  .article-magazine {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .manifesto-index {
    font-size: 4rem;
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  }

  .edit-intro,
  .margin-note {
    position: static;
  }

  .margin-note {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .header-inner nav,
  .nav-list {
    width: 100%;
  }

  .nav-list {
    border: 0;
  }

  .nav-list a,
  .nav-list li:last-child a {
    border: 1px solid var(--ink);
  }

  .feature,
  .feature:nth-child(even) {
    display: flex;
    flex-direction: column;
  }

  .feature:nth-child(even) img {
    order: 2;
  }

  .feature img,
  .feature:nth-child(even) img {
    min-height: auto;
    border: 0;
    border-top: 4px solid var(--ink);
  }

  .horizon-grid,
  .numbered-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 1200px);
  }

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

  .hero-visual img {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .hero-visual figcaption {
    width: 90%;
  }

  .ticker {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ticker span {
    flex: none;
  }

  .feature h3 {
    font-size: 2.15rem;
  }

  .edit-layout li {
    grid-template-columns: 44px 1fr;
    gap: 0.7rem;
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .page-hero::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .hero h1 em,
  .page-hero img {
    animation: none;
    transform: none;
  }
}
