/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================== THEME VARIABLES =====================
   This is the only place you need to edit colors.
   After you extract a palette from your photo (see README),
   paste the hex values here and the whole site updates.
   ========================================================= */
:root {
  --bg:        #faf7f3;   /* warm off-white — update from your photo palette */
  --text:      #1a1511;   /* deep warm brown-black */
  --muted:     #7a6a5a;   /* medium warm grey */
  --accent:    #b85c38;   /* terracotta — swap once you have your photo colors */
  --surface:   #f0ebe3;   /* slightly darker bg for cards */
  --border:    #e4dbd0;   /* soft warm border */
  --max-width: 1000px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding: 0 2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===================== NAV ===================== */
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ===================== MAIN ===================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===================== HERO =====================
   Two-column layout: text left, photo right.
   On mobile it stacks vertically.
   ================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Social icon buttons */
.socials {
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}

/* Photo / GIF container */
.hero-photo-wrapper {
  position: relative;
}

/* Transparent overlay blocks drag-select and makes saving harder */
.hero-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===================== SECTIONS =====================
   All sections share this base style.
   To add a new section: <section id="x" class="section">
   ================================================ */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.section p {
  color: var(--text);
  max-width: 600px;
  margin-bottom: 1rem;
}

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

/* ===================== EXPERIENCE ===================== */
.role {
  margin-bottom: 2rem;
}

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

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.role-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.role-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.role-company {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.role p {
  font-size: 0.95rem;
  max-width: 560px;
}

/* ===================== TESTIMONIALS =====================
   Two-column grid of quote cards.
   To add one: copy a <div class="testimonial"> in the HTML.
   ================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.testimonial {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===================== WRITING ===================== */
.post {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.post:first-of-type {
  border-top: 1px solid var(--border);
}

.post:hover .post-title {
  color: var(--accent);
}

.post-title {
  font-size: 0.95rem;
  transition: color 0.15s;
}

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===================== PROJECTS ===================== */
.project {
  margin-bottom: 1.75rem;
}

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

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.project-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.project-link {
  font-size: 0.8rem;
  color: var(--muted);
}

.project p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===================== FOOTER ===================== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.back-to-top {
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
  display: flex;
}

.back-to-top svg {
  width: 28px;
  height: 28px;
}

.back-to-top:hover {
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 700px) {
  body {
    padding: 0 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 0 2.5rem;
  }

  /* Photo moves above the text on mobile */
  .hero-photo-placeholder,
  .hero-photo {
    order: -1;
    aspect-ratio: 1 / 1;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .role-header {
    flex-direction: column;
    gap: 0.1rem;
  }

  .post {
    flex-direction: column;
    gap: 0.2rem;
  }
}
