/* ============================================================
   style.css — harrison-schatz.com
   Single stylesheet. No preprocessor. No framework.
   ============================================================ */


/* ── 1. RESET & BASE ─────────────────────────────────────── */

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

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.4;
  background-color: #ffffff;
  color: #333333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0000EE;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}


/* ── 2. LAYOUT ───────────────────────────────────────────── */

.container {
  max-width: 970px;
  margin: 0 auto;
  padding: 40px 15px;
}


/* ── 3. DIVIDER ──────────────────────────────────────────── */

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.75), transparent);
  margin: 16px 0;
}


/* ── 4. HERO ─────────────────────────────────────────────── */

#dhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 4px;
}

/* Tagline — the h2 immediately after h1 */
h1 + h2 {
  font-size: 18px;
  font-style: italic;
  color: #999999;
  font-weight: 400;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 12px;
}

.social-links a {
  color: #555555;
  text-decoration: none;
}

.social-links a:hover {
  color: #000000;
}

.currently {
  font-size: 12px;
  color: #999999;
}


/* ── 5. TIMELINE ─────────────────────────────────────────── */

#history {
  margin-bottom: 40px;
}

/* Shared vertical line lives on the wrapper — not on individual entries */
.timeline {
  position: relative;
  margin-left: 140px;
  border-left: 2px solid #cfcfcf;
  padding-left: 16px;
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
}

/* Hollow dot marker — pseudo-element on the shared line.
   left: -(padding-left + border/2 + dot/2) = -(16 + 1 + 5) = -22px
   centers the dot on the border-left line. */
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #cfcfcf;
  background-color: #ffffff;
}

/* Date label — floats left of the line */
.timeline-date {
  position: absolute;
  left: -140px;
  top: 2px;
  width: 100px;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  color: #999999;
}

.timeline-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline-body a {
  display: contents;
}

.timeline-logo {
  flex-shrink: 0;
  height: 56px;
  width: 100px;
  object-fit: contain;
  object-position: left center;
  margin-top: 2px;
}

/* Square logos (Kreg, ChemGrout, Iowa State) — render at full 100x100 */
.timeline-logo--square {
  height: 100px;
  width: 100px;
}

.timeline-entry p {
  font-size: 14px;
  color: #333333;
  line-height: 1.625;
  margin: 0;
}


/* ── 6. BIO & MISC ───────────────────────────────────────── */

#bio,
#misc {
  margin-bottom: 40px;
}


/* Lowercase section headings (bio, misc, cv) */
.section-heading {
  font-size: 18px;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.prose {
  font-size: 14px;
  color: #333333;
  line-height: 1.625;
}

#misc ul {
  list-style: disc;
  list-style-position: inside;
  max-width: 65ch;
  font-size: 14px;
  line-height: 1.625;
}

#misc ul li + li {
  margin-top: 8px;
}


/* ── 7. FOOTER & RESPONSIVE ──────────────────────────────── */

footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #9ca3af;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  margin-left: 4px;
}

footer a:hover {
  color: #374151;
}

/* Breakpoint: 992px (Plan 1 spec) */
@media (max-width: 992px) {
  #dhead {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .timeline {
    margin-left: 110px;
  }

  .timeline-date {
    left: -110px;
    width: 78px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
  }

  .timeline-entry::before {
    left: -22px;
  }

}

/* Breakpoint: 480px — tighten timeline date column further */
@media (max-width: 480px) {
  .headshot {
    width: 135px;
    height: 135px;
  }

  .timeline {
    margin-left: 90px;
  }

  .timeline-date {
    left: -90px;
    width: 62px;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
  }

  .timeline-entry::before {
    left: -22px;
  }

}


/* ── 8. PAGE NAV (sub-pages) ────────────────────────────── */

.page-nav {
  margin-bottom: 48px;
  font-size: 14px;
}

.page-nav a {
  color: #999999;
  text-decoration: none;
}

.page-nav a:hover {
  color: #333333;
}


/* ── 9. PAGE TITLES ─────────────────────────────────────── */

.page-title {
  font-size: 34px;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: #999999;
  margin-bottom: 48px;
}


/* ── 10. BLOG ───────────────────────────────────────────── */

/* Blog index — listing page */
.blog-list {
  margin-bottom: 40px;
}

.blog-entry {
  margin-bottom: 36px;
}

.blog-link {
  font-size: 17px;
  color: #0000EE;
  text-decoration: none;
  display: block;
}

.blog-link:hover {
  text-decoration: underline;
}

.blog-date {
  display: block;
  font-size: 13px;
  color: #999999;
  margin-top: 5px;
}

.blog-subtitle {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-top: 6px;
}

.blog-empty {
  font-size: 14px;
  color: #999999;
  font-style: italic;
}

/* Blog post — individual article */
.post {
  margin-bottom: 40px;
}

.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-date {
  font-size: 14px;
  color: #999999;
}

.post-body {
  max-width: 65ch;
}

.post-body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.post-body h2 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body ul,
.post-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
}

.post-body li + li {
  margin-top: 6px;
}

.post-body blockquote {
  border-left: 3px solid #cfcfcf;
  padding-left: 20px;
  margin: 24px 0;
  color: #555555;
  font-style: italic;
}

.post-body blockquote p {
  color: #555555;
}

.post-body pre {
  background-color: #f6f6f6;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.post-body code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
}

.post-body p code,
.post-body li code {
  background-color: #f6f6f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-body figure {
  margin: 32px 0;
}

.post-body figure img {
  max-width: 100%;
  border-radius: 4px;
}

.post-body figcaption {
  font-size: 13px;
  color: #999999;
  margin-top: 8px;
}

.post-body a {
  color: #0000EE;
}

.post-body hr {
  border: 0;
  height: 1px;
  background-color: #eeeeee;
  margin: 40px 0;
}


/* ── 11. RECIPES ────────────────────────────────────────── */

.recipe-links {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 48px;
}

.recipe-links a {
  color: #999999;
  text-decoration: none;
}

.recipe-links a:hover {
  color: #333333;
}

/* Section label prefix inside anchor links (e.g. "sides —") */
.recipe-links-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbbbbb;
  margin-right: 10px;
}

.recipe-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999999;
  margin-top: 56px;
  margin-bottom: 28px;
}

.recipe {
  margin-bottom: 8px;
}

.recipe-name {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
}

.recipe-content {
  max-width: 65ch;
}

.recipe-content h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999999;
  margin-bottom: 8px;
}

.recipe-content ul {
  list-style: disc;
  list-style-position: inside;
  font-size: 14px;
  line-height: 1.625;
  margin-bottom: 20px;
}

.recipe-content ol {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.625;
  margin-bottom: 16px;
}

.recipe-content ol li + li {
  margin-top: 6px;
}

.recipe-source {
  font-size: 13px;
  color: #bbbbbb;
  margin-top: 16px;
}

.recipe-source a {
  color: #bbbbbb;
}


/* ── 12. PAGE FOOTER & RESPONSIVE ADDITIONS ─────────────── */

.page-footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #9ca3af;
}

.page-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.page-footer a:hover {
  color: #374151;
}

/* Sub-page responsive: 992px */
@media (max-width: 992px) {
  .blog-entry {
    margin-bottom: 28px;
  }
}

/* Sub-page responsive: 480px */
@media (max-width: 480px) {
  .page-title {
    font-size: 28px;
  }

  .post-title {
    font-size: 24px;
  }

  .post-body p {
    font-size: 15px;
  }
}
