:root {
  --bg: #fff6f8;
  --surface: #ffffff;
  --text: #3b2b31;
  --muted: #8a7178;
  --accent: #d16a8b;
  --accent-soft: #fbdde6;
  --border: #f3d3dd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

main, footer { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

section { padding: 36px 0 12px; }

.tabs { display: flex; gap: 8px; margin-top: 28px; border-bottom: 2px solid var(--accent-soft); }
.tabs button, .tabs .tab-link {
  font: inherit; font-size: 1.1rem; cursor: pointer;
  background: none; border: none; color: var(--muted);
  padding: 8px 20px; margin-bottom: -2px;
  border-bottom: 3px solid transparent;
}
.tabs button:hover, .tabs .tab-link:hover { color: var(--text); text-decoration: none; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: bold; border-bottom-color: var(--accent); }
.panel { padding-top: 24px; min-height: 240px; }
.js .panel { display: none; }
.js .panel.active { display: block; }
.about { display: flex; gap: 28px; align-items: flex-start; padding-top: 56px; }
.portrait { width: 320px; height: auto; flex-shrink: 0; border-radius: 12px; border: 4px solid var(--accent-soft); }

h1 { font-size: 2.2rem; margin: 0 0 4px; }
.role { color: var(--muted); margin-top: 0; }
h2 { font-size: 1.5rem; padding-bottom: 6px; border-bottom: 2px solid var(--accent-soft); }
h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin: 0 0 6px; }

.links a { margin-right: 16px; }

.paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.paper p { margin: 6px 0; }
.note { font-weight: normal; font-style: italic; font-size: 0.85em; color: var(--muted); margin-left: 6px; }

ul.plain { list-style: none; padding: 0; margin: 0 0 18px; }
ul.plain li { padding: 4px 0; }
ul.plain span { color: var(--muted); margin-left: 8px; font-size: 0.9em; }

footer {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  color: var(--muted); font-size: 0.85rem; padding-top: 40px; padding-bottom: 40px;
}
footer p { margin: 0; }
.updated { font-style: italic; font-size: 0.8rem; }

@media (max-width: 560px) {
  .about { flex-direction: column; }
  .portrait { width: 100%; max-width: 280px; }
  h1 { font-size: 1.8rem; }
}
