/* Personal presentation layer, kept separate from the original theme. */
:root {
  --paper: #fafaf7;
  --ink: #25343b;
  --muted: #56666d;
  --accent: #216176;
  --rule: #dbe2e1;
}

html, body { background: var(--paper); }
body { color: var(--ink); line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:visited { color: #365e70; }
a:hover { color: #123e4e; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.masthead, #main, .page__footer { animation: none; }
.masthead { border-bottom: 1px solid var(--rule); background: #fff; }
.masthead__inner-wrap { max-width: 1120px; padding: 1.1rem 1.5rem; }
.greedy-nav { background: #fff; }
.greedy-nav a { color: var(--muted); font-size: 0.9rem; }
.greedy-nav .masthead__menu-item--lg a {
  color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em;
}
.greedy-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.greedy-nav .visible-links a:before { background: var(--accent); height: 2px; }
.greedy-nav button { background: var(--accent); border-radius: 4px; }

#main { max-width: 1120px; margin-top: 3.5rem; padding: 0 1.5rem; }
.page__title {
  color: var(--ink); font-size: 2.2rem; font-weight: 650;
  letter-spacing: -0.035em; line-height: 1.18; margin-bottom: 1.6rem;
}
.page__content, .archive { overflow-wrap: break-word; }
.page__content h2, .archive h2 {
  margin-top: 2.3rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule); font-size: 1.25rem;
  font-weight: 600; letter-spacing: -0.015em;
}
.page__content h3, .archive h3 { line-height: 1.45; font-weight: 600; }
.page__content li, .archive li { margin-bottom: 0.65em; }
.page__content ul, .archive ul { padding-left: 1.2em; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--rule); }

.author__avatar img {
  border: 0; padding: 0; width: 148px; max-width: 100%;
  aspect-ratio: 1; object-fit: cover; object-position: center 35%;
}
.sidebar .author__name { font-size: 1.05rem; letter-spacing: -0.02em; }
.author__bio, .author__urls { color: var(--muted); }
.author__urls a { padding-top: 5px; padding-bottom: 5px; }

.archive .btn, .page__content .btn {
  padding: 0.75em 1.15em; margin: 0.25rem 0.5rem 0.5rem 0;
  background: #e5edef; color: #214c5a !important;
  font-size: 0.9rem; font-weight: 600; line-height: 1.5;
  border-radius: 5px; text-decoration: none;
}
.archive .btn--primary { background: var(--accent); color: #fff !important; }
.archive .btn:hover, .page__content .btn:hover { background: #d3e2e6; }
.archive .btn--primary:hover { background: #17495a; }

.page__footer { background: #f0f3f1; color: var(--muted); border-color: var(--rule); }
.page__footer footer { max-width: 1120px; padding: 1.5rem; }

@media (min-width: 925px) {
  .sidebar { width: 21%; padding-right: 1.5rem; }
  .page, .archive { width: 73%; padding-left: 0; padding-right: 0; }
  .archive--standalone { float: none; width: 100%; max-width: 780px; margin: 0 auto 3rem; }
}

@media (max-width: 924px) {
  #main { margin-top: 2rem; }
  .sidebar { margin-bottom: 2.5rem; }
  .page__title { font-size: 1.85rem; }
  .author__avatar { width: 60px; }
  .author__avatar img { max-width: 60px; }
}

@media (max-width: 480px) {
  #main, .masthead__inner-wrap { padding-left: 1rem; padding-right: 1rem; }
  .masthead__menu-item--lg { padding-right: 0.5rem; }
  .greedy-nav a { margin-left: 0.65rem; margin-right: 0.65rem; }
  .author__content { padding-right: 10px; }
  .page__title { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

@media print {
  html, body { background: #fff; }
  #main { margin-top: 0; }
}
