:root {
  /* Site colors */
  --bg-main: #F5E5C5;
  --orange: #FFB03B;
  --brown: #B64926;
  --dark-brown: #5C1600;
  --dark-brown-subtle: rgba(92, 22, 0, 0.4);
  --black: #000;
  --gray: #F0F0F0;
  --white: #FFFFFF;

  /* Typography scale */
  --font-size-small: 0.75rem;    /* 12px - navigation */
  --font-size-base: 1rem;        /* 16px - body/content */
  --font-size-medium: 0.875rem;  /* 14px - nav active */
  --font-size-large: 1.125rem;   /* 18px */
  --font-size-xl: 2.25rem;       /* 36px - site title */
  --font-size-h1: 2.5rem;        /* 40px */
  --font-size-h2: 1.8rem;        /* ~29px */
  --font-size-h3: 1.2rem;        /* ~19px */
}

body {
  margin: 20px 0 0 0;
  padding: 0;
  background: var(--bg-main) url(images/img01.jpg) repeat left top;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--gray);
}

/* Header */
header {
  background: var(--orange) url(images/banner.jpg) no-repeat right top;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

header .header-content {
  padding-left: 35px;
  padding-top: 15px;
}

header .site-title {
  color: var(--black);
  font-size: var(--font-size-xl);
  margin: 0 0 10px 0;
  text-transform: lowercase;
}

/* Header Navigation */
header nav {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

header nav a {
  width: 85px;
  height: 28px;
  padding: 8px 0 0 10px;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  font-size: var(--font-size-small);
  background: rgba(255, 255, 255, 0.3);
}

header nav a.active {
  font-size: var(--font-size-medium);
  background: url(images/img04.jpg);
  background-size: 100% 100%;
  color: var(--white);
  font-weight: normal;
  text-decoration: none;
}

/* main */
main {
  background: var(--brown);
  padding: 25px 30px;
  min-height: 400px;
  font-size: var(--font-size-base);
  color: var(--gray);
}

/* footer */
footer {
  padding: 20px 0;
  text-align: center;
  color: var(--brown);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  transition: color 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--dark-brown);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Basic container */
#wrapper {
  width: 800px;
  margin: 0 auto;
  background: url(images/img03.jpg) repeat-y left top;
  border-left: 1px solid var(--black);
  border-right: 1px solid var(--black);
  min-height: 500px;
}

/* About page styles */
.about-page {
  max-width: 700px;
}

.headshot {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--orange);
  float: right;
  margin: 0 0 20px 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px 0;
  font-weight: normal;
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -2px;
}

h2 {
  font-size: var(--font-size-h2);
  letter-spacing: -1px;
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  line-height: 1.5;
  margin: 0 0 15px 0;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--white);
}

/* Blog styles */
.blog-list {
  max-width: 700px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--dark-brown);
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item .post-title {
  flex-grow: 1;
  font-weight: bold;
  font-size: var(--font-size-large);
}

.blog-item .post-date {
  margin-left: 20px;
  flex-shrink: 0;
}

/* Single blog post */
.blog-post {
  max-width: 700px;
}

.blog-post h1 {
  margin-bottom: 10px;
}

.blog-post .post-date {
  margin-bottom: 30px;
}

.post-content {
  margin: 40px 0px;
}

.blog-post nav {
  padding-top: 30px;
  border-top: 1px solid var(--dark-brown);
  font-weight: normal;
  white-space: nowrap;
  text-decoration: none;
}

/* Inline code blocks */
.post-content code {
  background: var(--dark-brown-subtle);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-small);
}

/* Code blocks */
.post-content pre {
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 4px solid var(--orange);
}

.post-content pre code {
  padding: 0;
}

/* Blog post headings */
.post-content h2 {
  margin: 40px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.post-content h3 {
  margin: 30px 0 15px 0;
}

/* Blockquotes */
.post-content blockquote {
  background: rgba(255, 176, 59, 0.1);
  border-left: 4px solid var(--orange);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
}

