/* ConnorMakes: layout and base styles from the wellerindustries.com kit, plus blog styles. No JavaScript. */
@font-face { font-family: "Roboto"; src: url(/fonts/roboto-latin-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #111;
  --text: #1b1b1b;
  --muted: #555;
  --line: #e2e2e2;
  --band: #f4f5f3;
  --accent: #1d3b2a;
  --accent-2: #2f6b47;
  --footer: #161916;
  --wrap: 1112px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 "Roboto", Arial, sans-serif; color: var(--muted); background: #fff; }
/* Short pages: main grows so the footer sits at the bottom of the screen */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, .title { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0; }
h3, .h3 { font: 500 21px/1.3 "Roboto", Arial, sans-serif; color: var(--text); margin: 0 0 12px; }
p { margin: 0 0 16px; }
a { color: var(--accent-2); }
a.plain { text-decoration: none; color: var(--text); }
a.plain:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 808px; }
.center { text-align: center; }
.small { font-size: 15px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 4px; padding: 13px 28px;
  font: 700 14px/1.2 "Roboto", Arial, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; }
.btn:hover, .btn:focus-visible { background: var(--accent-2); border-color: var(--accent-2); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }

/* Section titles with the short rule underneath */
.title { font-size: 40px; text-align: center; }
.title::after { content: ""; display: block; width: 50px; height: 2px; background: var(--accent-2); margin: 24px auto 36px; }
.lead { font-size: 19px; text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section { padding: 56px 0 64px; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.header-inner { max-width: none; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 8px 48px; }
.logo { font: 600 26px/1 "Montserrat", Arial, sans-serif; color: var(--ink); text-decoration: none; letter-spacing: .3px; }
.logo span { color: var(--accent-2); }
.nav-wide { display: flex; gap: 32px; }
.nav-wide a, .menu nav a { font: 400 14px/1 "Roboto", Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text); text-decoration: none; }
.nav-wide a:hover, .menu nav a:hover { text-decoration: underline; }
.nav-wide a[aria-current], .menu nav a[aria-current] { font-weight: 700; color: #000; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: #000; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.menu nav a { padding: 18px 24px; border-bottom: 1px solid var(--line); }

/* Home: banner photo with the site name */
.hero { position: relative; background: #3b3b34; }
.hero-img { width: 100%; height: 440px; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 1; color: #fff; }
.hero-text h1 { color: #fff; font-size: 56px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-text p { font-size: 20px; max-width: 520px; margin: 8px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; border-radius: 3px; background: var(--band); }
.post-card h2 { margin-bottom: 10px; }
.post-card p { font-size: 16px; margin-bottom: 0; }
.post-meta { font-size: 14px; letter-spacing: .4px; color: var(--muted); margin-bottom: 8px; }
.post-meta a { color: var(--accent-2); }
.post-card .post-meta { margin-bottom: 6px; }

/* Single post */
.post-title { font-size: 38px; margin-bottom: 28px; }
.lead-img { margin: 0 0 32px; }
.prose { color: var(--text); }
.prose h2, .prose h3, .prose h4, .prose h5 { font-family: "Montserrat", Arial, sans-serif; font-weight: 600; color: var(--ink); margin: 36px 0 12px; line-height: 1.3; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; } .prose h4, .prose h5 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-2); color: var(--muted); }
.prose img { margin: 8px auto; border-radius: 3px; }
.prose p > a > img, .prose figure img { margin: 8px auto; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose .gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.prose .gallery li { margin: 0; }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.prose .video video { width: 100%; background: #000; border-radius: 3px; }
.prose .yt a { display: block; position: relative; text-decoration: none; background: #111; border-radius: 3px; overflow: hidden; max-width: 640px; margin: 0 auto; }
.prose .yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; opacity: .85; }
.prose .yt-label { display: block; padding: 12px 16px; color: #fff; font-weight: 500; }
.prose .yt-label::before { content: "\25B6"; display: inline-block; margin-right: 10px; color: #f33; }
.prose .yt a:hover img { opacity: 1; }
.prose .ext-img { display: block; font-size: 14px; color: var(--muted); font-style: italic; text-align: center; margin: 12px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.post-nav a span { display: block; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.post-nav a:hover { color: var(--accent-2); }
.post-nav .newer { grid-column: 2; text-align: right; }

/* Footer */
.site-footer { background: var(--footer); color: #a4a4a4; text-align: center; padding: 48px 24px 56px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 28px; }
.site-footer nav a { color: #f7f7f7; text-decoration: none; text-transform: uppercase; letter-spacing: 1.2px; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact a { color: #c9c9c9; text-decoration: none; font-size: 16px; margin: 0 8px; }
.copyright { font-size: 14px; margin: 0; }

/* Laptop and smaller */
@media (max-width: 1100px) {
  .header-inner { padding: 8px 24px; }
  .nav-wide { gap: 20px; }
}
/* Tablet and phone */
@media (max-width: 900px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .logo { font-size: 22px; }
  .header-inner { min-height: 60px; }
  .title { font-size: 30px; }
  .title::after { margin: 18px auto 26px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .hero-img { height: 320px; }
  .hero-text { bottom: 28px; }
  .hero-text h1 { font-size: 38px; }
  .hero-text p { font-size: 17px; }
  .post-title { font-size: 30px; }
  .lead { font-size: 17px; }
  .section { padding: 40px 0 48px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { grid-column: 1; text-align: left; }
  .prose .gallery { grid-template-columns: 1fr; }
}
