/* ── Self-hosted fonts (no external requests) ── */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-regular-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-regular-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-regular-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-regular-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-regular-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-regular-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* ── Homepage — Editorial Split ── */

body {
  font-family: 'Newsreader', Georgia, serif;
  background: oklch(0.95 0.015 85);
  color: oklch(0.2 0.01 150);
  min-height: 100vh;
}

.editorial {
  display: grid;
  grid-template-columns: 700px 1fr;
  min-height: 100vh;
}

.editorial__portrait {
  background-image: url(media/face_1.png);
  background-size: cover;
  background-position: left 40%;
  min-height: 50vh;
}

.editorial__content {
  padding: 48px 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* Top bar */
.editorial__topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: oklch(0.4 0.01 150);
}

.editorial__coords {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted oklch(0.5 0.01 150);
}

.editorial__coords:hover {
  color: oklch(0.25 0.01 150);
  border-bottom-color: oklch(0.35 0.01 150);
}

/* Main text */
.editorial__main {
  align-self: center;
  padding: 32px 0;
}

.editorial__heading {
  font-family: 'Instrument Serif', 'Newsreader', serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-style: normal;
}

.editorial__heading em {
  font-style: italic;
  color: oklch(0.55 0.09 35);
}

.editorial__tagline {
  margin-top: 32px;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.55;
  color: oklch(0.35 0.012 150);
}

/* Footer */
.editorial__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid oklch(0.85 0.01 85);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 150);
}

.editorial__footer-links {
  display: flex;
  gap: 20px;
}

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

.editorial__footer a:hover {
  color: oklch(0.25 0.01 150);
}

/* ── Mobile ── */

@media (max-width: 1050px) {
  .editorial {
    display: block;
  }

  .editorial__portrait {
    height: 100vw;
    min-height: unset;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 65%;
  }



  .editorial__content {
    position: relative;
    z-index: 1;
    margin-top: -40px;
    margin-left: 0;
    background: oklch(0.95 0.015 85);
    padding: 32px 24px 32px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .editorial__heading {
    font-size: clamp(38px, 10vw, 60px);
  }

  .editorial__tagline {
    font-size: 15px;
    margin-top: 0;
    max-width: none;
  }

  .editorial__footer {
    padding-top: 16px;
    border-top: 1px solid oklch(0.85 0.01 85);
  }
}

/* ── Legal pages ── */

body.legal-page {
  background: oklch(0.95 0.015 85);
  color: oklch(0.2 0.01 150);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal {
  max-width: 620px;
  width: 90%;
  padding: 4rem 0 6rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 150);
  text-decoration: none;
}

.legal__back:hover {
  color: oklch(0.25 0.01 150);
}

.legal h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.legal h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 150);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal p {
  color: oklch(0.3 0.01 150);
  margin-bottom: 0.5rem;
}

.legal a {
  color: oklch(0.35 0.01 150);
}

.legal a:hover {
  color: oklch(0.15 0.01 150);
}

.legal__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.85 0.01 85);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.55 0.01 150);
  display: flex;
  gap: 1.5rem;
}

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

.legal__footer a:hover {
  color: oklch(0.25 0.01 150);
}
