/*
Theme Name: Mark McClure Author
Theme URI: https://markmcclurewrites.com
Author: Mark McClure
Description: A minimal author landing page theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcclure-author
*/

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

:root {
  --bg: #0f0e0c;
  --bg-subtle: #161412;
  --text: #d9d0c3;
  --text-muted: #8a8078;
  --accent: #b8845a;
  --accent-dim: rgba(184, 132, 90, 0.15);
  --rule: rgba(217, 208, 195, 0.08);
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

/* ── Layout ── */
.site-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Header / Name ── */
.site-header {
  padding: 6rem 0 3rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.author-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Headshot ── */
.author-photo {
  width: 140px;
  height: 170px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 3px;
  margin-top: 2rem;
  filter: grayscale(30%) contrast(1.05);
  opacity: 0.9;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem 0;
  opacity: 0.6;
}

/* ── Bio ── */
.bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 560px;
}

.bio p {
  margin-bottom: 1.2rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

.bio em {
  font-style: italic;
  color: var(--accent);
}

/* ── Credentials ── */
.credentials {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.credential-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.credential-marker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.credential-text {
  color: var(--text-muted);
}

.credential-text strong {
  color: var(--text);
  font-weight: 400;
}

/* ── Excerpts ── */
.excerpts-section {
  margin: 2.5rem 0;
}

.excerpts-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.excerpt {
  margin-bottom: 2.2rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--accent);
  border-left-color: rgba(184, 132, 90, 0.3);
}

.excerpt:last-child {
  margin-bottom: 0;
}

.excerpt-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.85;
}

.excerpt-source {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── Contact ── */
.contact-section {
  margin: 2rem 0 1rem;
}

.contact-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  margin-bottom: 1.2rem;
}

.contact-email:hover {
  border-bottom-color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.social-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
}

/* ── Newsletter Signup (MailerLite overrides) ── */
.newsletter-section {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.newsletter-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

#mlb2-39305957.ml-form-embedContainer {
  width: 100% !important;
  margin: 0 !important;
}

#mlb2-39305957 .ml-form-embedWrapper {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#mlb2-39305957 .ml-form-embedBody {
  padding: 0 !important;
}

#mlb2-39305957 .ml-form-embedContent {
  display: none !important;
}

#mlb2-39305957 .ml-form-fieldRow input {
  background-color: var(--bg-subtle) !important;
  color: var(--text) !important;
  border-color: rgba(217, 208, 195, 0.12) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  padding: 0.7rem 0.8rem !important;
  max-width: 320px !important;
}

#mlb2-39305957 .ml-form-fieldRow input::placeholder {
  color: var(--text-muted) !important;
}

#mlb2-39305957 .ml-form-embedSubmit button {
  background-color: var(--accent) !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0.7rem 1.5rem !important;
  width: auto !important;
  max-width: 320px !important;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mlb2-39305957 .ml-form-embedSubmit button:hover {
  background-color: #a0724a !important;
}

#mlb2-39305957 .ml-form-embedSubmit {
  margin: 0 !important;
  padding-top: 0.5rem;
}

#mlb2-39305957 .ml-form-successContent h4 {
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

#mlb2-39305957 .ml-form-successContent p {
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
}

/* ── Footer ── */
.site-footer {
  padding: 4rem 0 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── Entrance Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.65s; }
.fade-in:nth-child(6) { animation-delay: 0.75s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .site-header {
    padding: 4rem 0 2rem;
  }

  .author-name {
    font-size: 2.4rem;
  }

  .site-wrapper {
    padding: 0 1.5rem;
  }

  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
