/* ============================================================
   CSMFX — dark, cinematic, fast.
   Palette: dark gray base, deep green + lighter green accents.
   ============================================================ */

:root {
  --bg:        #141815;
  --bg-raised: #1a201c;
  --bg-card:   #1e2620;
  --line:      #2a332c;

  --ink:       #e9ede9;
  --muted:     #98a39a;

  --green-deep:  #1e4d33;   /* dark brand green  */
  --green:       #3f9463;   /* mid accent        */
  --green-light: #6ecb92;   /* lighter brand green */

  --slate:  #4a5560;        /* neutral slate — hatch stripes on personal days */
  --booked: #122e1f;        /* booked day cells */
  /* slate diagonal hatch for personal days */
  --hatch: repeating-linear-gradient(45deg, rgba(74, 85, 96, .6) 0 3px, transparent 3px 7px);

  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.muted { color: var(--muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand img { width: 130px; height: auto; }

.site-nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); align-items: center; }
.site-nav a { color: var(--ink); font-size: .95rem; }
.site-nav a:hover { color: var(--green-light); text-decoration: none; }

.nav-cta {
  padding: .35rem .9rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-light);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.kicker {
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  margin: 0 0 1rem;
}

.lede { max-width: 46ch; color: var(--muted); font-size: 1.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-status {
  margin-top: 1.6rem;
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .9rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.hero-status.is-open   { border-color: var(--green); color: var(--green-light); }
.hero-status.is-booked { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .6rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-solid {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green);
}
.btn-solid:hover { background: var(--green); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-light); }

.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }

/* ---------- sections ---------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-raised {
  max-width: none;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-raised > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin: .2rem 0 0; }

/* ---------- work grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.project-card:hover { border-color: var(--green); transform: translateY(-2px); }

.project-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 140% at 20% 0%, var(--green-deep) 0%, transparent 55%),
    linear-gradient(160deg, #232b26 0%, #161b18 100%);
  color: var(--green-light);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .06em;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }

.project-body { padding: .9rem 1rem 1.1rem; }
.project-body h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.project-meta { color: var(--green-light); font-size: .82rem; margin: 0 0 .5rem; }
.project-body p:last-child { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- about ---------- */

.about-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.skills-head { font-size: 1rem; color: var(--green-light); text-transform: uppercase; letter-spacing: .12em; }

.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li {
  padding: .3rem .8rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
}

/* ---------- calendar ---------- */

.cal-status { min-height: 1.5em; }
.cal-status.is-open   { color: var(--green-light); }
.cal-status.is-booked { color: var(--muted); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  font-size: .9rem;
  color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: .45rem; }

.swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.swatch-open     { background: var(--green); }
.swatch-work     { background: var(--booked); }
.swatch-personal { background: var(--hatch); border: 1px solid #56635a; }

.cal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.cal-month {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.cal-month h3 {
  font-size: .95rem;
  text-align: center;
  margin-bottom: .7rem;
  color: var(--ink);
}

.cal-days, .cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-week {
  margin-bottom: 4px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  text-align: center;
}

.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: .88rem;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--ink);
}
.cal-day.is-empty    { visibility: hidden; }
.cal-day.is-open     { background: var(--green-deep); border-color: var(--green); color: #dff5e7; }
.cal-day.is-work     { background: var(--booked); border-color: transparent; color: #e2e6ea; }
.cal-day.is-personal { background: var(--hatch); border-color: var(--line); color: var(--muted); }
.cal-day.is-past     { opacity: .35; }
.cal-day.is-today    { outline: 2px solid var(--green-light); outline-offset: 1px; }

.cal-note { margin-top: 1.2rem; font-size: .9rem; }

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact p { max-width: 44ch; margin: 0 auto 1.6rem; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer img { opacity: .55; }
.site-footer p { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .about-cols { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: 1fr; }
  .brand img { width: 104px; }
}
