:root {
  --paper:      #FFFFFF;   /* white canvas */
  --ink:        #1B1B1B;   /* near-black, matches marker logo */
  --ink-soft:   #55524C;
  --accent:     #159E8C;   /* teal pop */
  --accent-ink: #FFFFFF;
  --alert:      #FBF1C7;   /* soft yellow, notice background */

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --font-hand:    "Caveat", "Comic Sans MS", cursive;

  --hair: 1.6px solid var(--ink);   /* Bennett-style hairline frame */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

a { color: inherit; }

/* the playful italic letter-swap accent (Bennett's stray italics) */
em, .swap {
  font-family: var(--font-hand);
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0;
}

/* ---------- Header (nav) ---------- */
.site-header { padding: 22px 0 10px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  /* zero the container's horizontal padding so the wordmark lines up with the
     hero box, which sits at the container edge (.hero/.section zero it too) */
  padding-left: 0;
  padding-right: 0;
}
.nav-pills { display: flex; gap: 12px; flex: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: var(--hair);
  border-radius: 0;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  transition: background .16s ease, color .16s ease;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill-linkedin { justify-self: end; }
.pill-linkedin:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* green CTA pill, pushed to the far right of the nav (matches the .btn style) */
.pill-cta {
  margin-left: auto;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.wordmark { order: -1; display: inline-flex; align-items: center; text-decoration: none; }
.wordmark-logo { display: block; height: 50px; width: auto; }

/* ---------- Hero (the Bennett composition) ---------- */
.hero { padding: clamp(17px, 4.9vh, 63px) 0 clamp(14px, 2.8vh, 31px); }
.hero-stage { position: relative; }

.tag-chip {
  position: absolute;
  top: -19px;
  right: clamp(16px, 6vw, 90px);
  z-index: 2;
  background: var(--paper);
  border: var(--hair);
  padding: 11px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 15.6px;
}
.tag-chip em { font-family: var(--font-display); font-size: 15.6px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.hero-frame {
  border: var(--hair);
  padding: clamp(36px, 5vw, 58px) clamp(18px, 3.5vw, 44px) clamp(10px, 2.5vw, 26px);
}
.hero-frame-split { display: grid; grid-template-columns: 1fr auto; gap: clamp(8px, 1.4vw, 18px) clamp(24px, 4vw, 56px); align-items: center; --hero-text: clamp(2.25rem, 8.625vw, 6.45rem); }
.hero-frame-split .display { font-size: var(--hero-text); }
/* logo tracks the headline (2 lines ≈ 1.8em tall), scaled 50% larger: 1.8 × 1.5 = 2.7 */
.hero-logo { display: block; height: calc(var(--hero-text) * 2.7); width: auto; }

/* intro copy: full-width row spanning the bottom of the frame, note-box font */
.hero-intro {
  grid-column: 1 / -1;
}
.hero-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.hero-intro p + p {
  margin-top: 1em;
}

@media (max-width: 720px) {
  .hero-frame-split { grid-template-columns: 1fr; justify-items: start; }
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0;
  font-size: clamp(3rem, 11.5vw, 8.6rem);
}
.display .dash { color: var(--ink); font-family: var(--font-display); }
.display em { font-family: var(--font-hand); text-transform: lowercase; }

.hero-lower {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(16px, 2.4vw, 28px);
}
.hero-boxes { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 24px); flex: 1 1 560px; }
.note-box {
  border: var(--hair);
  padding: 16px 20px;
  margin: 0;
  flex: 1 1 220px;
  font-size: 15px;
  line-height: 1.5;
}
.note-box.lead { font-family: var(--font-hand); font-size: 23px; line-height: 1.2; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: var(--hair);
  border-color: var(--accent);
  border-radius: 0;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.btn em { color: var(--accent-ink); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Sections below (same crisp language) ---------- */
.section { padding: clamp(15px, 2.8vw, 36px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 0.95;
  margin: 0;
}
.section-kicker { font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); margin: 0; }

/* "What I do" heading, 10% smaller than the shared section title */
#services .section-title { font-size: clamp(1.71rem, 4.5vw, 3.06rem); }
.section-intro { margin: 0 0 clamp(20px, 3vw, 32px); font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: var(--hair); border-left: var(--hair); }
.card { display: block; border-right: var(--hair); border-bottom: var(--hair); padding: 26px 24px 30px; text-decoration: none; color: inherit; transition: background .16s ease; }
a.card:hover { background: var(--accent); color: var(--accent-ink); }
a.card:hover .card-num,
a.card:hover p { color: var(--accent-ink); }
.card-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); margin-bottom: 8px; }
.card-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin: 0 0 12px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* About */
.about { display: flex; align-items: flex-start; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; }
.about-mark { flex: 0 0 clamp(150px, 24vw, 280px); color: var(--ink); }
.about-mark svg { width: 100%; height: auto; }
.about-mark-img { display: block; width: 100%; height: auto; border: var(--hair); }
.about-body { flex: 1 1 340px; }
.about-body .section-title { margin-bottom: 16px; }
.about-body p { max-width: 58ch; color: var(--ink-soft); }
.about-body ul { max-width: 58ch; color: var(--ink-soft); }
.about-body em { font-size: 1.4641em; text-transform: none; }
.about-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; }

/* Contact */
.contact-frame { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
/* match the "What I do" section title size */
.contact .display-sm { font-size: clamp(1.9rem, 5vw, 3.4rem); }
.display-sm { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-email { font-family: var(--font-body); font-size: 17px; text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact-email:hover { color: var(--accent); }

/* Footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 0 40px; border-top: var(--hair); margin-top: 12px; }
.footer-linkedin { display: inline-flex; color: var(--ink); text-decoration: none; }
.footer-linkedin:hover { color: var(--accent); }
.friday-link { font-family: var(--font-hand); font-size: 24px; text-decoration: none; }
.friday-link strong { color: var(--accent); font-weight: 700; }
.friday-link:hover { color: var(--accent); }
.copyright { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- Nav active state ---------- */
.pill-active, .pill-active:hover { background: var(--ink); color: var(--paper); }

/* ---------- Portfolio filters ---------- */
/* hidden without JS, where the buttons would do nothing */
.work-filters { display: none; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(18px, 2.5vw, 28px); }
.has-js .work-filters { display: flex; }
.work-filters .pill { color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; }
/* these two must outrank the rule above, which beats .pill-active on specificity */
.work-filters .pill:hover,
.work-filters .pill-active { color: var(--paper); }
.work-card[hidden] { display: none; }
.work-empty { margin: 0; padding: 22px 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.work-empty a { color: var(--accent); }

/* ---------- Portfolio card grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}
.work-card {
  display: flex;
  flex-direction: column;
  border: var(--hair);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
a.work-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.work-thumb { display: block; border-bottom: var(--hair); }
.work-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.work-body { display: flex; flex-direction: column; gap: 7px; padding: 22px 22px 24px; }
.work-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.work-subtitle { font-family: var(--font-hand); font-size: 20px; line-height: 1; color: var(--accent); }
.work-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.work-link { margin-top: 6px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
a.work-card:hover .work-link { color: var(--accent); }

/* ---------- Project detail page ---------- */
/* zero the container padding like .hero/.section/.header-inner do, so the
   page content lines up with the nav above it */
.project { padding: 0 0 24px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); }
.back-link:hover { color: var(--accent); }

.project-hero { margin: 22px 0 clamp(24px, 4vw, 44px); }
.tag-inline { position: static; display: inline-block; right: auto; top: auto; margin-bottom: 18px; }
.project-title { margin: 0 0 14px; }
.project-subtitle { font-family: var(--font-hand); font-size: clamp(22px, 3vw, 30px); line-height: 1.15; max-width: 42ch; margin: 0 0 26px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: var(--hair); border-left: var(--hair); margin: 0; }
.meta-cell { border-right: var(--hair); border-bottom: var(--hair); padding: 15px 20px; }
.meta-cell dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.meta-cell dd { margin: 0; font-size: 15px; }

.project-figure { margin: 0 0 clamp(28px, 4vw, 48px); border: var(--hair); }
.project-figure img { display: block; width: 100%; height: auto; }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1; margin: 36px 0 12px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0 0; padding: 16px 24px; border-left: 4px solid var(--accent); font-family: var(--font-hand); font-size: 24px; line-height: 1.3; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--ink-soft); }

.project-more { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: var(--hair); }
.project-more .work-link { color: var(--ink); }
.project-more .work-link:hover { color: var(--accent); }

/* ---------- Notice (inline status banner) ---------- */
.notice {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border: var(--hair);
  background: var(--alert);
  padding: 16px 20px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: 15px;
  line-height: 1.5;
}
.notice-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 15.6px;
  color: var(--accent);
  flex: none;
}
.notice p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tag-chip { position: static; display: inline-block; margin-bottom: 14px; right: auto; top: auto; }
}
@media (max-width: 720px) {
  .header-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .wordmark { order: -1; justify-self: auto; }
  .nav-pills { flex-wrap: wrap; justify-content: center; justify-self: auto; flex: 0 1 auto; width: 100%; }
  .pill-linkedin { justify-self: auto; }
  .pill-cta { margin-left: 0; }
  .contact-frame { flex-direction: column; align-items: flex-start; }
}
