/* Shared styles for every page: typography (Geist) and the step / scope tiles. */

:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

/* Big display type: Geist reads larger and wider than the old serif, so tighten it.
   !important because most headings carry inline letter-spacing from the original build. */
h1 { letter-spacing: -0.045em !important; font-weight: 300 !important; font-size: clamp(38px, 5.2vw, 72px) !important; line-height: 1.04 !important; }
h2 { letter-spacing: -0.035em !important; }
h1 em, h2 em { font-style: normal; }

/* ── Tiles ────────────────────────────────────────────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}
.tiles--list { grid-template-columns: 1fr; }
/* exactly four tiles: a balanced 2 × 2 instead of 3 + 1 */
@media (min-width: 700px) {
  .tiles:has(> .tile:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 2.6vw, 34px);
  background: #FFFFFF;
  border: 1px solid rgba(14, 59, 46, .12);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .5s var(--ease-house, cubic-bezier(.2, .7, .2, 1)),
              box-shadow .5s var(--ease-house, cubic-bezier(.2, .7, .2, 1)),
              border-color .5s ease;
}
/* soft wash that rises from the bottom corner on hover */
.tile::after {
  content: "";
  position: absolute;
  right: -40%;
  bottom: -60%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 78, .14), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.tile--row { flex-direction: row; align-items: center; gap: 20px; }

.tile-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(31, 92, 69, .08);
  color: #1F5C45;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background .4s ease, color .4s ease;
}
.tile--row .tile-n { margin-bottom: 0; }

.tile h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #0E3B2E;
}
.tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #4a473f;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 59, 46, .2);
    box-shadow: 0 30px 60px -38px rgba(14, 59, 46, .45);
  }
  .tile:hover::after { opacity: 1; }
  .tile:hover .tile-n { background: #0E3B2E; color: #F6F2EA; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile::after, .tile-n { transition: none; }
  .tile:hover { transform: none; }
}
