/* Design tokens, base, and layout for the static portfolio.
 *
 * Three @layer blocks in source order so the cascade resolves predictably:
 *   @layer tokens   — CSS custom properties on :root (the only place raw
 *                     px / em / rem / hex values are allowed, plus the
 *                     user-preference overrides that re-declare them).
 *   @layer base     — modern reset, body typography, focus-visible ring,
 *                     and the skip-link visually-hidden pattern from
 *                     the html-skeleton phase (which this file replaces).
 *   @layer layout   — sticky header, nav pattern, four sections,
 *                     responsive grid for projects, two-column switch
 *                     for about. Every property value here
 *                     resolves to a var(--token); the only raw px values
 *                     are intrinsic 1px borders and the @media query
 *                     conditions (which CSS does not allow to read from
 *                     var()). The @media values match --bp-sm / --bp-md
 *                     / --bp-lg from @layer tokens so they cannot drift.
 */

@layer tokens {
  :root {
    /* color */
    --color-bg: #0b0b12;
    --color-bg-elevated: #15151f;
    --color-fg: #f5f5f7;
    --color-accent: #6d5ef8;
    --color-accent-hover: #8177fa;
    --color-muted: #94a3b8;
    --color-border: #26262f;
    --color-on-accent: #ffffff;
    --color-on-badge: #05050a;
    --color-positive: #86efac;

    /* space scale (4-based, predictable multiples) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    /* fluid type scale via clamp(min, fluid, max) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --fs-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
    --fs-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);

    /* radii */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-pill: 999px;

    /* shadows */
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.12);

    /* motion */
    --motion-fast: 150ms;
    --motion-medium: 300ms;

    /* layout extras */
    --focus-outline-width: 2px;
    --focus-outline-offset: var(--space-1);
    --container-max: 80rem;

    /* breakpoints — referenced by @media queries below */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 960px;
  }

  /* Reduced motion: zero out the motion tokens so every transition /
   * animation duration that resolves through them collapses to instant. */
  @media (prefers-reduced-motion: reduce) {
    :root {
      --motion-fast: 0ms;
      --motion-medium: 0ms;
    }
  }
}

