/* demo05 · editorial
 * Magazine. Serif display. Two-column body. Drop cap. Vintage newspaper energy.
 */

:root {
  --paper: #f5f0e6;
  --ink:   #1a1a1a;
  --rule:  #6e6e6e;
  --accent:#8b1a1a;     /* venetian red */
  --muted: #555;
  --measure: 36em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  background-image:
    radial-gradient(rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font: 17px/1.65 ui-serif, "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--ink); }
em { font-style: italic; }
strong { font-weight: 700; }

.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 24px;
}
.banner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-variant: small-caps;
}
.banner .title {
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--ink);
  font-weight: 700;
}
.dek {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
  font-style: italic;
}
.dek em {
  color: var(--accent);
  font-style: italic;
}
.byline {
  font-size: 17px;
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 32px auto;
  max-width: 1080px;
}
.rule.short {
  max-width: 80px;
  border-top: 2px solid var(--accent);
  margin: 48px auto;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.lead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 16px 0 32px;
  font-size: 18.5px;
  line-height: 1.7;
}
.lead p { margin-bottom: 16px; text-align: justify; hyphens: auto; }
.dropcap {
  float: left;
  font-size: 5.4em;
  line-height: 0.85;
  font-weight: 700;
  margin: 0.05em 0.08em 0 0;
  color: var(--accent);
  font-style: normal;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: justify;
  hyphens: auto;
}
.col h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  font-weight: 600;
}
.col p { margin-bottom: 14px; }

.diagram {
  text-align: center;
  margin: 24px auto;
  max-width: 720px;
}
.caption {
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.figure {
  font-family: ui-monospace, "Menlo", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 16px;
  background: rgba(255,255,255,0.4);
  overflow-x: auto;
  white-space: pre;
}

.downloads { padding: 32px 0; max-width: 720px; margin: 0 auto; }
.downloads h2 {
  font-size: 32px;
  font-style: italic;
  margin-bottom: 4px;
}
.downloads ul { list-style: none; margin-top: 16px; }
.downloads li { border-bottom: 1px solid var(--rule); }
.downloads li:first-child { border-top: 2px solid var(--rule); }
.downloads a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border: 0;
  font-size: 17px;
}
.downloads .plat { font-weight: 700; color: var(--ink); }
.downloads .arch { color: var(--muted); font-style: italic; font-size: 14px; }
.downloads a:hover { padding-left: 8px; transition: padding 0.15s; }
.downloads a:hover .plat { color: var(--accent); }

.colophon {
  max-width: var(--measure);
  margin: 48px auto;
  padding: 0 32px 64px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: justify;
}
.colophon p { margin-bottom: 12px; }
.colophon strong { color: var(--ink); font-variant: small-caps; letter-spacing: 0.04em; }
.colophon .end { text-align: center; margin-top: 32px; font-style: italic; }

::selection { background: var(--accent); color: var(--paper); }

@media (max-width: 720px) {
  .columns { grid-template-columns: 1fr; gap: 24px; }
  .dek { font-size: 36px; }
  .figure { font-size: 9px; }
}
