/* g2k.studio journal. Same paper, ink and Archivo as the hero (src/style.css),
   but a scrolling editorial page instead of a fixed stage. */

:root {
  --paper: #EDEEF0;
  --paper-deep: #E2E4E7;
  --ink: #0E0E0E;
  --muted: #5D6166;
  --rule: rgba(14, 14, 14, 0.24);
  --tk: #F3E47A;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 40px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px / 1.45 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.label a { border-bottom: 1px solid var(--rule); }
.label a:hover, .label a[aria-current] { border-color: var(--ink); }

mark.tk {
  background: var(--tk);
  color: var(--ink);
  padding: 0 0.2em;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- header ---- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px var(--gutter) 0;
}
.brand {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.top nav { display: flex; gap: 28px; }

/* ---- shared bits ---- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 11px;
  color: var(--muted);
}
.draft {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 2px 6px 1px;
  line-height: 1.2;
}

.media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-cutout img { object-fit: contain; padding: 14%; }
.media.is-empty {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
}
.media.is-empty figcaption {
  display: grid;
  gap: 8px;
  padding: 20px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.media.is-empty figcaption .label { font-size: 11px; color: var(--ink); }

/* ---- journal index ---- */
.intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 16vh var(--gutter) 12vh;
}
.display {
  grid-column: 1 / -1;
  font-size: clamp(72px, 13.5vw, 232px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-left: -0.05em;
}
.lede {
  grid-column: 1 / span 1;
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.45;
  max-width: 30ch;
}

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 72px var(--gap);
  margin: 0 var(--gutter);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.entry a { display: grid; gap: 18px; }
.entry-text { display: grid; gap: 12px; }
.entry-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.entry.is-above .entry-text { min-height: 7em; align-content: start; }
.entry .media { transition: opacity 0.3s ease; }
.entry a:hover .media { opacity: 0.86; }
.entry a:hover .entry-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.empty { padding: 0 var(--gutter); color: var(--muted); }

/* ---- article ---- */
.article .top {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  z-index: 1;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.split-media {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: auto;
  height: 100svh;
  position: sticky;
  top: 0;
}
.split-text {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 28px;
  padding: 140px var(--gutter) 56px;
}
.headline {
  font-size: clamp(40px, 4.4vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.dek {
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36ch;
}

.body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
  padding: 120px var(--gutter) 140px;
  font-size: 18px;
  line-height: 1.62;
}
.body > * { grid-column: 2 / span 2; max-width: 38em; }
.body > * + * { margin-top: 1.1em; }
.body h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 2.6em;
}
.body h3 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2.6em;
}
.body h2 + *, .body h3 + * { margin-top: 0.7em; }
.body strong { font-weight: 500; }
.body a { border-bottom: 1px solid var(--rule); }
.body a:hover { border-color: var(--ink); }
.body ul { padding-left: 1.1em; }
.body li + li { margin-top: 0.4em; }
.body blockquote {
  grid-column: 2 / span 3;
  max-width: 26em;
  margin: 2.2em 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.after {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin: 0 var(--gutter);
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
}
.after > .label { border-bottom: 1px solid var(--rule); }
.after > .label:hover { border-color: var(--ink); }
.after-next { display: grid; gap: 10px; text-align: right; max-width: 30em; }
.after-next .label { font-size: 11px; color: var(--muted); }
.after-title { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.012em; }
.after-next:hover .after-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }

/* ---- footer masthead: oversized type, cropped at the edges ---- */
.foot { margin-top: 18vh; overflow: hidden; }
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter) 24px;
}
.masthead {
  font-size: 22.5vw;
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.055em;
  white-space: nowrap;
  margin: 0 -0.07em -0.1em;
  height: 0.66em;
}
.article .masthead { font-size: 33vw; }

/* ---- tablet ---- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lede { grid-column: 1 / span 2; }
  .entry.is-above .entry-text { min-height: 0; }
  .body > *, .body blockquote { grid-column: 1 / -1; }
  .body > * { margin-left: auto; margin-right: auto; width: 100%; }
}

/* ---- phone ---- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --gap: 16px; }
  .top { padding-top: 20px; }
  .top nav { gap: 18px; }
  .label { font-size: 11px; }
  .intro { padding: 12vh var(--gutter) 64px; }
  .lede { margin-top: 24px; grid-column: 1 / -1; font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .entry-title { font-size: 20px; }

  .article .top { position: static; width: auto; padding-bottom: 20px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-media { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 4 / 5; position: relative; }
  .split-text { grid-column: 1; grid-row: 2; padding: 32px var(--gutter) 0; gap: 20px; }
  .headline { font-size: clamp(32px, 9vw, 44px); }
  .dek { font-size: 17px; }
  .body { padding: 56px var(--gutter) 88px; font-size: 17px; }
  .body blockquote { font-size: 24px; }
  .after { flex-direction: column; align-items: flex-start; }
  .after-next { text-align: left; }
  .foot-row { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry .media { transition: none; }
}
