/* jonsalomons.com, direction C2 ("Editorial with a portrait", picked 2026-10-30).
   Fraunces for display, Inter for text, white paper, the ink blue only on dates
   and hover. Sizes are the canvas's at 1280 px, eased down to a phone. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-v38-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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: "Inter";
  src: url("/assets/fonts/inter-v20-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --paper: #fafaf7;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --rule: #d9d9d4;
  --blue: #1b3a6b;
  --slot: #e6e4dc;
  --slot-ink: #55554f; /* the canvas used #6B6B6B here: 4.2:1 on the slot, under AA */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 1120px;
  --gap-page: clamp(56px, 4rem + 2vw, 88px);
  --gap-inner: clamp(48px, 3rem + 1.6vw, 72px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

/* Skip link: off screen until a keyboard reaches it. */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
  color: var(--paper);
}

.draft-bar {
  padding: 10px 24px;
  border-bottom: 1px dashed var(--blue);
  background: #eef1f6;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ph {
  color: var(--muted);
}

/* The page */

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 48px);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
}

.wrap--home {
  gap: var(--gap-page);
  padding-bottom: 96px;
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
}

.wrap--home main {
  gap: var(--gap-page);
}

/* Top bar */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  /* When the bar wraps on a phone, the links' tap areas (12px above the text)
     must not reach the wordmark: WCAG 2.2 target size. */
  gap: 16px 16px;
}

.wordmark {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

/* Tall enough to tap (44 px) without moving the drawn baseline. */
.nav a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  text-decoration: none;
}

.nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Front page: headline and portrait */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.hero-text {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.display {
  font-size: clamp(40px, 1.6rem + 3.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* His own line, in the display face, ruled in blue like the stamp. */
.hero-line {
  max-width: 560px;
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  font-family: var(--display);
  font-size: clamp(19px, 1rem + 0.6vw, 23px);
  line-height: 1.4;
  color: var(--ink);
}

/* Where the definition in his line comes from: small, under the rule. */
.hero-line-credit {
  max-width: 560px;
  margin-top: -0.5em;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.lead,
.lead p {
  font-size: clamp(17px, 1rem + 0.25vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.lead {
  max-width: 560px;
}

.lead p + p {
  margin-top: 1em;
}

.portrait {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 400px;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--slot);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait--slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.portrait--slot span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slot-ink);
}

/* Section heads and dated lists */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  font-size: 28px;
  line-height: 1.25;
}

.section-link {
  font-size: 15px;
  font-weight: 500;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows--ruled {
  border-top: 1px solid var(--ink);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.row-date {
  flex: 0 0 140px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blue);
}

.row-body {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-title {
  font-size: clamp(24px, 1.2rem + 1vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}

.row-title a {
  text-decoration: none;
}

.row-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.row-text {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.venture-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.state {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inner pages */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.page-head h1,
.about-text h1 {
  font-size: clamp(36px, 1.6rem + 2.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-head .lead {
  max-width: none;
}

.year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.year-head h2 {
  font-size: 22px;
  color: var(--muted);
}

.year-head span {
  font-size: 13px;
  color: var(--muted);
}

/* Three short blocks in a row: Now, How AI is used here, Elsewhere */

.trio {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: flex-start;
}

.trio > section {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trio h2 {
  font-size: 24px;
  line-height: 1.25;
}

.trio p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.trio--two {
  padding-top: 32px;
}

.trio--ruled {
  padding-top: 40px;
  border-top: 1px solid var(--ink);
}

/* About */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.about-text {
  flex: 999 1 480px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.opener {
  font-family: var(--display);
  font-size: clamp(21px, 1.1rem + 0.6vw, 24px);
  line-height: 1.4;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* A note to Jonathan, previews only */

.note {
  max-width: 640px;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  font-size: 14px;
  line-height: 1.6;
  color: var(--blue);
}

/* A piece of writing */

.piece {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.piece-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

/* In the column the date is a line of its own, not a 140px column. */
.piece-head .row-date {
  flex: none;
}

.piece-head h1 {
  font-size: clamp(34px, 1.5rem + 2.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
}

.prose blockquote {
  margin: 1.4em 0;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose hr {
  width: 64px;
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.piece-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 8px;
}

.ai-line,
.piece-more {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* The maker's mark */

.mark {
  display: block;
  color: var(--blue);
  transform: rotate(-7deg);
  overflow: visible;
}

.mark-ring {
  font-family: var(--text);
  font-size: 8.6px;
  font-weight: 500;
  letter-spacing: 1.7px;
}

.mark-initials {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.mark-year {
  font-family: var(--text);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
}

@media (prefers-contrast: more) {
  .mark-ink {
    filter: none;
  }
}

/* Footer bar, inner pages */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Phones */

@media (max-width: 600px) {
  .nav {
    gap: 0 24px;
  }

  .row {
    row-gap: 8px;
    padding: 24px 0;
  }

  .hero,
  .about {
    gap: 40px;
  }
}

/* Paper */

@media print {
  .skip,
  .draft-bar,
  .site-head nav,
  .portrait,
  .site-foot,
  .home-foot,
  .piece-more {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose {
    max-width: none;
    color: #000;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
