/* Note entity: article pages under /notes/<slug>/.
   Loads after base.css (and after photoswipe.css when a page uses the lightbox). */

a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

figure, blockquote, ol {
  margin: 0;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.article-head {
  max-width: 860px;
  padding: 72px 0 60px;
}

.article-head h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: 70px;
  line-height: 1.02;
}

.head-motif, .section-motif {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--warm);
}

.head-motif { margin-top: 28px; }
.section-motif { margin: 18px 0 30px; color: var(--accent); }

.head-motif span:first-child, .head-motif span:last-child,
.section-motif span:first-child, .section-motif span:last-child {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.head-motif span:nth-child(2), .section-motif span:nth-child(2) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dek {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
}

.actions a { font-weight: 650; }

.hero-figure { margin-bottom: 56px; }
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-figure a { display: block; cursor: zoom-in; }
.hero-figure a:hover img { filter: contrast(1.02); }

figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.copy { max-width: 680px; }
.copy p { color: var(--muted); font-size: 17px; }
.copy p + p { margin-top: 20px; }
.copy strong { color: var(--ink); font-weight: 650; }
.intro { padding-bottom: 56px; }

.section h2 {
  max-width: 820px;
  font-size: 42px;
  line-height: 1.08;
}

.principles {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.number {
  color: var(--line);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.principles h3 {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.12;
}

.principles p {
  max-width: 680px;
  color: var(--muted);
}

blockquote {
  max-width: 860px;
  margin-bottom: 56px;
  padding-left: 26px;
  border-left: 2px solid var(--warm);
}

blockquote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
}

blockquote footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-intro {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
}

/* Masonry: natural aspect ratios, no crops. Captions stay in the DOM for the
   lightbox and screen readers but are not shown in the grid. */
.gallery {
  max-width: 880px;
  columns: 3 220px;
  column-gap: 12px;
}

.gallery figure {
  margin: 0 0 12px;
  break-inside: avoid;
}

.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; background: var(--surface); }
.gallery a:hover img { filter: contrast(1.03) brightness(1.02); }

.gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.photo-credit {
  margin-top: 28px;
  color: var(--soft);
  font-size: 12px;
}

.pswp__bg { background: #1b1815; }

.pswp__custom-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px 18px;
  color: var(--line);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.pswp__custom-caption:empty { display: none; }

.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.source-link {
  display: block;
  min-height: 130px;
  padding: 22px 24px 22px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.source-link + .source-link {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.source-link span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.source-link strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

.source-link p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.footer a { text-decoration: none; }

@media (max-width: 860px) {
  .back-link { max-width: 120px; text-align: right; line-height: 1.3; }
  .article-head { padding: 56px 0 44px; }
  .article-head h1 { font-size: 46px; }
  .dek { font-size: 17px; }
  .head-motif { margin-top: 24px; }
  .hero-figure { margin-bottom: 44px; }
  .intro { padding-bottom: 42px; }
  .section h2 { font-size: 32px; }
  .section-motif { margin: 14px 0 24px; }
  .principles li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .number { font-size: 27px; }
  blockquote { margin-bottom: 42px; }
  .sources { grid-template-columns: 1fr; }
  .source-link + .source-link { padding-left: 0; border-left: 0; }
}

@media (max-width: 480px) {
  .article-head h1 { font-size: 42px; }
}
