/* ============================================
   geofftrembley.com — Main Stylesheet
   ============================================ */

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

:root {
  --bg:         #FAFAF8;
  --text:       #1A1A1A;
  --muted:      #6B6B6B;
  --accent:     #BF5700;
  --divider:    #E8E8E4;
  --max-width:  1100px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; padding: 0.5rem 0; }
}

/* --- Hero (Home) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-split {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 480px;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.cta-link:hover { opacity: 0.6; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(12%);
  background: var(--divider);
}

@media (max-width: 820px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
  }
  .hero-photo {
    max-width: 320px;
  }
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--divider);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* --- Thesis page --- */
.thesis-body {
  max-width: 740px;
  padding: 4rem 0 3rem;
}

.thesis-body p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.thesis-body p strong {
  font-weight: 600;
}

.thesis-punch {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent) !important;
  font-size: 1.1rem !important;
}

.thesis-beliefs {
  max-width: 740px;
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--divider);
}

.beliefs-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.belief-block {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.belief-block h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.belief-block p {
  margin-bottom: 1rem;
  line-height: 1.85;
  font-size: 1.05rem;
}
.belief-block p:last-child { margin-bottom: 0; }


/* --- About (legacy, kept for reference) --- */
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  padding: 4rem 0;
  align-items: start;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-photo {
  position: sticky;
  top: 5rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
}

.about-bio h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.about-bio h2:first-child { margin-top: 0; }

.about-bio p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-bio p strong { color: var(--text); font-weight: 600; }

.principles {
  margin: 2rem 0;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.principles li {
  list-style: none;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* --- Articles list --- */
.articles-list {
  padding: 3rem 0;
}

.article-entry {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}

.article-entry:first-child { border-top: 1px solid var(--divider); }

.article-date {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 80px;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.article-body h2 a:hover { color: var(--accent); }

.article-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 580px) {
  .article-entry { flex-direction: column; gap: 0.5rem; }
}

/* --- Article page --- */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.article-page .article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.article-page .article-content p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  line-height: 1.85;
}

.article-page .article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.article-page .article-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }

.article-linkedin {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}
.article-linkedin a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}
.article-linkedin a:hover { opacity: 0.7; }

/* --- Work page --- */
.work-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--divider);
}

.work-section h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.work-section p, .work-section li {
  color: var(--muted);
  line-height: 1.8;
}

.repo-list {
  list-style: none;
  margin-top: 1rem;
}

.repo-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.95rem;
}

.repo-list a { color: var(--accent); }
.repo-list a:hover { text-decoration: underline; }

.competencies {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 2;
}

.competencies span {
  display: inline-block;
  margin-right: 0.5rem;
}

.competencies span::after { content: " ·"; }
.competencies span:last-child::after { content: ""; }

/* --- Contact page --- */
.contact-page {
  padding: 8rem 0 6rem;
  max-width: 580px;
}

.contact-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.contact-page p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.6; }

/* --- Easter Egg --- */
.easter-trigger {
  opacity: 0.25;
  font-size: 0.7rem;
  transition: opacity 0.3s;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.easter-trigger:hover { opacity: 0.6; }

.easter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.easter-modal.open { display: flex; }

.easter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(4px);
}

.easter-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: easterIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.easter-content img {
  max-width: min(320px, 80vw);
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.easter-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.easter-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

@keyframes easterIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--divider);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-whisper {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: #C8C8C2;
  font-style: italic;
  letter-spacing: 0.03em;
  padding-top: 1rem;
  margin-top: 0.25rem;
}

/* --- Print --- */
@media print {
  nav { display: none !important; }
  .page-header { padding-top: 2rem; }
  strong, .thesis-punch { -webkit-print-color-adjust: exact; color-adjust: exact; }
}

/* ============================================
   VARIANT 1 — SUBTLE POLISH (additions)
   ============================================ */

/* Nav: animated underline on hover/active */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links { gap: 2.1rem; }

/* Hero: a touch more presence + quiet entry */
.hero-name { font-size: clamp(3.2rem, 7.4vw, 5.8rem); }
.hero-text > * { animation: riseIn 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }
.hero-text .hero-subtitle { animation-delay: 0.08s; }
.hero-photo { animation: riseIn 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.12s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Subtle scroll cue under the hero */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.scroll-cue span { display: block; text-align: center; margin-top: 0.4rem; font-size: 0.9rem; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero { position: relative; }

/* Easter seal (replaces missing badge.png) */
.easter-seal {
  width: min(320px, 80vw);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.55));
  animation: sealSpin 0.9s cubic-bezier(0.2,0.7,0.2,1) both;
}
@keyframes sealSpin { from { opacity: 0; transform: rotate(-12deg) scale(0.82); } to { opacity: 1; transform: none; } }

/* Footer easter trigger */
.footer-inner { position: relative; }
.easter-trigger {
  margin-left: 0.75rem;
  color: var(--divider);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, transform 0.3s;
}
.easter-trigger:hover { color: var(--accent); transform: rotate(90deg); }

/* Cohesion: receipts prose uses body color, not muted (muted reserved for metadata) */
.work-section p { color: var(--text); }

/* One body measure per page: receipts text matches the 740px essay column.
   Section dividers stay full container width (they live on .work-section itself). */
.work-section > h2,
.work-section > p { max-width: 740px; }

/* Execution: embedded track record (the resume IS the execution) */
.track-head { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; flex-wrap:wrap; margin-bottom:2.25rem; max-width:740px; }
.track-head h2 { margin:0; }
.job-block { max-width:740px; margin-bottom:2.75rem; }
.job-block:last-child { margin-bottom:0.5rem; }
.job-head { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; flex-wrap:wrap; border-bottom:1px solid var(--divider); padding-bottom:0.55rem; margin-bottom:1rem; }
.job-head h3 { font-family:var(--font-serif); font-weight:600; font-size:1.3rem; line-height:1.1; margin:0; letter-spacing:0; text-transform:none; }
.job-role { font-family:var(--font-sans); font-size:0.74rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }
.job-block > p { color:var(--text); line-height:1.8; }
.callout { border-left:3px solid var(--accent); background:rgba(191,87,0,0.05); padding:1.1rem 1.4rem; margin-top:1.4rem; }
.callout p { margin:0; color:var(--text); }
.callout .callout-lead { font-weight:500; font-size:1.05rem; line-height:1.6; }
.callout p + p { margin-top:0.7rem; font-size:0.95rem; line-height:1.7; color:var(--muted); }
