/* ---- Fonts (self-hosted, modern woff2 only) ---- */
/* Nunito — body / UI text (variable file covers 400–700) */
@font-face {
  font-family: 'Nunito';
  src: url('/asset?u=http%3A%2F%2Famis.co%2Fassets%2Ffonts%2FNunito-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Quicksand — display only (logo + the "Hi, I'm jp" headline) */
@font-face {
  font-family: 'Quicksand';
  src: url('/asset?u=http%3A%2F%2Famis.co%2Fassets%2Ffonts%2FQuicksand-Light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/asset?u=http%3A%2F%2Famis.co%2Fassets%2Ffonts%2FQuicksand-Bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --font-ui: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Quicksand', var(--font-ui);
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --ink: #24242a;          /* headings / strong text */
  --body: #3c3c44;         /* body copy */
  --muted: #6a6a74;        /* secondary text */
  --card: #ffffff;
  --line: #e5e6ea;
  --shadow: 0 12px 34px rgba(40, 42, 60, 0.10);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  background-color: #f3f5f7;
  /* Soft mesh glow for depth — no noise, layered light/color blooms. */
  background-image:
    radial-gradient(55% 45% at 25% 18%, rgba(255, 255, 255, 0.70), transparent 70%),
    radial-gradient(50% 45% at 85% 85%, rgba(203, 214, 232, 0.55), transparent 70%),
    radial-gradient(45% 40% at 70% 15%, rgba(233, 224, 236, 0.45), transparent 70%),
    linear-gradient(165deg, #f7f8fa 0%, #eef1f5 60%, #e9edf1 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.centered { text-align: center; }

/* ---- Hero ---- */
.hero { padding: 56px 0 12px; }

.logo { margin-bottom: 40px; }
.logo-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 9px 15px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ef5a4a 0%, #e74c3c 55%, #d8412f 100%);
  box-shadow:
    0 6px 18px rgba(231, 76, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.logo-tld {
  font-weight: 300;
  opacity: 0.82;
  margin-left: 1px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
}
h1 b { font-weight: 700; }

.lede {
  max-width: 34em;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.5;
  color: var(--body);
}

/* ---- App cards ---- */
.apps {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

.app-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
  min-width: 0;              /* let the card stay within the column */
}
.app-body { min-width: 0; }

.app-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
/* Raw app icon — no border, no shadow; the artwork carries its own shape. */
.app-icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: block;
}
.app-headings { min-width: 0; }
.app-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.app-name {
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  color: var(--ink);
}
.badge {
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--muted);
}
.app-tagline {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.app-desc {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.app-features {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.app-features li {
  font-size: 16px;
  color: var(--body);
  padding-left: 20px;
  position: relative;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Screenshots carousel ---- */
.carousel {
  position: relative;
  margin: 0 0 24px;
  min-width: 0;
}
.carousel-track {
  display: flex;
  gap: 14px;
  min-width: 0;                 /* key: keeps the flex scroller from
                                   stretching the card past the column */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox — hide the bar, nav buttons drive it */
  padding: 4px 2px 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(120, 70, 50, 0.10);
  transition: transform 0.12s ease-in, box-shadow 0.12s ease-in;
  cursor: zoom-in;
}
.shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 70, 50, 0.18);
}
.shot img {
  display: block;
  width: 272px;
  height: 170px;
  object-fit: cover;
}
.carousel-nav {
  position: absolute;
  top: calc(50% - 5px);
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(120, 70, 50, 0.20);
  transition: background 0.12s ease-in, transform 0.12s ease-in;
}
.carousel-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-nav[hidden] { display: none; }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

.app-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 12px;
  transition: background 0.12s ease-in, transform 0.12s ease-in;
}
.app-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---- Contact ---- */
.contact { margin-top: 60px; }
.contact p { font-size: 20px; color: var(--body); margin: 0 0 10px; }
.alink {
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.12s ease-in, background 0.12s ease-in;
}
.alink:hover { background: #fff; color: var(--accent); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 8, 0.82);
  padding: 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.12s ease-in;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.30); }
.lightbox-close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 30px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 34px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---- Responsive ---- */
@media (max-width: 620px) {
  h1 { font-size: 44px; }
  .lede { font-size: 19px; }
  .app-card { padding: 24px 20px; }
  .app-head { gap: 16px; }
  .app-icon { width: 72px; height: 72px; }
  .app-name { font-size: 25px; }
  .app-features { grid-template-columns: 1fr; }
  .shot img { width: 260px; height: 162px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
}
