/* ══════════════════════════════════════════════════════════════════
   Colours live here. Change these and the whole site changes.
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bg:        #f4f1ec;   /* page background */
  --ink:       #14141a;   /* main text */
  --muted:     #6b6960;   /* quiet text */
  --line:      #14141a;   /* card borders */

  --amber:     #ffc95c;
  --violet:    #c9b8ff;
  --lime:      #c6e86b;
  --sky:       #9ed8ff;
  --rose:      #ffb3c7;
  --inkcard:   #14141a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #101014;
    --ink:   #f2efe9;
    --muted: #918d84;
    --line:  #2c2c34;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Base
   ══════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════════════
   Masthead
   ══════════════════════════════════════════════════════════════════ */
.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 4px 10px;
}

.masthead-domain {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════════════════════ */
.hero { padding: 64px 0 72px; max-width: 720px; }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-line {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
}

/* ══════════════════════════════════════════════════════════════════
   Project grid
   ══════════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding-bottom: 80px;
}

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

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
  padding: 34px;
  border-radius: 26px;
  border: 2px solid var(--line);
  color: #14141a;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Only the cards that are links react to the mouse */
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 -4px var(--line);
}

a.card:hover .arrow { transform: translateX(6px); }

.card-amber   { background: var(--amber); }
.card-violet  { background: var(--violet); }
.card-lime    { background: var(--lime); }
.card-sky     { background: var(--sky); }
.card-rose    { background: var(--rose); }
.card-ink     { background: var(--inkcard); color: #f2efe9; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  opacity: 0.65;
}

.card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
}

.card p {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 30em;
  opacity: 0.82;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 2px solid rgba(20, 20, 26, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.18s ease;
}

.status {
  border: 2px solid rgba(20, 20, 26, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

/* ══════════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════════ */
footer {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
