/*
Theme Name: Goddard Bio
Theme URI: https://politicalwire.com/
Author: Taegan Goddard
Author URI: https://politicalwire.com/
Description: A minimal, single-column personal bio theme with generous white space. Built for a clean "about me" homepage with optional Projects and Writing sections, a profile photo, and social links. Inspired by simple academic/personal landing pages.
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goddard-bio
Tags: one-column, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --gb-ink: #222222;       /* main text + headings */
  --gb-muted: #555555;     /* tagline, intro paragraphs */
  --gb-faint: #999;        /* dates, footer, icons */
  --gb-rule: #ececec;      /* hairline dividers */
  --gb-bg: #ffffff;        /* page background */
  --gb-accent: #222222;
  --gb-link: #2a6df4;      /* links */
  --gb-maxw: 680px;
  /* Nunito (loaded as a web font) for a consistent rounded look on every platform. */
  --gb-font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gb-serif: Georgia, "Times New Roman", serif;
}

/* ---------------------------------------------------------------------------
   Reset-ish base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gb-bg);
  color: var(--gb-ink);
  font-family: var(--gb-font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

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

/* ---------------------------------------------------------------------------
   Layout
--------------------------------------------------------------------------- */
.gb-container {
  width: 100%;
  max-width: var(--gb-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gb-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gb-main {
  flex: 1 0 auto;
  padding: 8px 0 64px;
}

/* ---------------------------------------------------------------------------
   Header / navigation
--------------------------------------------------------------------------- */
.gb-header {
  padding: 40px 0 8px;
}

.gb-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gb-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.gb-brand a { color: var(--gb-ink); }
.gb-brand a:hover { text-decoration: none; opacity: 0.7; }

.gb-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.gb-menu a {
  color: var(--gb-muted);
  font-size: 16px;
}
.gb-menu a:hover { color: var(--gb-ink); text-decoration: none; }
.gb-menu .current-menu-item > a,
.gb-menu .current_page_item > a {
  color: var(--gb-ink);
  font-weight: 600;
}

/* The name is hidden in the front-page header; keep the menu in the upper right. */
.home .gb-nav { justify-content: flex-end; }
.home .gb-brand { display: none; }

/* Mobile menu toggle (hidden on desktop) */
.gb-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 16px;
  color: var(--gb-muted);
  cursor: pointer;
  padding: 4px 0;
}

/* ---------------------------------------------------------------------------
   Hero / intro (front page)
--------------------------------------------------------------------------- */
.gb-hero {
  text-align: center;
  /* Only set vertical padding so the .gb-container left/right margins are kept. */
  padding-top: 28px;
  padding-bottom: 8px;
}
.gb-hero h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}
.gb-tagline {
  color: var(--gb-muted);
  font-size: 20px;
  margin: 0 0 36px;
}

.gb-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 40px;
  display: block;
}

.gb-bio {
  font-size: 18px;
  line-height: 1.75;
  text-align: left;
}
.gb-bio p { margin: 0 0 1.2em; }

/* ---------------------------------------------------------------------------
   Social links
--------------------------------------------------------------------------- */
.gb-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 44px 0 0;
}
.gb-social a {
  color: var(--gb-faint);
  display: inline-flex;
  transition: color 0.15s ease;
}
.gb-social a:hover { color: var(--gb-ink); text-decoration: none; }
.gb-social svg { width: 22px; height: 22px; display: block; }

/* ---------------------------------------------------------------------------
   Page + post content
--------------------------------------------------------------------------- */
.gb-page-title {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 40px 0 24px;
  font-weight: 700;
}

.gb-content {
  font-size: 18px;
}
.gb-content h2 { font-size: 26px; margin: 1.6em 0 0.5em; letter-spacing: -0.01em; }
.gb-content h3 { font-size: 21px; margin: 1.5em 0 0.4em; }
.gb-content p { margin: 0 0 1.2em; }
.gb-content ul, .gb-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.gb-content li { margin: 0.3em 0; }
.gb-content img { border-radius: 6px; }
.gb-content blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gb-rule);
  color: var(--gb-muted);
  font-style: italic;
}
.gb-content hr {
  border: 0;
  border-top: 1px solid var(--gb-rule);
  margin: 2.4em 0;
}
.gb-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f6f6f6;
  padding: 2px 5px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Site / property list (logos + descriptions)
--------------------------------------------------------------------------- */
.gb-sites {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.gb-site-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--gb-rule);
}
.gb-site-row:first-child { border-top: 1px solid var(--gb-rule); }

.gb-site-logo {
  flex: 0 0 170px;
  display: flex;
  align-items: center;
}
.gb-site-logo img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
}

.gb-site-desc {
  color: var(--gb-muted);
  font-size: 16px;
  line-height: 1.6;
}
.gb-site-desc a { white-space: nowrap; }

@media (max-width: 560px) {
  .gb-site-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .gb-site-logo { flex-basis: auto; }
}

/* ---------------------------------------------------------------------------
   Writing / blog listing
--------------------------------------------------------------------------- */
.gb-post-list { list-style: none; margin: 0; padding: 0; }
.gb-post-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--gb-rule);
}
.gb-post-item:first-child { border-top: 1px solid var(--gb-rule); }
.gb-post-item h2 {
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.gb-post-item h2 a { color: var(--gb-ink); }
.gb-post-item h2 a:hover { color: var(--gb-link); text-decoration: none; }
.gb-post-meta {
  color: var(--gb-faint);
  font-size: 14px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gb-post-excerpt { color: var(--gb-muted); font-size: 16px; margin: 0; }

.gb-single-meta {
  color: var(--gb-faint);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}

/* Pagination */
.gb-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 16px;
}
.gb-pagination a { color: var(--gb-muted); }
.gb-pagination a:hover { color: var(--gb-ink); text-decoration: none; }

/* ---------------------------------------------------------------------------
   Contact form
--------------------------------------------------------------------------- */
.gb-form { margin-top: 8px; }
.gb-form p { margin: 0 0 18px; }
.gb-form label {
  display: block;
  font-size: 14px;
  color: var(--gb-muted);
  margin-bottom: 6px;
}
.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--gb-ink);
  padding: 11px 13px;
  border: 1px solid var(--gb-rule);
  border-radius: 6px;
  background: #fff;
}
.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: var(--gb-muted);
}
.gb-form textarea { resize: vertical; }
.gb-form button {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--gb-ink);
  border: 0;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
}
.gb-form button:hover { opacity: 0.85; }

/* Honeypot: visually hidden, but not display:none (bots skip display:none). */
.gb-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gb-form-success { color: #1a7f37; font-weight: 600; }
.gb-form-error { color: #b4232c; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.gb-footer {
  flex-shrink: 0;
  padding: 32px 0 48px;
  border-top: 1px solid var(--gb-rule);
  color: var(--gb-faint);
  font-size: 14px;
  text-align: center;
}
.gb-footer a { color: var(--gb-muted); }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .gb-hero { padding-top: 16px; }
  .gb-hero h1 { font-size: 34px; }
  .gb-avatar { width: 140px; height: 140px; }

  .gb-menu-toggle { display: block; }
  .gb-menu {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 14px;
  }
  .gb-nav.is-open .gb-menu { display: flex; }
}

/* Accessibility helper */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
