/* ============================================================
   Caoilinn Hughes — profile site
   Design concept: an airport departures board.
   Software that ships to a gate, a platform, a destination —
   fitting language for a mobile engineer moving Android → iOS.
   ============================================================ */

:root {
  --ink: #12141c;
  --paper: #ece8de;
  --paper-raised: #f5f2ea;
  --board: #1b1e2a;
  --board-line: #33384a;
  --flap-amber: #f5a623;
  --signal-blue: #2f6fed;
  --line: #d3cdbd;
  --muted: #6b6558;
  --muted-on-board: #9098b0;

  --font-board: "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

::selection { background: var(--flap-amber); color: var(--ink); }

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

/* ---------- shell / nav ---------- */

.shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--font-board);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.mark span { color: var(--muted); }

.gates {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gates a {
  display: block;
  font-family: var(--font-board);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  color: var(--muted);
  border: 1px solid transparent;
}

.gates a:hover { color: var(--ink); }

.gates a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper-raised);
}

.gates .gate-no { color: var(--signal-blue); margin-right: 6px; }

footer.sitefoot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer.sitefoot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- departure board ---------- */

.board {
  position: relative; 
  background: var(--board);
  border-radius: 6px;
  padding: 28px 24px 20px;
  margin: 36px 0 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06) inset, 0 20px 40px -28px rgba(18,20,28,0.55);
}

.board-id {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.board-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 2px solid var(--flap-amber);
  background: var(--board-line);
}

@media (max-width: 620px) {
  .board-photo { width: 44px; height: 44px; }
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-board);
  color: var(--muted-on-board);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--board-line);
  margin-bottom: 4px;
}

.board-head .blink {
  color: var(--flap-amber);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.flap-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--board-line);
}

.flap-row:last-child { border-bottom: none; }

.flap-label {
  font-family: var(--font-board);
  font-size: 12px;
  color: var(--muted-on-board);
  letter-spacing: 0.04em;
}

.flap-value {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.flap {
  font-family: var(--font-board);
  font-weight: 700;
  font-size: 15px;
  color: var(--flap-amber);
  background: #23273a;
  border-radius: 2px;
  min-width: 1.05em;
  text-align: center;
  padding: 3px 2px;
  line-height: 1.1;
}

.flap.is-space { background: transparent; }

@media (max-width: 620px) {
  .board { padding: 22px 16px 16px; }
  .flap-row { grid-template-columns: 1fr; gap: 4px; }
  .flap { font-size: 13px; }
}

/* ---------- prose sections ---------- */

section.block {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

section.block:last-of-type { border-bottom: none; }

.block h2 {
  font-family: var(--font-board);
  font-size: 14px;
  font-weight: 700;
  color: var(--signal-blue);
  margin: 0 0 18px;
}

.block p, .block li {
  max-width: var(--measure);
  color: var(--ink);
}

.block p + p { margin-top: 14px; }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.now-list li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
}

.now-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--signal-blue);
  border-radius: 50%;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-strip a {
  font-family: var(--font-board);
  font-size: 13px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}

.contact-strip a:hover { border-color: var(--signal-blue); color: var(--signal-blue); }

/* ---------- schedule (work page) ---------- */

.schedule {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr 150px 130px;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row .gate {
  font-family: var(--font-board);
  font-size: 13px;
  color: var(--signal-blue);
}

.schedule-row .dest h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.schedule-row .dest p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}

.schedule-row .dest ul {
  margin: 8px 0 0;
  padding-left: 18px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 14.5px;
}

.schedule-row .dest ul li { margin-bottom: 5px; }

.skill-group + .skill-group { margin-top: 16px; }

.skill-group h3 {
  font-family: var(--font-board);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 400;
}

.skill-group p { margin: 0; }

.schedule-row .when {
  font-family: var(--font-board);
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  font-family: var(--font-board);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 20px;
  justify-self: start;
  white-space: nowrap;
}

.status-pill.active {
  background: rgba(47,111,237,0.12);
  color: var(--signal-blue);
}

.status-pill.landed {
  background: rgba(107,101,88,0.12);
  color: var(--muted);
}

@media (max-width: 720px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .schedule-row .gate { order: -1; }
}

.page-intro {
  padding-top: 36px;
}

.page-intro h1 {
  font-family: var(--font-board);
  font-size: 22px;
  margin: 0 0 10px;
}

.page-intro p {
  max-width: var(--measure);
  color: var(--muted);
}
