/*
 * Site-specific overrides on top of Poole + Hyde.
 * Kept separate so the upstream theme files stay untouched.
 */

:root {
  --accent: #b5476b;
  --accent-hover: #8f2f51;
  --text: #4a4a4a;
  --heading: #222;
  --muted: #8a8a8a;
  --bg: #fdfcfb;
  --surface: #f4f1ee;
  --border: #e6e1dc;
  --sidebar-bg: #1f1b24;
}


/* Base */
body {
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
strong {
  color: var(--heading);
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .15em;
  transition: color .15s, text-decoration-color .15s;
}
a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--accent);
  color: #fff;
}
hr {
  border-top-color: var(--border);
  border-bottom-color: transparent;
}
blockquote {
  color: var(--muted);
  border-left-color: var(--border);
}
code,
pre,
.message,
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  background-color: var(--surface);
}
th, td {
  border-color: var(--border);
}
.message {
  color: var(--text);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

/* Sidebar */
.sidebar {
  background-color: var(--sidebar-bg);
  color: rgba(255, 255, 255, .6);
}
.sidebar a {
  color: #fff;
}
.sidebar-about h1 a {
  text-decoration: none;
}
.sidebar .lead a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
}
.sidebar-nav-item {
  position: relative;
  padding-left: 0;
  transition: padding-left .15s, color .15s;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: none;
  padding-left: .5rem;
}
.sidebar-nav-item.active {
  color: #f6a5bf;
}

/* Posts and pages */
.post-title,
.page-title {
  color: var(--heading);
}
.post-title a {
  color: var(--heading);
  text-decoration: none;
}
.post-title a:hover {
  color: var(--accent);
}
.post-date {
  color: var(--muted);
}
.post + .post {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.related {
  border-top-color: var(--border);
}
.related-posts li a:hover,
.related-posts li a:hover small {
  color: var(--accent);
}
.related-posts li small {
  color: var(--muted);
}
.pagination {
  color: var(--muted);
}
.pagination-item {
  border-color: var(--border);
}
a.pagination-item {
  text-decoration: none;
}
a.pagination-item:hover {
  background-color: var(--surface);
}

/* Media */
img {
  border-radius: 6px;
}
.profile-photo {
  float: right;
  width: 160px;
  height: 160px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
@media (max-width: 30em) {
  .profile-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }
}
.embed,
iframe,
embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 6px;
}

/* Social icons */
.social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social a {
  display: inline-flex;
  color: rgba(255, 255, 255, .7);
  transition: color .15s, transform .15s;
}
.social a:hover,
.social a:focus {
  color: #fff;
  transform: translateY(-2px);
}
.social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}
@media (max-width: 48em) {
  .social {
    justify-content: center;
  }
}
