/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Container */
.container {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 8px 0;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.nav-links a {
  font-size: 15px;
  color: #1a0dab;
  text-decoration: none;
  margin-right: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

.nav-rule {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 24px;
}

/* Home page two-column layout */
.home-table {
  width: 100%;
  border-collapse: collapse;
}

.photo-col {
  width: 200px;
  vertical-align: top;
  padding-right: 28px;
}

.profile-photo {
  width: 180px;
  border: 1px solid #ddd;
}

.info-col {
  vertical-align: top;
}

.info-col h2:first-child {
  margin-top: 0;
}

/* Typography */
h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

h2 {
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 10px;
}

a {
  color: #1a0dab;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-left: 22px;
  margin-bottom: 12px;
}

li {
  margin-bottom: 6px;
}

/* Main content */
.main-content {
  padding-top: 4px;
}

/* Post date */
.post-date {
  color: #666;
  font-style: italic;
  margin-bottom: 16px;
}

/* Tables */
table {
  border-collapse: collapse;
  margin-bottom: 16px;
}

th, td {
  border: 1px solid #ddd;
  padding: 6px 12px;
  text-align: left;
}

th {
  background: #f5f5f5;
}

/* Notice boxes */
.notice--info,
.notice--success,
.notice--warning,
.notice--danger,
.notice--primary {
  padding: 1em 1.2em;
  margin: 1em 0;
  border-radius: 4px;
  font-size: 0.95em;
}

.notice--info {
  background-color: #e8f4fd;
  border-left: 4px solid #1976d2;
}

.notice--success {
  background-color: #e8f5e9;
  border-left: 4px solid #388e3c;
}

.notice--warning {
  background-color: #fff8e1;
  border-left: 4px solid #f9a825;
}

.notice--danger {
  background-color: #fce4ec;
  border-left: 4px solid #d32f2f;
}

.notice--primary {
  background-color: #f3e5f5;
  border-left: 4px solid #7b1fa2;
}

/* Field set in notices */
.field-set {
  border: 1px solid #ddd;
  padding: 0.8em;
  border-radius: 4px;
  background: #fff;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #ccc;
  margin: 0.5em 0;
  padding: 0.5em 1em;
  color: #555;
}

/* Code blocks */
pre.highlight {
  background: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.9em;
  line-height: 1.5;
}

code {
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.15em 0.3em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Details/summary */
details {
  margin: 0.5em 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
  color: #1976d2;
}

/* Footnotes */
.footnotes {
  font-size: 0.9em;
  border-top: 1px solid #ddd;
  margin-top: 2em;
  padding-top: 1em;
}

/* Bibliography */
.bibliography {
  font-size: 0.9em;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5em 0;
}

/* Responsive */
@media (max-width: 600px) {
  .photo-col {
    display: block;
    width: 100%;
    padding-right: 0;
    padding-bottom: 16px;
    text-align: center;
  }

  .info-col {
    display: block;
    width: 100%;
  }

  .home-table,
  .home-table tbody,
  .home-table tr,
  .home-table td {
    display: block;
    width: 100%;
  }
}
