/* Beachhead Studios Blog — circa-2010 WordPress photoblog (light) */
:root {
  --bg: #f5f5f5;
  --bg-page: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #e0e0e0;
  --link: #21759b;
  --link-hover: #d54e21;
  --header-bg: #ffffff;
  --max: 680px;
  --wide: 920px;
  --sidebar: 200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* —— Site chrome (WP 2.x/3.x feel) —— */
.wrap {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}
.narrow {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

header.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 1rem;
  margin-bottom: 0;
}
header.site-header .bar,
header.site-header .wrap {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}
header.site-header .bar {
  display: block;
}

.brand,
.site-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.brand:hover,
.site-title a:hover {
  color: var(--link);
  text-decoration: none;
}
.brand span {
  font-weight: normal;
  color: var(--muted);
}
.site-description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

nav.years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.65rem;
}
nav.years a {
  color: var(--link);
  text-decoration: none;
}
nav.years a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* —— Layout —— */
.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: 2rem;
  padding: 1.5rem 0 2rem;
  align-items: start;
}
@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

main.wrap,
main.content-column {
  padding: 1.25rem 0 2rem;
}
main.narrow {
  padding: 1.25rem 0 2.5rem;
  background: transparent;
}

.content-column {
  max-width: var(--max);
  width: 100%;
}

/* —— Hero / archive intro —— */
.hero {
  padding: 0 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: Georgia, Times, serif;
  font-size: 1.65rem;
  font-weight: normal;
  margin: 0 0 0.4rem;
  color: #111;
}
.hero p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
  line-height: 1.5;
}

/* —— Photo-forward post list (index / year) —— */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.post-list > li,
.post-list .post-entry {
  display: block;
  padding: 0 0 2rem;
  margin: 0 0 2rem;
  border-bottom: 1px solid var(--border);
}
.post-list .meta,
.post-entry .meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.post-list h2,
.post-entry h2 {
  font-family: Georgia, Times, serif;
  font-size: 1.45rem;
  font-weight: normal;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.post-list h2 a,
.post-entry h2 a {
  color: var(--link);
  text-decoration: none;
}
.post-list h2 a:hover,
.post-entry h2 a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Large featured thumbs — NOT 140px grid */
.post-list .thumb,
.post-entry .thumb,
.post-list a.thumb-link img,
.post-entry a.thumb-link img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #eee;
  margin: 0 0 0.85rem;
  border-radius: 0;
}
a.thumb-link {
  display: block;
  margin: 0 0 0.85rem;
}
a.thumb-link:hover img {
  opacity: 0.92;
}

.post-list .excerpt,
.post-entry .excerpt {
  font-family: Georgia, Times, serif;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.post-list .more,
.post-entry .more {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  margin: 0;
}
.post-list .more a,
.post-entry .more a {
  color: var(--link);
}

/* Year pages without thumbs still readable */
.post-list li > div:only-child h2 {
  margin-bottom: 0.25rem;
}

/* —— Single post —— */
article.post {
  padding: 0.5rem 0 2rem;
}
article.post > header {
  margin-bottom: 1.25rem;
}
article.post .date {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
article.post h1 {
  font-family: Georgia, Times, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: normal;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.25;
  color: #111;
}
.byline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero photo under title */
.hero-photo {
  margin: 0 0 1.5rem;
  padding: 0;
}
.hero-photo img {
  width: 100%;
  border: 1px solid var(--border);
  background: #eee;
}
.hero-photo figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.content p { margin: 0 0 1.15rem; }
.content h2, .content h3, .content h4 {
  font-family: Georgia, Times, serif;
  font-weight: normal;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
  color: #111;
}
.content h4 { font-size: 1.05rem; color: var(--muted); }
.content ul, .content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
}

/* Full-width photos in content */
.content figure.post-figure,
.gallery figure,
figure.post-figure {
  margin: 1.5rem 0;
  padding: 0;
}
.content figure.post-figure img,
.gallery img,
figure.post-figure img {
  width: 100%;
  border: 1px solid var(--border);
  background: #eee;
  border-radius: 0;
}
/* Unwrap invalid <p><figure> for display */
.content p:has(> figure) {
  margin: 1.5rem 0;
}

.gallery {
  display: block;
  margin: 1.5rem 0;
}
.gallery figure {
  margin: 0 0 1.5rem;
}
.gallery.single { display: block; }
.gallery figcaption,
figure figcaption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.post-nav {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.post-nav a { color: var(--link); }

.crumb {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--link); }

.year-nav {
  margin: 1rem 0 2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  background: #e8f0f4;
  color: var(--link);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* —— Sidebar —— */
.sidebar {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.25rem;
}
.sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
  margin: 0 0 0.65rem;
  font-weight: bold;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.sidebar li { margin: 0 0 0.35rem; }
.sidebar a { color: var(--link); }
.sidebar p {
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* —— Footer —— */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  margin-top: 1rem;
}
footer.site-footer .wrap {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--link); }
footer.site-footer .muted { color: #999; }
footer.site-footer p { margin: 0 0 0.35rem; }

/* Utility: hide empty placeholder */
.thumb[src=""], .thumb:not([src]) { display: none; }
