:root {
  --ink: #17201c;
  --muted: #65706a;
  --line: #dfe4df;
  --paper: #f4f4f0;
  --white: #fff;
  --accent: #b8ff45;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.internal-label,
.status {
  border: 1px solid #cbd2cc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro {
  max-width: 760px;
  padding: 96px 0 66px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .96;
}

.lede {
  max-width: 590px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 96px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(23, 32, 28, .10);
}

.project-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.project-image {
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  filter: saturate(.85);
  transition: filter .25s ease, transform .35s ease;
}

.project-card:hover .project-image { filter: saturate(1); }
.project-image--schools { background-image: linear-gradient(0deg, rgba(23,32,28,.1), rgba(23,32,28,.1)), url("wakeschools/assets/hero-bus.jpg"); }
.project-image--waketech { background-image: linear-gradient(0deg, rgba(23,32,28,.1), rgba(23,32,28,.1)), url("waketech/assets/hero-raleigh.webp"); }
.project-image--campaign-portal,
.project-image--admin-portal {
  display: grid;
  place-items: end center;
  padding: 24px 24px 0;
  overflow: hidden;
}
.project-image--campaign-portal { background: linear-gradient(145deg, #d8e8ef, #f5eee3); }
.project-image--admin-portal { background: linear-gradient(145deg, #172a3d, #31536e); }

.portal-preview {
  width: 100%;
  height: 88%;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 14px 35px rgba(23, 32, 28, .22);
}

.portal-preview--frontend { background: #fff; }
.portal-preview-bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #dce5e9;
}
.portal-preview-bar span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #143d59;
  color: #fff;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
}
.portal-preview-bar i {
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: #d7dfe2;
}
.portal-preview-bar i:first-of-type { margin-left: auto; }
.portal-preview-title { padding: 18px 16px 12px; }
.portal-preview-title span,
.portal-preview-title strong,
.admin-preview-heading span,
.admin-preview-heading strong {
  display: block;
  border-radius: 99px;
}
.portal-preview-title span { width: 38px; height: 4px; background: #e28a2b; }
.portal-preview-title strong { width: 120px; height: 9px; margin-top: 8px; background: #143d59; }
.portal-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 0 16px 16px;
}
.portal-calendar b {
  min-width: 0;
  height: 24px;
  border: 1px solid #e3e9eb;
  border-radius: 2px;
  background: #f8fafb;
}
.portal-calendar b:nth-child(11),
.portal-calendar b:nth-child(16),
.portal-calendar b:nth-child(18) { border-color: #9fb7c5; background: #dbe9ef; }
.portal-calendar b:nth-child(13),
.portal-calendar b:nth-child(20) { border-color: #e9b27a; background: #f8dfc6; }

.portal-preview--admin { display: flex; background: #f4f6f7; }
.admin-preview-nav {
  width: 24%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  background: #122738;
}
.admin-preview-nav span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 5px;
  background: #b8ff45;
  color: #122738;
  font-size: 6px;
  font-weight: 900;
}
.admin-preview-nav i { width: 100%; height: 3px; border-radius: 99px; background: #6c7e8b; }
.admin-preview-main { flex: 1; padding: 17px 14px; }
.admin-preview-heading span { width: 32px; height: 3px; background: #7190a4; }
.admin-preview-heading strong { width: 86px; height: 8px; margin-top: 7px; background: #19364a; }
.admin-preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; }
.admin-preview-stats b { height: 35px; border: 1px solid #dce3e7; border-radius: 3px; background: #fff; }
.admin-preview-chart {
  height: 52px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px 0;
  border: 1px solid #dce3e7;
  border-radius: 3px;
  background: #fff;
}
.admin-preview-chart i { flex: 1; min-height: 12px; border-radius: 2px 2px 0 0; background: #315f79; }
.admin-preview-chart i:nth-child(2) { height: 55%; }
.admin-preview-chart i:nth-child(3) { height: 85%; background: #b8ff45; }
.admin-preview-chart i:nth-child(4) { height: 68%; }
.admin-preview-chart i:nth-child(5) { height: 94%; }

.project-content { padding: 25px 25px 27px; }

.project-meta {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  padding: 5px 8px;
  font-size: 9px;
}

h2 {
  margin: 28px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.project-content p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.open-link {
  display: inline-block;
  margin-top: 27px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 31px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 850px) {
  .projects { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; }
  .project-image { height: 100%; aspect-ratio: auto; }
  .intro { padding-top: 74px; }
}

@media (max-width: 580px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .internal-label { display: none; }
  .intro { padding: 62px 0 44px; }
  .projects { gap: 16px; padding-bottom: 64px; }
  .project-card {
    display: block;
    grid-template-columns: none;
  }
  .project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .project-content p { min-height: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-image { transition: none; }
}
