/* limcore.org home page: the shell around the project cards (header, intro, grid, footer), and the
   header and footer of the projects' own pages (/tapmirror/). A card's look is its own:
   assets/projects/<name>/card.css, scoped to .project--<name>. What every card shares is here:
   the size, the grid, focus, hover and the layout of text and picture. */
:root {
  --hub-bg: #0b0b0c;
  --hub-ink: #ececec;
  --hub-muted: #8e8e8e;
  --hub-line: rgba(255, 255, 255, .08);
  --hub-glow: rgba(255, 255, 255, .05);
  --hub-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --hub-bg: #f6f6f4;
    --hub-ink: #151515;
    --hub-muted: #676767;
    --hub-line: rgba(0, 0, 0, .09);
    --hub-glow: rgba(0, 0, 0, .035);
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 60% 40% at 85% 0%, var(--hub-glow), transparent), var(--hub-bg);
  color: var(--hub-ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--hub-ink); outline-offset: 3px; border-radius: 6px; }

.hub-skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--hub-ink); color: var(--hub-bg); text-decoration: none; }
.hub-skip:focus { top: 16px; }

/* ───────── header and footer */
.hub-top, .hub-main, .hub-foot { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.hub-top { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.hub-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.hub-brand svg { width: 34px; height: 34px; }
.hub-lang { display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding-inline: 12px; border: 1px solid var(--hub-line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--hub-muted); transition: color .2s, border-color .2s; }
.hub-lang:hover { color: var(--hub-ink); border-color: var(--hub-muted); }

.hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; margin-top: auto; padding-block: 40px 48px; border-top: 1px solid var(--hub-line); }
.hub-foot-intro p { margin: 8px 0 0; color: var(--hub-muted); font-size: 14px; }
.hub-foot .hub-brand { font-size: 18px; }
.hub-foot .hub-brand svg { width: 28px; height: 28px; }
.hub-foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 14px; }
.hub-foot nav a { color: var(--hub-muted); text-decoration: none; }
.hub-foot nav a:hover { color: var(--hub-ink); }

/* ───────── intro */
.hub-main { padding-bottom: 96px; }
.hub-hero { position: relative; padding: 88px 0 72px; }
.hub-hero > :not(.hub-orbit) { position: relative; max-width: 700px; }
.hub-orbit { position: absolute; right: 0; top: 50%; width: 280px; height: 280px; margin-top: -140px; color: var(--hub-muted); opacity: .5; pointer-events: none; }
@media (max-width: 1040px) { .hub-orbit { width: 220px; height: 220px; margin-top: -110px; right: -20px; opacity: .3; } }
@media (max-width: 760px) { .hub-orbit { display: none; } }
.hub-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--hub-muted); font-size: 13px; letter-spacing: .04em; }
.hub-eyebrow svg { width: 20px; height: 20px; }
.hub-hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; }
.hub-hero h1 span { color: var(--hub-muted); }
.hub-lead { margin: 26px 0 0; max-width: 520px; color: var(--hub-muted); font-size: 17px; line-height: 1.7; }

/* ───────── the cards */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
  transition: transform .45s var(--hub-ease), box-shadow .45s var(--hub-ease);
}
.project:hover { transform: translateY(-4px); }
.project:focus-visible { outline: 3px solid var(--hub-ink); outline-offset: 4px; border-radius: 28px; }
.project__body { position: relative; z-index: 2; padding: 32px 32px 0; }
.project__head { display: flex; align-items: center; gap: 14px; }
.project__kicker { font-size: 13px; letter-spacing: .02em; opacity: .7; }
.project__title { margin: 22px 0 0; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
.project__text { margin: 12px 0 0; max-width: 440px; font-size: 15px; line-height: 1.65; }
.project__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; }
.project__chips li { padding: 4px 10px; border-radius: 999px; }
.project__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.project__cta .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--hub-ease); }
.project:hover .project__cta .arrow, .project:focus-visible .project__cta .arrow { transform: translateX(4px); }
.project__by { display: block; margin-top: 10px; font-size: 12px; opacity: .6; }
.project__art { position: relative; flex: 1; min-height: 250px; margin-top: 28px; }

@media (max-width: 900px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project { min-height: 0; }
}
@media (max-width: 560px) {
  .hub-top, .hub-main, .hub-foot { padding-inline: 18px; }
  .hub-top { height: 72px; }
  .hub-hero { padding: 32px 0 36px; }
  .hub-lead { font-size: 16px; }
  .project, .project:focus-visible { border-radius: 22px; }
  .project__body { padding: 24px 22px 0; }
  .project__title { font-size: 34px; }
  .project__art { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .project, .project__cta .arrow { transition: none; }
  .project:hover { transform: none; }
}
