/* ==========================================================================
   Bill Miller's Blog — clean static rebuild
   Faithful reconstruction of the GoDaddy export; no builder runtime.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --black: #000000;
  --panel: #111111;
  --ink: #1b1b1b;
  --text-gray: #919191;
  --post-gray: #5e5e5e;
  --light: #e2e2e2;
  --soft: #f1f1f1;
  --muted: #969696;
  --white: #ffffff;
  --drawer: #f3f3f3;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Open Sans', Arial, sans-serif;
  --content-max: 1160px;
  --side-pad: 84px;
  --col: 725px;
}

/* ---------- Fonts (latin subsets, localized) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/open-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/open-sans-italic.woff2') format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-gray);
  background: var(--black);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; }
ul { margin: 0; padding: 0; }

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

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Visible keyboard focus on dark backgrounds */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Header
   Desktop: logo centered in a bordered box, nav centered below.
   Mobile:  hamburger left, logo centered; full-screen drawer slides in.
   ========================================================================== */
.site-header {
  background: var(--black);
  position: relative;
  z-index: 50;
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.68px;
  line-height: 1.2;
  color: var(--light);
  border: 1px solid var(--light);
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  list-style: none;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--light);
}

/* Mobile menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--light);
}
.menu-toggle svg { display: block; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--drawer);
  z-index: 100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu .menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobile-menu nav { padding-top: 56px; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 24px;
  text-align: left;
}

@media (max-width: 767px) {
  .site-header { position: sticky; top: 0; }
  .header-inner {
    flex-direction: row;
    justify-content: center;
    min-height: 64px;
    padding: 12px 24px;
    gap: 0;
  }
  .header-inner .logo { font-size: 20px; padding: 6px 12px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: stretch;
  background: var(--black);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-media {
  flex: 0 0 40%;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.hero-content {
  flex: 1;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--soft);
  text-align: center;
  max-width: 500px;
  padding: 0 24px;
}

/* Tablet (744-767px, incl. iPad Mini): stack the hero, center image and text block */
@media (max-width: 767px) {
  .hero { flex-direction: column; padding: 0; }
  .hero-media { flex: none; padding: 0 24px; margin-top: 24px; }
  .hero-content { padding: 56px 0; }
  .hero-content h1 { font-size: 32px; max-width: 320px; }
}

/* ==========================================================================
   Content sections (home bio, about, news, blog)
   ========================================================================== */
.content-section {
  background: var(--black);
  padding: 40px 0;
}
.text-col {
  max-width: var(--col);
  margin: 0 auto;
}
.text-col p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-gray);
  margin: 0 0 24px;
}
.text-col p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .content-section { padding: 32px 0; }
  .text-col { padding: 0 24px; }
  .contact-form { padding: 0 24px; }
}

/* In the news */
.page-heading {
  text-align: center;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--light);
}
.news-list {
  list-style: none;
  padding-left: 0;
}
.news-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.news-list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: #999999;
  font-size: 1.1rem;
  line-height: 1;
}
.news-list a {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--white);
  text-decoration: underline;
}

/* Blog index */
.blog-coming-soon {
  background: var(--panel);
  padding: 60px 24px;
  text-align: center;
}
.blog-coming-soon p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #aaaaaa;
}

/* ==========================================================================
   Blog post
   ========================================================================== */
.post-section {
  background: var(--black);
  padding: 40px 0;
}
.post-box {
  background: var(--white);
  max-width: 1112px;
  margin: 0 auto;
  padding: 24px 64px 40px;
}
.post-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.post-crumb a {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
}
.post-crumb a:hover { text-decoration: underline; }
.post-crumb svg { display: block; }

.post-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  max-width: 629px;
}
.post-date {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--black);
  margin: 16px 0 32px;
  max-width: 629px;
}
.post-body {
  max-width: 629px;
}
.post-body p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--post-gray);
  margin: 0 0 16px;
}
.post-body p:last-child { margin-bottom: 0; }
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  max-width: 629px;
}
.post-share p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}
.post-share svg {
  color: var(--ink);
  flex: none;
}

@media (max-width: 767px) {
  .post-section { padding: 24px 0; }
  .post-box { padding: 24px; }
  .post-title { font-size: 26px; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form {
  max-width: var(--col);
  margin: 0 auto;
}
.contact-form h1 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--light);
  margin-bottom: 24px;
}
.form-field {
  position: relative;
  margin-bottom: 24px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--text-gray);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 24px 16px 8px;
}
.form-field input { height: 50px; }
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 2px;
}
.form-field textarea {
  resize: vertical;
  min-height: 146px;
}
.form-field label {
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-gray);
  pointer-events: none;
}
.form-field input:focus {
  border-color: var(--light);
}
.form-field .error-msg {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: #e06060;
}
.form-field.invalid input { border-color: #c0392b; }
.form-field.invalid .error-msg { display: block; }

.form-submit {
  margin: 0 0 32px;
}
.form-submit button {
  width: 100%;
  height: 56px;
  background: var(--white);
  border: 0;
  color: #303030;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.form-submit button:hover { background: var(--light); }
.form-submit button:disabled { opacity: 0.5; cursor: default; }

.form-status {
  display: none;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
}
.form-status.success { color: #16a34a; background: rgba(22, 163, 74, 0.12); }
.form-status.error { color: #dc2626; background: rgba(220, 38, 38, 0.12); }

.recaptcha-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}
.recaptcha-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* ==========================================================================
   Social links (generated: Social-Links-Generator-Microsite, data-social-bar,
   simple-icons 24x24, inline styles carry sizing/colors)
   ========================================================================== */
.social-links {
  padding: 40px 20px;
  background: var(--black);
}
.social-links [data-social-bar] {
  max-width: var(--content-max);
  margin: 0 auto;
}
.social-links [data-social] {
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-links [data-social]:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  padding: 56px 24px;
}
.site-footer p {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  background: var(--black);
  padding: 80px 24px;
  text-align: center;
}
.notfound h1 {
  font-size: 40px;
  color: var(--light);
  margin-bottom: 16px;
}
.notfound p {
  color: var(--text-gray);
  margin: 0 0 16px;
}
.notfound a {
  color: var(--white);
}
