/* Zamilur Rashid personal site styles */
:root {
  --bg: #F1F5EC;
  --surface: #FBFDF8;
  --tag: #DCE7D6;
  --ink: #0E2A20;
  --muted: #4B6157;
  --line: #CAD8CB;
  --line-strong: #9DB3A4;
  --edge: #0E2A20;
  --btn-edge: #0E2A20;
  --drop: #0E2A20;
  --banana: #FFCF33;
  --on-banana: #0E2A20;
  --focus: #1F7A55;
  --leaf: #1A4636;
  --leaf-edge: #0E2A20;
  --on-leaf: #FFF1BF;
  --paper: #FFFBEA;
  --endcard-ink: #0E2A20;
  --rail-glint: #D99A00;
  --cover-morning: #C9B39A;
  --cover-day: #7FA6D6;
  --cover-evening: #C98A57;
  --cover-night: #161B27;
  --cover-chip: rgba(6, 16, 12, 0.6);
  --cover-chip-ink: #FFFFFF;

  --font-display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1D16;
    --surface: #10271E;
    --tag: #1B3A2E;
    --ink: #E6EFE3;
    --muted: #9BB0A3;
    --line: #21413A;
    --line-strong: #3D6456;
    --edge: #3F6A5A;
    --btn-edge: #030A07;
    --drop: #030A07;
    --banana: #FFD44D;
    --on-banana: #0B1D16;
    --focus: #FFD44D;
    --rail-glint: #FFD44D;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1D16;
  --surface: #10271E;
  --tag: #1B3A2E;
  --ink: #E6EFE3;
  --muted: #9BB0A3;
  --line: #21413A;
  --line-strong: #3D6456;
  --edge: #3F6A5A;
  --btn-edge: #030A07;
  --drop: #030A07;
  --banana: #FFD44D;
  --on-banana: #0B1D16;
  --focus: #FFD44D;
  --rail-glint: #FFD44D;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.ico {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  vertical-align: -0.1em;
}

.nowrap { white-space: nowrap; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px 0;
}

.badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--banana);
  color: var(--on-banana);
  border: 2px solid var(--btn-edge);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--drop);
  font: 850 15px/1 var(--font-display);
  font-stretch: 120%;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.home-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font: 500 13.5px/1.35 var(--font-body);
  color: var(--muted);
}

.home-note strong {
  color: var(--ink);
  font-weight: 650;
}

.home-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--banana);
  color: var(--on-banana);
  border: 1.5px solid var(--btn-edge);
}

.home-ico {
  width: 12px;
  height: 12px;
  flex: none;
}

/* Local times, in order from Rochester eastward */

.tz-line {
  --tz-city-h: 14px;
  --tz-off-h: 19px;
  --tz-rail-h: 22px;
  --tz-row-gap: 5px;
  --tz-home-mid: 11px;
  --tz-dot: 12px;
  position: relative;
  display: flex;
  column-gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.tz-line::before,
.tz-line::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--tz-home-mid);
  right: 0;
  top: calc(var(--tz-city-h) + var(--tz-off-h) + 2 * var(--tz-row-gap) + var(--tz-rail-h) / 2 - 1px);
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}

.tz-line::before { background: var(--line-strong); }

.tz-line::after {
  background: linear-gradient(90deg, transparent, var(--rail-glint) 50%, transparent) no-repeat;
  background-size: 160px 100%;
  background-position: -160px 0;
  animation: rail-glint 7s ease-in-out infinite;
}

.tz-stop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: var(--tz-city-h) var(--tz-off-h) var(--tz-rail-h) auto auto;
  row-gap: var(--tz-row-gap);
  justify-items: start;
  align-content: start;
  flex: var(--gap-h, 0) 1 auto;
  white-space: nowrap;
}

.tz-city {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tz-stop.is-home .tz-city {
  color: var(--ink);
  font-weight: 700;
}

.tz-city .sky-ico {
  width: 14px;
  height: 14px;
}

.tz-offset {
  display: block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--ink);
  font: 600 10px/var(--tz-off-h) var(--font-mono);
  letter-spacing: 0.02em;
}

