@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Michroma&display=swap');

:root {
  /* ---------------------------------------------------------
     talking 2 miself — dark graphite / Kanagawa editorial
     --------------------------------------------------------- */

  --graphite-0: #0b0d0f;
  --graphite-1: #101316;
  --graphite-2: #15191c;
  --graphite-3: #1b2023;
  --graphite-4: #23292c;

  --paper: var(--graphite-0);
  --paper-light: var(--graphite-1);
  --ink: #e8e6df;

  --muted: #8d9392;
  --muted-soft: #696f70;

  --rule: #30383d;
  --rule-bright: #465158;

  /* Kanagawa-inspired restrained accents */
  --accent-green: #76946a;
  --accent-blue: #7e9cd8;
  --accent-cyan: #7fb4ca;
  --accent-violet: #957fb8;

  --accent: var(--accent-green);

  --display: "Michroma", "Eurostile", "Microgramma", sans-serif;
  --ui: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  --editorial: "Baskerville", "Libre Baskerville", "Georgia", serif;

  --shadow-soft:
    0 1px 0 rgba(255,255,255,0.025),
    0 12px 32px rgba(0,0,0,0.28);

  --shadow-panel:
    inset 0 1px 0 rgba(255,255,255,0.025),
    inset 0 -1px 0 rgba(0,0,0,0.32),
    0 8px 24px rgba(0,0,0,0.20);
}


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--graphite-0);
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 72% 12%,
      rgba(126, 156, 216, 0.035),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #0c0f11 0%,
      #0a0c0e 100%
    );
  color: var(--ink);
  font-family: var(--editorial);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-cyan);
}


/* ---------------------------------------------------------
   MAIN SHELL
   --------------------------------------------------------- */

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;

  border-right: 1px solid #283036;

  padding: 28px 22px 24px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background:
    linear-gradient(
      180deg,
      #111518 0%,
      #0d1012 68%,
      #0a0c0e 100%
    );

  box-shadow:
    inset -1px 0 rgba(255,255,255,0.015),
    10px 0 30px rgba(0,0,0,0.16);
}


/* ---------------------------------------------------------
   LEFT RAIL
   --------------------------------------------------------- */

.mark {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: #dcdedb;
}

.mark::after {
  content: "";
  display: block;
  width: 26px;
  margin-top: 9px;
  border-top: 2px solid var(--accent-cyan);

  box-shadow:
    0 0 10px rgba(127, 180, 202, 0.16);
}

.issue {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 34px;

  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);

  padding: 26px 0;
}

.site-nav a {
  position: relative;

  font-family: var(--ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;

  color: #bfc3c1;

  padding: 5px 0 5px 13px;

  transition:
    color 140ms ease,
    transform 140ms ease;
}

.site-nav a.active {
  color: #f0eee8;
}

.site-nav a.active::before,
.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  content: "";
  position: absolute;

  left: 0;
  top: 50%;

  width: 5px;
  height: 5px;

  background: var(--accent-blue);

  transform: translateY(-50%);

  box-shadow:
    0 0 8px rgba(126,156,216,0.30);
}

.site-nav a:hover {
  transform: translateX(2px);
}

.rail-note {
  font-family: var(--ui);
  color: #747b7b;

  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.55;
}

.status-dot {
  display: block;

  width: 7px;
  height: 7px;

  background: var(--accent-green);

  margin-bottom: 12px;

  box-shadow:
    0 0 8px rgba(118,148,106,0.20);
}


/* ---------------------------------------------------------
   PUBLICATION WRAPPER
   --------------------------------------------------------- */

.publication {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 48px;
}


/* ---------------------------------------------------------
   MASTHEAD
   --------------------------------------------------------- */

.masthead {
  min-height: 220px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;

  align-items: end;

  border-bottom: 1px solid var(--rule);

  padding: 44px 0 32px;
}

