/* Gabriel Fancher — theanswerisfancher.com
   Colors and body font follow The Bitcoin Teacher site.
   Headings use a system serif for a classic, Stoic look. */

:root {
  --orange: #F7931A;
  --orange-dark: #D97A0A;
  --navy: #0B0F19;
  --navy-2: #11172A;
  --white: #FFFFFF;
  --gray-light: #C7CBD6;
  --gray: #8A8FA3;
  --font: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
}

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

a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid rgba(247, 147, 26, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover { color: var(--orange); }

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a:hover { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); color: inherit; }

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover { background: var(--orange-dark); color: var(--navy); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(circle at 12% 18%, rgba(247, 147, 26, 0.14), transparent 45%), var(--navy);
}

.hero-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}

/* Photo placeholder: replace images/gabriel-fancher.jpg to change the portrait. */
.portrait {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 38rem;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }

.section-label {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.mission {
  background: var(--navy-2);
}

.mission-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--white);
  border-left: 3px solid var(--orange);
  padding-left: 20px;
}

.work p,
.contact p {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.work h3,
.projects h3,
.contact h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

.work h3:first-of-type { margin-top: 0; }

/* ===== PROJECTS ===== */
.projects { background: var(--navy-2); }

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
  list-style: none;
}

.project-list li {
  display: flex;
}

.project-list a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 10px;
  padding: 22px 22px 20px;
  flex: 1;
  width: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-list a.card:hover,
.project-list a.card:focus-visible {
  border-color: var(--orange);
  transform: translateY(-2px);
  color: inherit;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.15rem;
}

.card p {
  color: var(--gray-light);
  font-size: 0.98rem;
  margin: 0;
}

.card .more {
  display: inline-block;
  margin-top: 12px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 700;
}

.span-2 { grid-column: 1 / -1; }

.book-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== CONTACT ===== */
.contact-links {
  list-style: none;
  margin-top: 8px;
}

.contact-links li { margin-bottom: 10px; color: var(--gray-light); font-size: 1.05rem; }
.contact-links a { font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(247, 147, 26, 0.25);
  padding: 32px 0 40px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .portrait { width: 200px; height: 200px; }
  .mission-text { text-align: left; }
  .project-list { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .section { padding: 56px 0; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; width: 100%; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .btn { padding: 12px 20px; }
}