.tz-offset.is-home {
  background: var(--banana);
  color: var(--on-banana);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tz-plus { display: none; }

.tz-rail {
  display: flex;
  align-items: center;
  justify-self: stretch;
}

.tz-stop:last-child .tz-rail {
  background: linear-gradient(90deg, transparent calc(var(--tz-dot) / 2), var(--bg) calc(var(--tz-dot) / 2));
}

.tz-dot {
  position: relative;
  width: var(--tz-dot);
  height: var(--tz-dot);
  flex: none;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}

.tz-dot.is-home {
  display: grid;
  place-items: center;
  width: calc(var(--tz-home-mid) * 2);
  height: calc(var(--tz-home-mid) * 2);
  background: var(--banana);
  color: var(--on-banana);
  border-color: var(--btn-edge);
}

.tz-dot.is-home::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--banana);
  animation: home-ping 2.8s ease-out infinite;
}

.tz-date-short { display: none; }

.tz-wx {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 1px;
  font: 500 11px/1.2 var(--font-mono);
  color: var(--muted);
}

.tz-wx[hidden],
.tz-note[hidden] { display: none; }

.tz-temp {
  font-weight: 700;
  color: var(--ink);
}

.tz-note {
  margin: 12px 0 0;
  font: 500 10.5px/1.3 var(--font-mono);
  color: var(--muted);
  text-align: right;
}

.sky-ico {
  width: 12px;
  height: 12px;
  flex: none;
}

.sky-ico.is-sun { animation: sky-spin 16s linear infinite; }
.sky-ico.is-moon { animation: sky-glow 3.2s ease-in-out infinite; }
.sky-ico.is-wx { animation: wx-bob 4s ease-in-out infinite; }

@keyframes wx-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.clock-time {
  display: inline-flex;
  align-items: flex-start;
  min-height: 1.25em;
  font: 600 14px/1.25 var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}

.clock-time > span {
  display: inline-block;
  height: 1.25em;
  line-height: 1.25em;
}

.clock-time .dg {
  position: relative;
  display: inline-block;
  width: 1ch;
  height: 1.25em;
  overflow: hidden;
}

.clock-time .dg > span {
  position: absolute;
  inset: 0;
  text-align: center;
}

