/* ==========================================================================
   1. RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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


/* ==========================================================================
   2. DESIGN TOKENS — this is your palette, edit freely
   ========================================================================== */

:root {
  /* Colours — from your Adobe Color palette */
  --color-bg:        #29332E; /* near-black green, base background */
  --color-surface:   #2C4A3C; /* dark green, cards / raised sections */
  --color-mid:       #327D5A; /* muted green, borders / secondary text */
  --color-accent-2:  #23B06E; /* mid green, secondary accent */
  --color-accent:    #00E27A; /* bright green, primary accent / CTA */

  --color-text:      #F4F7F5; /* off-white body text on dark bg */
  --color-text-muted: #A9BDB2;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --max-width: 720px;
  --gutter: 24px;
  --radius: 8px;
}


/* ==========================================================================
   3. BASE
   ========================================================================== */

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

/* Visible keyboard focus — don't remove this */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 32px;
}


/* ==========================================================================
   4. LAYOUT HELPERS
   ========================================================================== */

.site-header,
.hero,
.experience,
.contact,
.work, 
.site-footer {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero,
.experience,
.contact, 
.work {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   5. NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-surface);
  z-index: 10;
}

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

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}


/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__blurb {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 52ch;
  margin-bottom: 32px;
}


/* ==========================================================================
   7. EXPERIENCE / ROLE LIST
   ========================================================================== */

.experience {
  padding-top: 64px;
  padding-bottom: 64px;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
}

.role__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.role__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.role__dates {
  color: var(--color-accent);
  font-size: 0.85rem;
  white-space: nowrap;
}

.role__company {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.role__desc {
  font-size: 0.95rem;
}


/* ==========================================================================
   8. WORK
   ========================================================================== */

.work {
  padding-top: 64px;
  padding-bottom: 64px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--color-mid);
}

.work-card__body {
  padding: 20px;
}

.work-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.work-card__tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}


/* ==========================================================================
   9. CONTACT
   ========================================================================== */

.contact {
  padding-top: 64px;
  padding-bottom: 96px;
  text-align: center;
}

.contact__blurb {
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 auto 32px;
}


/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

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

.btn--small {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: var(--color-accent-2);
  color: var(--color-bg);
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-surface);
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}


/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
  .work-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .role__top {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   13. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn--primary:hover,
  .work-card:hover {
    transform: none;
  }
}
