@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg-page: #f9f8f6;
  --bg-card: #ffffff;
  --text-primary: #2c2a25;
  --text-secondary: #5a5752;
  --text-muted: #5e5b57;
  --accent-sage: #4e6044;
  --accent-terracotta: #8f3a2b;
  --accent-sand: #e6e2d8;
  --border-color: #e2ddd3;
  --font-heading: 'Lora', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

::selection {
  background-color: var(--accent-sand);
  color: var(--text-primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition:
    color 0.2s,
    border-bottom-color 0.2s;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

header {
  margin-bottom: 4rem;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.nav-links a {
  color: var(--text-secondary);
  border-bottom: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-terracotta);
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.note {
  margin-bottom: 3rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-sand);
}

.note--sage {
  border-left-color: var(--accent-sage);
}

.note--terracotta {
  border-left-color: var(--accent-terracotta);
}

.note--dark {
  border-left-color: var(--text-primary);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.note-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.note-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: monospace;
}

.note-description {
  margin-bottom: 0;
  font-size: 1rem;
}

.note p {
  margin-top: 0.5rem;
}

footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.social {
  display: flex;
  gap: 1rem;
}

@media (max-width: 600px) {
  body {
    padding: 2rem 1.5rem;
  }

  .note-header {
    flex-direction: column;
  }
}

.highlight-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.sketch-underline {
  position: absolute;
  bottom: -4px;
  left: -5%;
  width: 110%;
  height: 8px;
  z-index: -1;
  pointer-events: none;
}

.bare-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.bare-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.section-intro {
  margin-bottom: 3rem;
}

.notes-list {
  margin-left: 1rem;
  list-style-type: square;
  margin-top: 0.5rem;
}

.uses-list {
  margin-left: 1rem;
  list-style-type: square;
  margin-top: 1rem;
}

.page-timestamp {
  font-size: 0.95rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.lab-tech {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