.eyebrow,
.meta-row,
.story-meta,
.object-number,
.thinking-label,
.image-tile span,
.archive-strip span {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.eyebrow {
  color: #abb0ae;
}

.masthead h1 {
  margin: 0;

  font-family: var(--display);
  font-weight: 400;
  text-transform: lowercase;

  letter-spacing: -0.065em;

  font-size: clamp(3.2rem, 7vw, 7.5rem);
  line-height: 0.85;

  color: #ece9e2;

  text-shadow:
    0 0 14px rgba(255,255,255,0.025),
    0 1px 0 rgba(255,255,255,0.03);
}

.tagline {
  margin: 14px 0 0;

  font-family: var(--ui);

  color: #929897;

  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.masthead-meta {
  align-self: start;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding-top: 16px;

  text-align: right;

  font-family: var(--ui);
  font-size: 0.66rem;
  letter-spacing: 0.14em;

  color: #929998;
}

.masthead-meta::after {
  content: "";

  width: 30px;

  border-top: 2px solid var(--accent-cyan);

  margin: 10px 0 0 auto;

  box-shadow:
    0 0 9px rgba(127,180,202,0.15);
}


/* ---------------------------------------------------------
   FEATURE / HERO
   --------------------------------------------------------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);

  border-bottom: 1px solid var(--rule);
}

.lead-visual {
  position: relative;

  min-height: 520px;

  background: var(--graphite-1);

  overflow: hidden;

  border-left: 1px solid rgba(126,156,216,0.25);
  border-top: 1px solid rgba(126,156,216,0.16);

  box-shadow: var(--shadow-panel);
}

.lead-visual img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: 45% center;

  filter:
    grayscale(1)
    contrast(1.08)
    brightness(0.72);
}

.lead-visual-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  padding: 32px;

  background:
    linear-gradient(
      to bottom,
      rgba(8,10,11,0.40),
      rgba(8,10,11,0.05) 45%,
      rgba(8,10,11,0.28)
    );
}

.visual-label {
  font-family: var(--ui);

  font-size: 0.72rem;
  letter-spacing: 0.13em;

  color: #d0d4d1;
}


/* ---------------------------------------------------------
   FEATURE COPY
   --------------------------------------------------------- */

.lead-copy {
  padding: 42px 0 42px 42px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.012),
      rgba(255,255,255,0)
    );
}

.meta-row {
  display: flex;
  gap: 16px;

  margin-bottom: 34px;
}

.meta-row span:first-child {
  color: var(--accent-cyan);
}

.lead-copy h2 {
  margin: 0;

  font-size: clamp(3rem, 5.6vw, 6rem);
  font-weight: 400;

  line-height: 0.92;
  letter-spacing: -0.035em;

  color: #f0eee8;

  text-shadow:
    0 0 12px rgba(255,255,255,0.018);
}

.lead-copy h2::after {
  content: "";

  display: block;

  width: 76px;

  border-top: 2px solid var(--accent-green);

  margin: 28px 0;

  box-shadow:
    0 0 8px rgba(118,148,106,0.12);
}

.standfirst {
  font-size: 1.25rem;
  line-height: 1.45;

  margin: 0 0 22px;

  color: #deddd7;
}

.summary {
  color: #858c8b;

  max-width: 38rem;
}

.read-link {
  display: inline-block;

  margin-top: 18px;

  font-family: var(--ui);

  font-size: 0.8rem;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--accent-cyan);
}


/* ---------------------------------------------------------
   SECTION BASICS
   --------------------------------------------------------- */

.section-block {
  padding: 54px 0 58px;

  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;

  font-family: var(--ui);

  font-size: 0.86rem;

  text-transform: uppercase;
  letter-spacing: 0.17em;

  font-weight: 600;

  color: #dfe1dd;
}

.section-heading span {
  font-family: var(--ui);

  color: var(--muted);

  font-size: 0.75rem;
  letter-spacing: 0.05em;
}


/* ---------------------------------------------------------
   RECENT
   --------------------------------------------------------- */

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

.story-grid article {
  padding: 0 30px;

  border-left: 1px solid var(--rule);

  transition:
    background 160ms ease,
    transform 160ms ease;
}

.story-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.story-grid article:last-child {
  padding-right: 0;
}

.story-grid h3,
.object h3 {
  font-weight: 400;

  font-size: 1.55rem;
  line-height: 1.15;

  margin: 8px 0 13px;

  color: #e4e2dc;
}

.story-grid p,
.object p {
  color: #858b8a;
  margin: 0;
}


/* ---------------------------------------------------------
   OBJECTS
   --------------------------------------------------------- */

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

.object {
  padding: 0 24px;

  border-left: 1px solid var(--rule);
}

.object:first-child {
  padding-left: 0;
  border-left: 0;
}

.object:last-child {
  padding-right: 0;
}

.object-number {
  color: var(--accent-green);
}


/* ---------------------------------------------------------
   CURRENTLY THINKING
   --------------------------------------------------------- */

