/* daniel-weber.info */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1F2A33;
  --muted: #5E6B75;
  --line: #E4DFD8;
  --accent: #B4442E;
  --accent-dark: #8F3322;
  --soft: #F3ECE6;
  --max: 920px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: Georgia, serif; font-size: 1.35rem; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 220px; gap: 2.5rem; align-items: center; margin: 3rem 0 2rem; }
.hero h1 { margin-top: 0; }
.hero .lead { font-size: 1.12rem; color: var(--muted); }
.portrait { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--surface); box-shadow: 0 6px 24px rgba(31,42,51,0.12); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card strong { display: block; font-family: Georgia, serif; font-weight: normal; font-size: 1.15rem; margin-bottom: 0.25rem; }
.card span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* Social */
.social { list-style: none; padding: 0; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social a { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.92rem; }
.social a:hover { border-color: var(--accent); color: var(--accent); }

/* Content */
.content { max-width: 680px; }
.figure { margin: 1.5rem 0; }
.figure img { border-radius: 10px; display: block; }
.figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.callout { background: var(--soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }
.linklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.linklist li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.linklist li span { display: block; color: var(--muted); font-size: 0.92rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-family: inherit; font-weight: 600; }
.timeline ul { margin: 0; padding-left: 1.1rem; }
.timeline li li { margin-bottom: 0.3rem; }
.timeline .note { font-style: italic; font-weight: 600; margin: 0.5rem 0 1.5rem; }
.toolbar { margin: 0 0 1rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-size: 0.95rem; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer a { color: var(--muted); }
.back { margin: 1.5rem 0 0; }
.back a { text-decoration: none; font-size: 0.95rem; }
.back a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
  .hero .portrait { order: -1; width: 150px; }
}
@media print {
  .site-header, .site-footer, .toolbar { display: none; }
  body { background: #fff; }
  .timeline > li::before { border-color: #fff; }
}
