:root {
  /* ---- Colors (these are the warm, calm palette) ---- */
  --bg:      #faf6ef;   /* page background — warm cream */
  --text:    #2b2622;   /* main text — warm near-black */
  --muted:   #6f655c;   /* secondary text — warm gray */
  --accent:  #9c4a2f;   /* the one accent color — a quiet rust (links, buttons) */
  --line:    #e6ddcf;   /* thin divider/border lines — soft */
  --card:    #fffdf9;   /* slightly lighter background for project cards */

  /* ---- Fonts ---- */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;  /* big titles */
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;        /* paragraphs */
  --font-label:   'Space Mono', ui-monospace, monospace;          /* small labels */

  /* ---- Layout ---- */
  --max-width: 720px;  /* how wide the text column gets (bigger = wider) */
}

/* ---- Basic reset so things behave predictably ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;        /* in-page links glide instead of jumping */
  scroll-padding-top: 1.5rem;     /* small gap above a section you jump to */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;           /* ~17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Paragraphs get breathing room between them. */
p {
  margin-bottom: 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover {
  border-bottom-color: var(--accent);   /* subtle underline on hover */
}

em {
  font-style: italic;
}


/* ===================== SHARED LAYOUT ===================== */
/* The hero and every section share this centered, max-width column. */
.hero,
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem);
}
.section {
  border-top: 1px solid var(--line);   /* a thin line between sections */
}

/* The small uppercase label used above the name and above each project. */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}
.section__subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
}


/* ===================== HERO ===================== */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 3.75rem);   /* scales with screen size */
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero__subhead {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 34ch;
}
.hero__supporting {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}


/* ===================== BUTTONS ===================== */
.button {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.1rem;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.button:hover {
  background: transparent;
  color: var(--accent);
}
/* A lighter "outline only" version for secondary actions. */
.button--quiet {
  color: var(--accent);
  background: transparent;
}
.button--quiet:hover {
  background: var(--accent);
  color: var(--bg);
}


/* ===================== ABOUT ===================== */
.about__photo {
  float: right;                /* photo sits to the right of the text */
  width: 200px;
  max-width: 40%;
  margin: 0 0 1rem 1.75rem;
  border-radius: 6px;
}


/* ===================== PROJECTS ===================== */
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
}
.project__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
/* The smaller "other work" entries: no box, just text. */
.project--small {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 1.5rem;
}
.project--small .project__title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* The little tag labels under each project. */
.tags {
  list-style: none;            /* no bullet points */
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.tags li {
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}


/* ===================== CONTACT ===================== */
.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.contact-links a {
  font-family: var(--font-label);
  font-size: 0.9rem;
}


/* ===================== FOOTER ===================== */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.8rem;
}


/* ===================== SMALL SCREENS (phones) ===================== */
/* These rules only apply when the screen is narrower than 640px. */
@media (max-width: 640px) {
  .about__photo {
    float: none;               /* on phones, photo goes above the text */
    display: block;
    width: 160px;
    margin: 0 0 1.25rem 0;
  }
}
