:root {
  --bg: #efece6;
  --card: rgb(255 255 255 / 0.95);
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 ui-sans-serif, system-ui, sans-serif;
}

.page {
  max-width: 62rem;
  margin: 2.5rem auto;
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 25px 50px -12px rgb(15 23 42 / 0.1);
}

/* Header */
.top { background: #1e293b; color: #f8fafc; padding: 1.25rem 3rem 2.25rem; }
.contact {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.8125rem;
}
.contact a { color: #cbd5e1; display: inline-flex; transition: color 0.15s, transform 0.15s; }
.contact a:hover { color: #fff; transform: translateY(-2px); }
.contact svg { width: 1.5rem; height: 1.5rem; }
.top h1 {
  font: 500 3.5rem/1.1 var(--serif);
  margin: 1.5rem 0 0;
  letter-spacing: 0.01em;
}
.top .role {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Body grid */
.cols { display: grid; grid-template-columns: 18rem 1fr; }
.side { padding: 2.5rem 2rem 2.5rem 3rem; border-right: 1px solid var(--line); }
.main { padding: 2.5rem 3rem 2.5rem 2.5rem; }

section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h3 { margin: 0; font-size: 0.9375rem; font-weight: 700; line-height: 1.4; }
p { margin: 0.5rem 0 0; }
ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
li { margin-top: 0.4rem; }
li::marker { color: var(--muted); }
a { color: var(--text); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.sub { margin: 0; font: italic 500 1rem/1.4 var(--serif); color: var(--muted); }
small, .muted { color: var(--muted); }

/* Stats */
.stat + .stat { margin-top: 1rem; }
.stat b { display: block; font: 500 2rem/1 var(--serif); font-variant-numeric: lining-nums; }
.stat span { font-size: 0.8125rem; color: var(--muted); }

/* Entries */
.entry + .entry { margin-top: 1.75rem; }
.entry-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.entry-head time { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.side .entry + .entry { margin-top: 1.1rem; }
.side .entry p { font-size: 0.875rem; }

.principle + .principle { margin-top: 1rem; }
.principle p { font-size: 0.875rem; }

@media (max-width: 52rem) {
  .page { margin: 0; border-radius: 0; }
  .top { padding: 1.25rem 1.5rem 1.75rem; }
  .top h1 { font-size: 2.5rem; }
  .cols { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 2rem 1.5rem; }
  .main { padding: 2rem 1.5rem; }
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .page { margin: 0; max-width: none; border-radius: 0; box-shadow: none; }
  .top { background: #fff; color: #000; padding: 0 0 1rem; }
  .contact a, .top .role { color: #475569; }
  .contact { justify-content: flex-start; }
  .side, .main { padding: 1rem 0; }
  .side { padding-right: 1.25rem; }
  .main { padding-left: 1.25rem; }
  .entry, .principle, section { break-inside: avoid; }
}
