/* ==========================================================================
   Your Brand — main stylesheet
   --------------------------------------------------------------------------
   NON-DEVELOPER GUIDE:
   The block below (":root") holds every color and font for the whole site.
   Change a value here and it updates everywhere. Nothing else in this file
   needs to be touched to re-theme the site.
   ========================================================================== */

:root {
  /* -- Colors ------------------------------------------------------------- */
  --ink:        #171512;   /* main text color                              */
  --ink-soft:   #5c574f;   /* lighter text (captions, secondary lines)     */
  --bg:         #faf9f6;   /* page background                              */
  --surface:    #ffffff;   /* cards / raised areas                         */
  --line:       #e4e0d8;   /* hairline borders                            */
  --accent:     #9a6b4f;   /* buttons, links, highlights                  */
  --accent-ink: #ffffff;   /* text that sits on top of --accent           */

  /* -- Fonts ------------------------------------------------------------- */
  /* To use a Google Font: add its <link> in each .html <head>, then put
     its name first in the list below, e.g. "Poppins", system-ui, ...      */
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* -- Layout ---------------------------------------------------------- */
  --maxw: 1080px;          /* how wide content can get on big screens      */
  --pad:  clamp(1.25rem, 5vw, 3rem);
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

/* ---- Shared layout --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(3rem, 9vw, 6rem); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---- Header / navigation ------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700;
  text-decoration: none; color: var(--ink);
  letter-spacing: .02em;
}
.nav-links {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1rem;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
}

/* ---- Hero -------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 12vw, 7rem); }
.hero p.lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Feature grid (services / "what I do") --------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
}
.card h3 { margin-bottom: .35em; }
.card p  { margin-bottom: 0; color: var(--ink-soft); }

/* ---- Portfolio grid ------------------------------------------ */
.work-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.work-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.work-item img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.work-item .work-body { padding: 1.25rem 1.5rem 1.5rem; }
.work-item h3 { margin-bottom: .25em; }
.work-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- About ------------------------------------------------- */
.about-layout {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 320px) 1fr;
  align-items: start;
}
.about-layout img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--line); }
@media (max-width: 720px) { .about-layout { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; }

/* ---- Contact form -------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 520px; }
.form label { font-weight: 600; font-size: .9rem; }
.form input, .form textarea {
  width: 100%; font: inherit; color: inherit;
  padding: .75rem .9rem; margin-top: .35rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---- Footer ------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--ink-soft);
  font-size: .9rem;
}
.site-footer .nav { flex-wrap: wrap; }
.social { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.social a { color: var(--ink-soft); text-decoration: none; }
.social a:hover { color: var(--accent); }

/* ---- Small helpers --------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
