:root {
  --ink: #f1ece3;
  --muted: #c7bcaa;
  --line: rgba(241, 236, 227, 0.16);
  --accent: #8fbde6;
  --accent-2: #d1a374;
  --bg: #14100c;
  --card: rgba(22, 17, 12, 0.62);
  --chip-bg: rgba(241, 236, 227, 0.1);
  --maxw: 700px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(10, 7, 4, 0.74), rgba(10, 7, 4, 0.82)),
    url("assets/library-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

header.site .brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

header.site .social-icons {
  margin-bottom: 0;
  gap: 0.4rem;
}

header.site .social-icons a {
  width: 28px;
  height: 28px;
}

header.site .social-icons a svg {
  width: 13px;
  height: 13px;
}

header.site .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

header.site .brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

header.site nav a:hover,
header.site nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.headline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.social-icons a svg {
  width: 17px;
  height: 17px;
}

.social-icons a:hover {
  background: var(--accent);
  color: #14100c;
  transform: translateY(-1px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chips span {
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.lede {
  font-size: 1.08rem;
}

.skills {
  columns: 2;
  column-gap: 2rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.skills li {
  break-inside: avoid;
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  font-size: 0.95rem;
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.book-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-list li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.book-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.book-list .title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.2rem;
}

.book-list .author {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.6rem;
}

.book-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.affiliate-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.5rem;
}