.clock-time .dg > .in { animation: roll-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.clock-time .dg > .out { animation: roll-out 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.clock-time .colon { animation: colon-blink 1s steps(1, end) infinite; }

.clock-date {
  font: 500 11px/1.2 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}

.clock-date.changed { animation: date-pop 0.6s ease-out; }

@keyframes rail-glint {
  0% { background-position: -160px 0; }
  60%, 100% { background-position: calc(100% + 160px) 0; }
}

@keyframes home-ping {
  0% { transform: scale(1); opacity: 0.85; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes roll-in {
  from { transform: translateY(105%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes roll-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-105%); opacity: 0; }
}

@keyframes colon-blink {
  0% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes sky-spin { to { transform: rotate(360deg); } }

@keyframes sky-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes date-pop {
  0% { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas:
    "cover cover"
    "main side";
  margin-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 88px);
  border: 2px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 6px 0 var(--drop);
  overflow: hidden;
}

.hero-cover {
  grid-area: cover;
  position: relative;
  border-bottom: 2px solid var(--edge);
}

/* Cover photo: a Monroe County photo that follows Rochester's time of day */
.cover-frame {
  position: relative;
  aspect-ratio: 16 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--cover-day);
  transition: background-color 0.8s ease;
}

.cover-frame[data-phase="morning"] { background-color: var(--cover-morning); }
.cover-frame[data-phase="evening"] { background-color: var(--cover-evening); }
.cover-frame[data-phase="night"] { background-color: var(--cover-night); }

.cover-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% var(--fy, 50%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cover-img.is-on { opacity: 1; }

.cover-credit {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: grid;
  justify-items: end;
  gap: 2px;
  max-width: min(440px, calc(100% - 240px));
  margin: 0;
  padding: 6px 10px 7px;
  border-radius: 9px;
  background: var(--cover-chip);
  color: var(--cover-chip-ink);
  font: 500 10px/1.4 var(--font-mono);
  text-align: right;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Small map of New York State in the cover's top-right corner, in the same dark chip as the credit */
.cover-map {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 176px;
  padding: 6px 8px 4px;
  border-radius: 12px;
  background: var(--cover-chip);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cover-map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-state {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.map-lake {
  font: italic 500 11px var(--font-body);
  fill: rgba(255, 255, 255, 0.72);
}

.map-label {
  font: 700 12.5px var(--font-mono);
  fill: #FFFFFF;
}

.map-label-home { fill: #FFD44D; }

.map-city { fill: #FFFFFF; }

.map-route {
  fill: none;
  stroke: #FFD44D;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
  opacity: 0.85;
  animation: map-route 2.4s linear infinite;
}

.map-home {
  fill: #FFD44D;
  stroke: #0B1D16;
  stroke-width: 1.8;
}

.map-pulse {
  fill: none;
  stroke: #FFD44D;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 2.4s ease-out infinite;
}

@keyframes map-route { to { stroke-dashoffset: -14; } }

@keyframes map-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.cover-place { font: 700 12.5px/1.3 var(--font-body); }

.cover-place, .cover-by { text-wrap: balance; }

.cover-credit a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cover-credit a:focus-visible { outline-color: var(--cover-chip-ink); }

.hero-photo {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 3.2vw, 36px);
  bottom: -64px;
  width: 160px;
  height: 160px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--btn-edge);
  border-radius: 32px;
  box-shadow: 0 5px 0 var(--drop);
  background: var(--tag);
}

.photo-badge {
  position: absolute;
  right: -12px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2.5px solid var(--btn-edge);
  border-radius: 50%;
  background: var(--banana);
  color: var(--on-banana);
  box-shadow: 0 3px 0 var(--drop);
}

.photo-badge .ico {
  width: 21px;
  height: 21px;
  vertical-align: 0;
}

.photo-badge[data-activity="work"] {
  background: #2E9E5B;
  color: #FFFFFF;
}

.photo-badge[data-activity="sleep"] {
  background: #26335E;
  color: #F6F1D5;
}

.hero-main {
  grid-area: main;
  padding: calc(64px + 24px) clamp(24px, 3.2vw, 36px) clamp(24px, 3.2vw, 36px);
}

.hero .btn {
  padding: 12px 16px;
  font-size: 15.5px;
}

.hero-side {
  grid-area: side;
  padding: 26px clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0;
}

.fave {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--on-banana);
  color: var(--banana);
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 118%;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.name .word {
  display: block;
  white-space: nowrap;
}

/* Short bio under my name: three plain lines, no badges */
.headline {
  display: grid;
  gap: 7px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font: 650 clamp(1.04rem, 1.6vw, 1.18rem)/1.32 var(--font-body);
  letter-spacing: -0.005em;
}

.headline li {
  position: relative;
  padding-left: 20px;
  text-wrap: balance;
}

.headline li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--banana);
  box-shadow: 0 0 0 1.5px var(--btn-edge);
}

/* The four studios under the headline, each linking to its card */
.hero-studios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 420px;
  margin: 12px 0 0 20px;
  padding: 0;
  list-style: none;
}

.hero-studio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.hero-studio:hover {
  border-color: var(--edge);
  transform: translateY(-1px);
}

.hero-studio img {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: var(--tag);
}

.hero-studio-name {
  font: 700 14px/1.2 var(--font-body);
  white-space: nowrap;
}

.studio { scroll-margin-top: 16px; }

/* Studios, last row: the core teams in Dhaka and their next government holiday */
.team-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 20px;
  margin-top: 20px;
  padding-right: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.team-photo {
  grid-row: 1 / 3;
  align-self: stretch;
  position: relative;
  margin: 0;
  min-height: 96px;
  background: var(--tag);
}

.team-photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-here { padding-top: 12px; }
.team-here p { margin: 0; }

.team-here .team-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 6px;
}

.team-now {
  font: 700 17px/1.1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.team-day,
.team-gap {
  font: 500 11px/1.3 var(--font-mono);
  color: var(--muted);
}

.team-gap:empty { display: none; }

.team-here .team-wx {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font: 500 11px/1.3 var(--font-mono);
  color: var(--muted);
}

.team-wx[hidden] { display: none; }

.team-wx .sky-ico {
  width: 14px;
  height: 14px;
}

.team-panel .team-off {
  margin: 0;
  padding: 12px 0 0 20px;
  border-top: 0;
  border-left: 1px dashed var(--line-strong);
}

.team-credit {
  grid-column: 2 / 4;
  margin: 8px 0 10px;
  font: 500 9.5px/1.4 var(--font-mono);
  color: var(--muted);
}

.team-credit a {
  color: inherit;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .team-panel {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 14px;
    padding-right: 14px;
  }
  .team-photo { grid-row: 1 / 4; }
  .team-panel .team-off {
    padding: 10px 0 0;
    margin-top: 10px;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }
  .team-credit { grid-column: 2; }
}

/* The next day off, in the Rochester and Dhaka panels */
.next-off {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.next-off[hidden] { display: none; }

.next-off p { margin: 0; }

.next-off-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

.next-off-label {
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-off-count {
  padding: 3px 7px 2px;
  border-radius: 999px;
  background: var(--banana);
  color: var(--on-banana);
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-off-count:empty { display: none; }

.next-off .next-off-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 6px;
}

.next-off-title { font: 700 15px/1.3 var(--font-body); }

.next-off-date {
  font: 500 11px/1.4 var(--font-mono);
  color: var(--muted);
}

.next-off .next-off-note {
  margin-top: 2px;
  font: 400 14px/1.45 var(--font-body);
  color: var(--muted);
}

.next-off-note:empty { display: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-align: center;
  padding: 13px 18px;
  border: 2px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: 700 16px/1.1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--drop);
  transition: transform 0.09s ease, box-shadow 0.09s ease;
}

.btn .ico { margin-left: 0.45em; vertical-align: -0.12em; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--drop); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--drop); }

.btn-primary {
  background: var(--banana);
  color: var(--on-banana);
  border-color: var(--btn-edge);
}

.btn-leaf {
  background: var(--leaf);
  color: var(--on-leaf);
  border-color: var(--leaf-edge);
  box-shadow: 0 4px 0 var(--leaf-edge);
}

.btn-paper {
  background: var(--paper);
  color: var(--endcard-ink);
  border-color: var(--leaf-edge);
  box-shadow: 0 4px 0 var(--leaf-edge);
}

.btn-leaf:hover, .btn-paper:hover { box-shadow: 0 6px 0 var(--leaf-edge); }
.btn-leaf:active, .btn-paper:active { box-shadow: 0 0 0 var(--leaf-edge); }

/* "Play my prototypes": the chip reads Soon until the first game ships, then shows the count */
.proto-count {
  display: inline-block;
  margin-left: 0.4em;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--tag);
  color: var(--muted);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.proto-count.is-count {
  min-width: 2.1em;
  text-align: center;
  background: var(--banana);
  color: var(--on-banana);
  box-shadow: 0 0 0 1.5px var(--btn-edge);
  letter-spacing: 0;
}

/* ---------- Status panel beside the bio ---------- */

.scene-wrap { min-width: 0; }

/* Work hours status: one line, for example "Working for another 9 hours 6 minutes" */
.shift {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font: 700 14.5px/1.35 var(--font-body);
}

.shift i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.shift[data-state="work"] i {
  background: #2E9E5B;
  animation: shift-pulse 2s ease-in-out infinite;
}

@keyframes shift-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(46, 158, 91, 0.06); }
}

/* Rochester: now and the next three hours, the day's high, low, rain or snow, sunrise and sunset */
.wx-today {
  margin-top: 14px;
  padding: 12px 14px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
}

.wx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
}

.wx-label {
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wx-cond {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1.3 var(--font-mono);
  color: var(--muted);
}

.wx-cond[hidden] { display: none; }

.wx-cond .sky-ico {
  width: 14px;
  height: 14px;
}

.wx-hours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.wx-hours[hidden] { display: none; }

.wx-hour {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px 6px;
  border-radius: 9px;
  background: var(--tag);
}

.wx-hour-time {
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wx-hour:first-child .wx-hour-time {
  font-weight: 700;
  color: var(--ink);
}

.wx-hour-temp {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 700 14px/1.1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wx-hour-temp .sky-ico {
  width: 14px;
  height: 14px;
  flex: none;
}

.wx-hour-rain {
  font: 500 9.5px/1.2 var(--font-mono);
  color: var(--muted);
}

.wx-hour-rain:empty { display: none; }

@media (max-width: 420px) {
  .wx-hour { padding: 7px 6px 6px; }
  .wx-hour-temp { gap: 4px; font-size: 13px; }
}

@media (max-width: 350px) {
  .wx-hours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wx-day {
  margin: 12px 0 0;
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wx-hours:not([hidden]) + .wx-day {
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.wx-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 8px 0 0;
}

.wx-today.is-live .wx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wx-stat[hidden] { display: none; }

.wx-stat dt {
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wx-stat dd {
  margin: 4px 0 0;
  font: 700 17px/1.1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.wx-credit {
  margin: 10px 0 0;
  font: 500 10px/1.3 var(--font-mono);
  color: var(--muted);
}

.wx-credit a,
.tz-note a {
  color: inherit;
  text-underline-offset: 2px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(44px, 6vw, 80px);
  border-top: 2px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 820;
  font-stretch: 112%;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-note {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- Where I'm heading next ---------- */

.section-note a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--banana);
  text-underline-offset: 3px;
}

.trips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trip {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.trip-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 6px;
}

.trip-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trip-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--tag);
  box-shadow: 0 0 0 2px var(--edge);
}

.trip-event {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.trip-name {
  margin: 0;
  font: 700 15px/1.3 var(--font-body);
}

.trip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.trip-count {
  font: 600 12px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.trip-place-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
}

.trip-country {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.trip-city {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.trip-when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
}

.trip-dates { font: 700 17px/1.3 var(--font-mono); }

.trip-countdown {
  font: 700 17px/1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.trip-countdown:empty { display: none; }

.trip-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font: 500 12.5px/1.4 var(--font-mono);
  color: var(--muted);
}

.trip-clock b {
  color: var(--ink);
  font-weight: 700;
}

.trip-skyline {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 70;
  margin-top: auto;
  color: var(--line-strong);
  opacity: 0.55;
}

.trip-next .trip-skyline {
  color: var(--rail-glint);
  opacity: 0.9;
}

.trip-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 20px 14px;
  border-top: 2px solid var(--line-strong);
}

.trip-next .trip-foot {
  background: var(--banana);
  color: var(--on-banana);
  border-top-color: var(--btn-edge);
}

.trip-next .trip-foot .text-link {
  color: var(--on-banana);
  text-decoration-color: currentColor;
}

.trip-venue {
  font-size: 14px;
  color: var(--muted);
}

.trip-next .trip-venue { color: var(--on-banana); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Studios ---------- */

.studios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 20px;
}

.studio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 2px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}

.studio-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-logo {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: var(--tag);
  box-shadow: 0 0 0 2px var(--edge);
}

.studio-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.studio-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 820;
  font-stretch: 112%;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Company name with its LinkedIn link beside it (wraps under the name on narrow cards) */
.studio-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4.5px 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.tag-link:hover { border-color: var(--edge); }

.tag-link .ico {
  width: 10px;
  height: 10px;
  margin: 0;
}

.tag-link .card-ico {
  width: 15px;
  height: 15px;
  margin: -2px 1px -2px 0;
}

.tag {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--tag);
  color: var(--ink);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.role {
  background: var(--banana);
  color: var(--on-banana);
}

.studio p {
  margin: 0;
  max-width: 62ch;
}

/* Key people in a studio: initials, name, role; each links to their LinkedIn profile */
.people {
  display: grid;
  gap: 8px;
}

.people-label {
  margin: 0;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.person:hover { border-color: var(--line-strong); }

.person-initials {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--tag);
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.person-photo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tag);
  box-shadow: 0 0 0 1.5px var(--line);
}

/* With an odd number of people, the first (usually a founder) spans both columns */
.people-list > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

.person-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.person-name { font: 650 14px/1.25 var(--font-body); }

.person-role {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.person .card-ico {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  color: var(--muted);
}

.studio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* ---------- Games ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.game-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  background: var(--tag);
  box-shadow: 0 0 0 1px var(--line);
}

.game h3 {
  margin: 0;
  font: 750 1.15rem/1.2 var(--font-body);
}

.genre {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.publisher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.publisher img {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

.publisher strong {
  color: var(--ink);
  font-weight: 600;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: 600 12px/1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}

.store:hover {
  background: var(--banana);
  border-color: var(--btn-edge);
  color: var(--on-banana);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px/1.4 var(--font-mono);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { text-decoration-color: var(--banana); }

/* Two groups of games: partner-published and studio originals, both in rows of three */
.sub-head.games-head { margin: 34px 0 12px; }
.section-head + .sub-head.games-head { margin-top: 0; }

/* A publisher without a logo on the page gets a plain initial */
.pub-mono {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--tag);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0;
}

/* ---------- Writing & podcasts ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 6px;
}

/* Each card is one link: an illustration band, the source, title and summary,
   and a button-style call to action with the site it opens */
.feature {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--edge);
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 5px 0 var(--drop);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.feature:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--drop); }
.feature:active { transform: translateY(5px); box-shadow: 0 0 0 var(--drop); }
.feature:focus-visible { outline-offset: 4px; border-radius: 20px; }

.feature-art {
  display: block;
  aspect-ratio: 496 / 150;
  border-bottom: 2px solid var(--edge);
  background: var(--banana);
  overflow: hidden;
}

.feature-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Article: a page rising from the band, with four bars */
.fa-rule { fill: none; stroke: var(--on-banana); stroke-width: 1.5; opacity: 0.12; }
.fa-paper { fill: #FFFBEA; stroke: #0E2A20; stroke-width: 2.5; }
.fa-ink { fill: #0E2A20; }
.fa-soft { opacity: 0.35; }
.fa-base { fill: none; stroke: #0E2A20; stroke-width: 2; stroke-linecap: round; opacity: 0.3; }
.fa-bar { fill: #9DB3A4; }
.fa-bar-hi { fill: #1A4636; }
.fa-trend { fill: none; stroke: #0E2A20; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fa-dot { fill: #FFCF33; stroke: #0E2A20; stroke-width: 2.5; }

/* Podcast: a waveform with a play button */
.feature-podcast .feature-art { background: #1A4636; }
.fp-wave { fill: none; stroke: #FFD44D; stroke-width: 6; stroke-linecap: round; opacity: 0.35; }
.fp-played { opacity: 1; }
.fp-shadow { fill: #06140F; }
.fp-button { fill: #FFD44D; stroke: #06140F; stroke-width: 3; }
.fp-play { fill: #0E2A20; }

.feature:hover .fp-button { fill: #FFE38A; }

.feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 8px;
  border-radius: 999px;
  background: var(--tag);
  color: var(--ink);
  font-weight: 700;
}

.feature-kind .ico {
  width: 13px;
  height: 13px;
  vertical-align: 0;
}

.feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.feature-desc {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.feature-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 10px;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 2px solid var(--btn-edge);
  border-radius: 12px;
  background: var(--banana);
  color: var(--on-banana);
  box-shadow: 0 3px 0 var(--btn-edge);
  font: 700 15px/1.1 var(--font-body);
  white-space: nowrap;
}

.feature-cta .ico { transition: transform 0.15s ease; }
.feature:hover .feature-cta .ico { transform: translate(2px, -2px); }

.feature-host {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

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

/* ---------- Listening (Audible, from listening.js) ---------- */

.listen-stats {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.listen-stats[hidden],
.listen-stat[hidden],
.listen-grid[hidden],
.listen-grid > [hidden] { display: none; }

.listen-stat,
.listen-now,
.listen-done {
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.listen-stat { padding: 16px 18px 18px; }

.listen-stat dt,
.listen-label {
  margin: 0;
  font: 500 10.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.listen-stat dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 820;
  font-stretch: 110%;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.listen-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}

.listen-grid.is-single { grid-template-columns: minmax(0, 1fr); }

.listen-now,
.listen-done { padding: 16px 18px 18px; }

.listen-label {
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--ink);
}

.listen-book-now,
.listen-book {
  color: inherit;
  text-decoration: none;
}

.listen-book-now {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.listen-book-now + .listen-book-now { margin-top: 16px; }

.listen-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--tag);
  box-shadow: 0 0 0 1px var(--line);
}

.listen-cover.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.listen-cover.is-empty .ico {
  width: 28px;
  height: 28px;
}

.listen-now-text { min-width: 0; }

.listen-title {
  display: block;
  font: 750 16px/1.25 var(--font-body);
  text-wrap: balance;
}

.listen-author {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.listen-bar {
  display: block;
  height: 6px;
  margin-top: 12px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.listen-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--banana);
}

.listen-progress {
  display: block;
  margin-top: 7px;
  font: 500 11px/1.3 var(--font-mono);
  color: var(--muted);
}

.listen-books {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listen-book {
  display: grid;
  align-content: start;
  gap: 7px;
}

.listen-book .listen-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listen-when {
  margin-top: -3px;
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

a.listen-book-now:hover .listen-title,
a.listen-book:hover .listen-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .listen-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .listen-stats { gap: 8px; }
  .listen-stat { padding: 12px 12px 14px; }
  .listen-stat dt { font-size: 9.5px; letter-spacing: 0.06em; }
  .listen-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listen-book-now { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
}

/* ---------- Things I truly enjoy ---------- */

.enjoy {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}

.enjoy-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 142px;
  padding: 18px 18px 20px;
  border: 2px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--drop);
}

.enjoy-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--tag);
  color: var(--ink);
}

.enjoy-ico .ico {
  width: 24px;
  height: 24px;
  vertical-align: 0;
}

.enjoy-name {
  margin-top: auto;
  font: 750 17px/1.2 var(--font-body);
  text-wrap: balance;
}

.enjoy-item.is-fave {
  background: var(--banana);
  color: var(--on-banana);
  border-color: var(--btn-edge);
}

.enjoy-item.is-fave .enjoy-ico {
  background: rgba(14, 42, 32, 0.12);
  color: var(--on-banana);
}

.enjoy-item .fave {
  position: absolute;
  top: 16px;
  right: 14px;
}

/* Narrower screens: tiles become rows, two across, then one */
@media (max-width: 900px) {
  .enjoy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .enjoy-item:last-child { grid-column: 1 / -1; }
  .enjoy-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;
  }
  .enjoy-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .enjoy-ico .ico {
    width: 20px;
    height: 20px;
  }
  .enjoy-name {
    margin-top: 0;
    font-size: 15.5px;
  }
  .enjoy-item .fave {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .enjoy {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------- Certifications ---------- */

.tracks {
  display: grid;
  border-top: 2px solid var(--line-strong);
}

.track {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 16px 32px;
  align-items: start;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.track-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 4px;
}

.track-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.track-meta {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.track-head .tag { margin-top: 4px; }

.path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.cert {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.path.ordered .cert:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-50%) rotate(-45deg);
}

.cert-level {
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert-abbr {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 110%;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.cert-name {
  font-size: 14.5px;
  line-height: 1.4;
}

.cert-top {
  background: var(--banana);
  color: var(--on-banana);
  border: 2px solid var(--btn-edge);
  box-shadow: 0 4px 0 var(--drop);
}

.cert-top .cert-level { color: var(--on-banana); }

.other-certs { margin-top: 36px; }

.sub-head {
  margin: 0 0 12px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--line-strong);
}

.cert-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.cert-list-name {
  font-weight: 700;
  color: var(--ink);
}

a.cert-list-name {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a.cert-list-name:hover { text-decoration-color: var(--banana); }

.cert-list-issuer {
  color: var(--muted);
  font-size: 15px;
}

.cert-list-year {
  font: 500 12px/1.4 var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Education ---------- */

/* One row per school: initials, degree, school (links to its website) with its LinkedIn, years */
.edu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line-strong);
}

.edu {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.edu-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tag);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.edu-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.edu-degree {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.edu-school {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 15px;
}

.edu-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.edu-link:hover { text-decoration-color: var(--banana); }

.edu-link .ico {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.edu-years {
  font: 500 12px/1.4 var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ---------- End card ---------- */

.endcard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: end;
  margin-top: clamp(8px, 2vw, 16px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--banana);
  color: var(--endcard-ink);
  border: 2px solid var(--btn-edge);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--drop);
}

.endcard .eyebrow { color: var(--endcard-ink); }

.endcard .h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }

.endcard p {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 18px;
}

.endcard :focus-visible { outline-color: var(--endcard-ink); }

.endcard-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 32px 40px;
  font: 500 12px/1.5 var(--font-mono);
  color: var(--muted);
}

.footer a { text-underline-offset: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games > .game:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trips { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .studios {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "main"
      "side";
  }
  .hero-side { padding: 0 clamp(20px, 3.6vw, 44px) clamp(20px, 3.6vw, 32px); }
  .wx-today.is-live .wx-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cover-frame { aspect-ratio: 5 / 2; }
  .track { grid-template-columns: 1fr; }
  .endcard {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .home-note {
    gap: 8px;
    font-size: 12.5px;
  }
  .cover-frame { aspect-ratio: 2 / 1; }
  /* On phones the caption sits under the photo, beside my picture */
  .cover-credit {
    top: calc(100% + 7px);
    right: 12px;
    bottom: auto;
    gap: 1px;
    max-width: calc(100% - 174px);
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font: 500 9.5px/1.3 var(--font-body);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .cover-place {
    font-size: 10.5px;
    color: var(--ink);
  }
  .cover-credit a:focus-visible { outline-color: var(--focus); }
  .hero-photo {
    width: 120px;
    height: 120px;
    bottom: -46px;
  }
  .hero-photo img { border-radius: 26px; }
  .photo-badge {
    width: 36px;
    height: 36px;
    right: -10px;
  }
  .photo-badge .ico {
    width: 18px;
    height: 18px;
  }
  .hero-main { padding-top: calc(46px + 30px); }
  .tz-line {
    --tz-city-h: 12px;
    --tz-off-h: 17px;
    --tz-rail-h: 20px;
    --tz-row-gap: 4px;
    --tz-home-mid: 10px;
    --tz-dot: 11px;
    column-gap: 4px;
    margin-top: 18px;
  }
  .tz-stop {
    flex: 1 1 0;
    min-width: 0;
  }
  .tz-city {
    gap: 3px;
    font-size: clamp(8.5px, 2.4vw, 9.5px);
    font-stretch: 87.5%;
    letter-spacing: 0.03em;
  }
  .tz-city .sky-ico {
    width: 12px;
    height: 12px;
  }
  .tz-offset {
    padding: 0 6px;
    font-size: clamp(8px, 2.35vw, 9px);
    font-stretch: 87.5%;
  }
  .tz-offset.is-home { letter-spacing: 0.02em; }
  .tz-plus { display: inline; }
  .tz-word { display: none; }
  .tz-line .clock-time {
    font-size: clamp(11px, 3.3vw, 13px);
    font-stretch: 87.5%;
  }
  .tz-date-long { display: none; }
  .tz-date-short {
    display: block;
    font-size: clamp(9px, 2.6vw, 10px);
  }
  .tz-wx { font-size: clamp(9.5px, 2.8vw, 11px); }
  .tz-cond { display: none; }
  .tz-note { font-size: 10px; }
  .tz-dot.is-home .home-ico {
    width: 11px;
    height: 11px;
  }
  .studio { padding: 20px; }
  .games { grid-template-columns: 1fr; }
  .features { gap: 20px; }
  .feature-body { padding: 18px 20px 20px; }
  .path {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .path.ordered .cert:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 26px;
    bottom: -17px;
    transform: rotate(45deg);
  }
  .edu {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  .edu-mark {
    width: 40px;
    height: 40px;
  }
  .edu-years {
    grid-column: 2;
    text-align: left;
  }
  .cert-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .cert-list-issuer {
    grid-column: 1;
    grid-row: 2;
  }
  .cert-list-year {
    grid-column: 2;
    grid-row: 1;
  }
}

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

@media (max-width: 360px) {
  .hero-photo {
    width: 104px;
    height: 104px;
    bottom: -40px;
  }
  .hero-photo img { border-radius: 22px; }
  .cover-credit { max-width: calc(100% - 158px); }
  .hero-main { padding-top: calc(40px + 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .feature, .feature-cta .ico, .hero-studio { transition: none; }
  .cover-img, .cover-frame { transition: none; }
  .clock-time .dg > span, .clock-time .colon, .sky-ico, .clock-date.changed { animation: none !important; }
  .tz-line::after, .tz-dot.is-home::after { display: none; }
  .shift i { animation: none !important; }
  .map-route, .map-pulse { animation: none; }
  .map-pulse { display: none; }
}

/* Phones: the studios stack, and the weather stats go back to rows of three */
@media (max-width: 600px) {
  .wx-today.is-live .wx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cover-map {
    top: 8px;
    right: 8px;
    width: 108px;
    padding: 4px 6px 2px;
    border-radius: 10px;
  }
  .map-lake { display: none; }
  .map-label { font-size: 17px; }
}

@media (max-width: 480px) {
  .hero-studios {
    grid-template-columns: 1fr;
    justify-items: start;
    margin-left: 0;
  }
}
