/* adistan.ro - Colours come from Vocibus: bg-roman, roman-red-dark, gold. */

/* ---------- fonts (self-hosted, IBM Plex, SIL Open Font License) ---------- */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

/* ---------- tokens ---------- */
:root {
  --bg: #F4F1EA;          /* bg-roman */
  --card: #FBF9F4;
  --ink: #1c1b19;
  --muted: #55524c;
  --rule: #c9c4b6;
  --red: #8a1414;         /* roman-red-dark */
  --gold: #966D00;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: #a9a498; text-underline-offset: 3px; }
a:hover { color: var(--red); text-decoration-color: var(--red); }
img { max-width: 100%; }
p { margin: 0; }
sup { font-size: 70%; line-height: 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 36px 24px 64px; }
main { display: flex; flex-direction: column; gap: 40px; margin-top: 36px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
.red { color: var(--red); }
.gold { color: var(--gold); }

/* ---------- _header.php ---------- */
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.site-nav .home { font-weight: 600; text-decoration: none; }
.site-nav a.active { color: var(--red); text-decoration-color: var(--red); }

/* ---------- _footer.php ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 14px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- shared pieces ---------- */
.label { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.label.red { color: var(--red); }
.label.gold { color: var(--gold); }
.tag { font-weight: 600; white-space: nowrap; }
.tag.red { color: var(--red); }
.tag.gold { color: var(--gold); }
.linkrow { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* key: value block, like e-mail or RFC headers */
.meta { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 2px 16px; font-size: 14px; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.meta.boxed { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; }

.page-title { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.25; }
.crumbs { color: var(--muted); font-size: 13px; }

/* ---------- index.php: intro ---------- */
.intro { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.intro .photo { width: 230px; height: 230px; object-fit: cover; border: 1px solid var(--rule); background: var(--card); }
.intro .who { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.intro h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }

/* ---------- index.php: the stair (alternating steps, like a chat) ---------- */
.stair { display: flex; flex-direction: column; gap: 14px; }
.step { width: 75%; background: var(--card); border: 1px solid var(--rule); padding: 12px 16px; }
.step:nth-child(odd) { border-left: 3px solid var(--ink); }
.step:nth-child(even) { margin-left: auto; border-right: 3px solid var(--gold); }
.step h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.step p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.step .icons { font-size: 18px; line-height: 1.9; /* word-spacing: 6px; */ }

/* ---------- entry lists (Reflectimus index, latest on home) ---------- */
.entries { display: flex; flex-direction: column; gap: 16px; }
.entry { display: flex; flex-direction: column; gap: 2px; }
.entry .line { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.entry .title { font-family: var(--serif); font-size: 19px; line-height: 1.4; }

/* ---------- library.php ---------- */
.tree { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; overflow-x: auto; padding-bottom: 4px; }
.tree .dir { font-weight: 600; margin-top: 14px; }
.tree .dir:first-child { margin-top: 0; }
.summary { font-family: var(--serif); font-size: 18px; line-height: 1.7; display: flex; flex-direction: column; gap: 16px; }

/* ---------- reflectimus.php ---------- */
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand .name { font-size: 22px; font-weight: 600; letter-spacing: 0.22em; color: var(--red); text-decoration: none; }
.brand .motto { font-family: var(--serif); font-style: italic; color: var(--muted); }
.article { font-family: var(--serif); font-size: 19px; line-height: 1.72; display: flex; flex-direction: column; gap: 30px; }
.article section { display: flex; flex-direction: column; gap: 12px; }
.article blockquote { margin: 0; padding-left: 18px; border-left: 1px solid var(--ink); }
.article strong { font-weight: 600; }
.colophon { border-top: 1px solid var(--rule); padding-top: 14px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* ---------- phone ---------- */
@media (max-width: 560px) {
  body { font-size: 14px; }
  .wrap { padding: 24px 16px 48px; }
  .page-title, .intro h1 { font-size: 27px; }
  .step { width: 88%; }
  .article { font-size: 17px; }
  .summary { font-size: 16px; }
  .meta { grid-template-columns: 9ch minmax(0, 1fr); gap: 2px 10px; }
}