.thinking {
  padding: 38px 0;

  border-bottom: 1px solid var(--rule);
}

.thinking > div {
  display: grid;
  grid-template-columns: 240px 1fr;

  gap: 30px;
}

.thinking-label {
  color: #777f7e;
}

.thinking p {
  margin: 0;

  font-size: 1.1rem;

  color: #d1d1cb;
}


/* ---------------------------------------------------------
   IMAGE TILES
   --------------------------------------------------------- */

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

  gap: 18px;
}

.image-tile {
  min-height: 220px;

  background:
    linear-gradient(
      145deg,
      #202629,
      #161a1d 68%
    );

  color: var(--ink);

  padding: 22px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid #2c353a;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    0 9px 20px rgba(0,0,0,0.16);

  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.image-tile:hover {
  border-color: rgba(126,156,216,0.38);
  transform: translateY(-1px);
}

.image-tile span {
  color: #829389;
}

.image-tile strong {
  margin-top: 4px;

  font-family: var(--editorial);

  font-size: 1.15rem;
  font-weight: 400;

  color: #e2e0da;
}


/* ---------------------------------------------------------
   ARCHIVE
   --------------------------------------------------------- */

.archive-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 34px 0;

  border-bottom: 1px solid var(--rule);

  font-family: var(--ui);
}

.archive-strip div {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.archive-strip strong {
  color: #dad9d3;
}

.archive-strip a {
  color: var(--accent-cyan);

  text-transform: uppercase;
  letter-spacing: 0.1em;

  font-size: 0.75rem;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.colophon {
  display: grid;
  grid-template-columns: 1fr auto;

  gap: 40px;

  padding-top: 38px;

  font-family: var(--ui);

  font-size: 0.75rem;

  color: #717877;
}

.colophon strong {
  color: #d8d9d5;

  font-family: var(--display);

  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.footer-right {
  display: flex;
  flex-direction: column;

  text-align: right;

  gap: 2px;
}


/* ---------------------------------------------------------
   RESPONSIVE — TABLET
   --------------------------------------------------------- */

@media (max-width: 980px) {

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

  .rail {
    position: static;

    height: auto;

    border-right: 0;
    border-bottom: 1px solid var(--rule);

    padding: 18px 24px;
  }

  .rail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mark {
    margin: 0;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;

    margin-top: 18px;

    padding: 16px 0;
  }

  .rail-note {
    display: none;
  }

  .publication {
    width: min(100% - 40px, 1180px);
  }

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

  .lead-copy {
    padding: 38px 0;
  }

  .lead-visual {
    min-height: 360px;
  }

  .story-grid,
  .objects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid article,
  .object {
    padding: 20px 24px;

    border-top: 1px solid var(--rule);
  }

  .story-grid article:nth-child(odd),
  .object:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}


/* ---------------------------------------------------------
   RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 680px) {

  .publication {
    width: min(100% - 28px, 1180px);
  }

  .masthead {
    grid-template-columns: 1fr;

    min-height: auto;
  }

  .masthead-meta {
    display: none;
  }

  .masthead h1 {
    font-size: clamp(2.7rem, 15vw, 5rem);

    letter-spacing: -0.05em;
  }

  .story-grid,
  .objects-grid,
  .image-row,
  .thinking > div,
  .colophon {
    grid-template-columns: 1fr;
  }

  .story-grid article,
  .object {
    padding: 22px 0;

    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .image-tile {
    min-height: 180px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 5px;
  }

  .footer-right {
    text-align: left;

    margin-top: 20px;
  }

  .archive-strip {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;
  }
}

/* ---------------------------------------------------------
   404 / NOT FOUND
   --------------------------------------------------------- */

.not-found-page {
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(
      circle at 70% 18%,
      rgba(126, 156, 216, 0.04),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      var(--graphite-1),
      var(--graphite-0)
    );

  color: var(--ink);
}

.not-found {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
}

.not-found h1 {
  margin: 0;

  font-family: "Michroma", "Eurostile", "Microgramma", sans-serif;
  font-weight: 400;

  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;

  color: #ece9e2;
}

.not-found h1::after {
  content: "";

  display: block;

  width: 72px;
  margin: 28px 0 30px;

  border-top: 2px solid var(--accent-cyan);

  box-shadow:
    0 0 8px rgba(127, 180, 202, 0.14);
}

.not-found p {
  margin: 0;

  font-family: "Libre Baskerville", "Baskerville", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.6;

  color: var(--muted);
}