@layer base {
  /* modern reset */
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; }
  html { font-size: 100%; }

  body {
    color: var(--color-fg);
    background: var(--color-bg);
    font-size: var(--fs-md);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
  }

  /* token-derived focus indicator — the only outline rule, replaces any
   * default browser outline so focus rings survive the reset */
  :focus-visible {
    outline: var(--focus-outline-width) solid var(--color-accent);
    outline-offset: var(--focus-outline-offset);
  }

  /* skip-link — visually hidden until focus, uses clip/clip-path pattern
   * (not display:none, visibility:hidden, or aria-hidden) so screen readers
   * still announce it. Restores to a fixed position on focus. */
  .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .skip-link:focus,
  .skip-link:focus-visible {
    position: fixed;
    left: var(--space-4);
    top: var(--space-4);
    width: auto;
    height: auto;
    padding: var(--space-2) var(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    background: var(--color-bg);
    color: var(--color-fg);
    border: var(--focus-outline-width) solid var(--color-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }
}

@layer layout {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* sticky header */
  body > header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .site-title { font-weight: 600; font-size: var(--fs-lg); }
  .site-title a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-fg);
    text-decoration: none;
  }
  .site-title a:hover,
  .site-title a:focus-visible { color: var(--color-accent); }
  .site-title a svg {
    width: 1.1em;
    height: 1.1em;
  }

  /* nav-toggle — progressive enhancement: hidden by default, revealed
   * once the composition root sets body[data-js-ready] (the entry-index
   * phase sets this attribute on DOMContentLoaded so JS-driven nav
   * behaviour is available). With JS disabled, the toggle stays hidden
   * and the nav menu stays fully expanded below. */
  #nav-toggle {
    display: none;
  }

  /* nav menu — visible by default (no-JS users get a full nav).
   * Once JS is ready AND on mobile, the menu collapses into a dropdown
   * panel revealed when body[data-nav-open] is set by createNavToggle. */
  #primary-nav ul {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #primary-nav a {
    color: var(--color-fg);
    text-decoration: none;
    font-size: var(--fs-md);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }
  #primary-nav a:hover,
  #primary-nav a:focus-visible {
    color: var(--color-accent);
  }

  /* main content area — capped so line length stays readable on wide viewports */
  main {
    flex: 1;
    padding: var(--space-6) var(--space-5);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
  }

  /* every section is a block, separated by a hairline rule */
  main > section {
    padding-block: var(--space-7);
    border-bottom: 1px solid var(--color-border);
  }
  main > section:last-of-type {
    border-bottom: none;
  }
  main > section > h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-5);
  }

  /* projects — CSS grid, 1-col / 2-col / 3-col at the named breakpoints.
   * Each card carries a data-accent theme; the accent hue is exposed as
   * --card-accent (with --card-accent-soft for tints) and drives the media
   * wash, the title colour, the hover border and the link/CTA affordances,
   * matching the project-cards design. */
  #projects-list {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .project-card {
    --card-accent: var(--color-accent);
    --card-accent-soft: rgb(109 94 248 / 0.14);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--motion-fast) ease,
      border-color var(--motion-fast) ease,
      transform var(--motion-fast) ease;
    display: flex;
    flex-direction: column;
  }
  .project-card[data-accent="violet"] {
    --card-accent: #8b7ff9;
    --card-accent-soft: rgb(139 127 249 / 0.16);
  }
  .project-card[data-accent="blue"] {
    --card-accent: #5b9df9;
    --card-accent-soft: rgb(91 157 249 / 0.16);
  }
  .project-card[data-accent="green"] {
    --card-accent: #4ade80;
    --card-accent-soft: rgb(74 222 128 / 0.16);
  }
  .project-card[data-accent="amber"] {
    --card-accent: #fbbf24;
    --card-accent-soft: rgb(251 191 36 / 0.16);
  }
  .project-card[data-accent="teal"] {
    --card-accent: #2dd4bf;
    --card-accent-soft: rgb(45 212 191 / 0.16);
  }
  .project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--card-accent);
    transform: translateY(-2px);
  }
  .project-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    /* .project-card is a column flex container, so the media box is a flex
     * item whose automatic min-height would let a tall screenshot stretch
     * the box past its 16/9 ratio. Pin the ratio down with min-height: 0 +
     * overflow: hidden so every card's media area stays the same height. */
    min-height: 0;
    overflow: hidden;
    background:
      linear-gradient(140deg, var(--card-accent-soft), transparent 70%),
      #05050a;
    border-bottom: 1px solid var(--color-border);
    color: var(--card-accent);
  }
  .project-card-media img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  /* Letterbox treatment: the full screenshot is always shown centered over a
   * blurred, zoomed copy of itself, so portrait/square captures are never
   * cropped and the side bars read as intentional framing (same URL, one
   * network request). */
  .project-card-media-bg {
    object-fit: cover;
    transform: scale(1.4);
    filter: blur(30px) saturate(1.3) brightness(0.8);
  }
  .project-card-media-fg {
    object-fit: contain;
    padding: 14px;
    box-sizing: border-box;
  }
  .project-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    /* Fill the card's remaining height so the link row can anchor to the
     * bottom and CTAs line up across a row of uneven cards. */
    flex: 1;
  }
  .project-card-body h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--card-accent);
  }
  .project-card-body > p {
    color: var(--color-muted);
    font-size: var(--fs-sm);
  }
  /* Blurbs range from two lines to ten; clamp to four so the grid stays
   * scannable — the full write-up is one click away in the case study. */
  .project-blurb {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .project-tags li {
    border: 1px solid var(--color-border);
    padding: var(--space-1) var(--space-3);
    background: transparent;
    border-radius: 999px;
    font-size: var(--fs-xs);
    color: var(--color-muted);
    box-shadow: none;
  }
  .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
    /* Anchor the links + case-study CTA to the card bottom. */
    margin-top: auto;
  }
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--card-accent, var(--color-accent));
    border-radius: 999px;
    color: var(--card-accent, var(--color-accent));
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background var(--motion-fast) ease;
  }
  .project-link:hover,
  .project-link:focus-visible {
    background: var(--card-accent-soft, var(--color-bg-elevated));
  }
  .project-link-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
  }
  .project-link-icon svg {
    width: 100%;
    height: 100%;
  }
  .case-study-link-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    margin-left: var(--space-2);
    vertical-align: -0.15em;
    transition: transform var(--motion-fast) ease;
  }
  .case-study-link-icon svg {
    width: 100%;
    height: 100%;
  }
  .case-study-link:hover .case-study-link-icon,
  .case-study-link:focus-visible .case-study-link-icon {
    transform: translateX(3px);
  }

  /* about — 1-col mobile, 2-col at --bp-md */
  #about-content {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
  }

  /* footer — sticky-bottom dark/violet chrome rendered by renderFooter in
   * src/web/render.ts. The element itself inherits the dark background
   * and muted text from body; the social-links row sits above the
   * copyright with a small gap. */
  body > footer {
    padding: var(--space-5);
    text-align: center;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    border-top: 1px solid var(--color-border);
  }
  .footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }
  .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--motion-fast) ease,
      background var(--motion-fast) ease;
  }
  .footer-social-link:hover,
  .footer-social-link:focus-visible {
    color: var(--color-accent);
    background: var(--color-bg-elevated);
  }
  .footer-social-locked {
    cursor: default;
    opacity: 0.4;
  }
  .footer-social-locked:hover {
    color: var(--color-muted);
    background: none;
  }
  .footer-social-icon {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
  }
  .footer-social-icon svg {
    width: 100%;
    height: 100%;
  }
  .footer-copyright {
    margin: 0;
  }

  /* skills + resume mounts — their content is rendered by the web app in
   * later phases; the mounts are block containers so rendered lists / grids
   * flow normally inside their sections. */
  #skills-mount,
  #resume-mount {
    display: block;
  }

  /* about avatar — the source photo is landscape, so object-fit keeps it
   * centered without distortion inside the square 128x128 slot renderAbout
   * emits. The frame uses a 2px violet ring (via box-shadow so it doesn't
   * reflow layout) layered over the existing --shadow-md, ensuring the
   * avatar stays distinguishable against the dark --color-bg. */
  .about-avatar {
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-md);
  }

  /* case-study view — full detail for a single Project; each class below is
   * emitted by renderCaseStudy in src/web/render.ts. */
  .case-study {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .case-study-title {
    font-size: var(--fs-2xl);
  }
  .case-study-meta {
    color: var(--color-muted);
    font-size: var(--fs-sm);
  }
  .case-study-summary {
    font-size: var(--fs-md);
  }
  .case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .case-study-tags li {
    padding: var(--space-1) var(--space-3);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    color: var(--color-muted);
  }
  .case-study-links a,
  .case-study-back {
    color: var(--color-accent);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color var(--motion-fast) ease;
  }
  .case-study-links a:hover,
  .case-study-links a:focus-visible,
  .case-study-back:hover,
  .case-study-back:focus-visible {
    color: var(--color-accent-hover);
    text-decoration: underline;
  }

  /* case-study link inside the projects index card — inherits the card's
   * accent theme, falling back to the global accent outside a card. */
  .case-study-link {
    display: inline-flex;
    align-items: center;
    color: var(--card-accent, var(--color-accent));
    font-weight: 600;
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color var(--motion-fast) ease;
  }
  .case-study-link:hover,
  .case-study-link:focus-visible {
    text-decoration: underline;
  }

  /* interview take-homes — filter tabs above #projects-list, the card
   * placard + badge, and the case-study brief / decision table. All emitted
   * by src/web/render.ts; the filter choice is data-project-filter on
   * #projects-mount, set by bindProjectFilter in src/web/interactions.ts. */
  .project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
  }
  .project-filter-tab {
    font: inherit;
    font-size: var(--fs-sm);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-bg-elevated);
    color: var(--color-fg);
    cursor: pointer;
    transition: background var(--motion-fast) ease,
      border-color var(--motion-fast) ease;
  }
  .project-filter-tab:hover {
    border-color: var(--color-accent);
  }
  .project-filter-tab[aria-pressed="true"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
  }
  .project-filter-count {
    color: var(--color-muted);
    margin-left: var(--space-1);
  }
  .project-filter-tab[aria-pressed="true"] .project-filter-count {
    color: inherit;
  }
  #projects-mount[data-project-filter="side"] .project-card[data-kind="take-home"],
  #projects-mount[data-project-filter="take-home"] .project-card[data-kind="side"] {
    display: none;
  }
  .take-home-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--card-accent, var(--color-accent));
    color: var(--color-on-badge);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .project-card-placard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
  }
  .project-card-placard .take-home-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
  }
  .project-card-placard-company {
    font-size: var(--fs-3xl);
  }
  .project-card-placard-timebox {
    color: var(--color-muted);
    font-size: var(--fs-sm);
  }
  .case-study-brief {
    margin: 0;
    padding-left: var(--space-4);
    border-left: var(--space-1) solid var(--color-accent);
    font-size: var(--fs-lg);
    font-style: italic;
  }
  .case-study-decisions {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
  }
  .case-study-decisions th,
  .case-study-decisions td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
  }
  .case-study-decisions thead th {
    color: var(--color-muted);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .decision-chose {
    color: var(--color-positive);
  }
  .decision-rejected {
    color: var(--color-muted);
  }

  /* skills summary — rendered by renderSkillsSummary in src/web/render.ts;
   * grouped by category with compact tag chips for recruiter scannability. */
  .skills-summary {
    display: grid;
    gap: var(--space-5);
  }
  .skills-category-name {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-3);
  }
  .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .skills-tags li {
    padding: var(--space-1) var(--space-3);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--color-muted);
  }

  /* resume section — rendered by renderResumeSection in src/web/render.ts;
   * a working download link to the real resume PDF. */
  .resume-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .resume-title {
    font-size: var(--fs-lg);
  }
  .resume-summary {
    color: var(--color-muted);
    font-size: var(--fs-md);
  }
  .resume-locked {
    cursor: pointer;
    padding: var(--space-4);
    margin: calc(var(--space-4) * -1);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    transition: background var(--motion-fast) ease,
      border-color var(--motion-fast) ease;
  }
  .resume-locked:hover,
  .resume-locked:focus-visible {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent);
  }
  .resume-locked:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
  .resume-locked-hint {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    color: var(--color-accent);
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  .resume-locked-hint-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
  }
  .resume-locked-hint-icon svg {
    width: 100%;
    height: 100%;
  }
  .resume-download {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: var(--color-accent);
    color: var(--color-on-accent);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--motion-fast) ease;
  }
  .resume-download:hover,
  .resume-download:focus-visible {
    background: var(--color-fg);
  }

  /* ---------- responsive switches ----------
   * The literal values in the @media conditions below match --bp-sm /
   * --bp-md / --bp-lg from @layer tokens. CSS does not allow var()
   * inside @media conditions, so the values must be repeated here.
   * Keeping them aligned with the tokens is what stops the breakpoints
   * from drifting.
   */

  @media (max-width: 767px) {
    .case-study-decisions thead {
      display: none;
    }
    .case-study-decisions tr {
      display: grid;
      padding-block: var(--space-3);
      border-bottom: 1px solid var(--color-border);
    }
    .case-study-decisions th,
    .case-study-decisions td {
      padding: var(--space-1) 0;
      border-bottom: 0;
    }
    /* On mobile + JS ready: reveal the hamburger toggle and collapse the
     * nav into a dropdown panel anchored under the header. The menu is
     * hidden until the user activates the toggle (which sets
     * body[data-nav-open] via the interactions module's createNavToggle). */
    body[data-js-ready] #nav-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid var(--color-border);
      color: var(--color-fg);
      cursor: pointer;
      padding: var(--space-2) var(--space-4);
      border-radius: var(--radius-sm);
      font-size: var(--fs-sm);
      font-family: inherit;
      transition: border-color var(--motion-fast) ease;
    }
    body[data-js-ready] #nav-toggle:hover,
    body[data-js-ready] #nav-toggle:focus-visible {
      border-color: var(--color-accent);
    }
    body[data-js-ready] #primary-nav ul {
      display: none;
      position: absolute;
      top: 100%;
      right: var(--space-4);
      left: var(--space-4);
      flex-direction: column;
      gap: var(--space-2);
      padding: var(--space-4);
      background: var(--color-bg);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
    }
    body[data-js-ready][data-nav-open] #primary-nav ul {
      display: flex;
    }
  }

  @media (min-width: 640px) {
    #projects-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 768px) {
    #about-content {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (min-width: 960px) {
    #projects-list {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}