/* The website. sushi.css (the apps' own, loaded first) draws the sushi and its effects. */
:root {
  --paper: #f3eee7;
  --card: #fffdf9;
  --ink: #1a1a1a;
  --ink-soft: #4b453e;
  --ink-faint: #756c62;
  --coral: #ed6650;
  --coral-deep: #c4442f;
  color-scheme: light;
}

/* sushi.css sizes the apps' see-through window; the website scrolls. */
html,
body {
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--paper);
}
body {
  overflow-x: hidden;
  color: var(--ink);
  font: 400 18px/1.55 ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--coral-deep);
  font-weight: 700;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 14px;
}
h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}
p {
  margin: 0 0 14px;
}

.wrap {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
main > section + section {
  margin-top: 96px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
}
.top nav {
  display: flex;
  gap: 22px;
}
.top nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

.hero {
  padding-top: 64px;
}
.hero h1 {
  font-size: clamp(46px, 8.5vw, 92px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 21px;
  color: var(--ink-soft);
}
.fine {
  font-size: 15px;
  color: var(--ink-faint);
}
.fine a {
  color: inherit;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 16px;
}
.button {
  display: inline-block;
  padding: 14px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink);
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.button.primary {
  background: var(--coral);
  color: #fff;
}
.button.small {
  padding: 9px 20px;
  font-size: 17px;
}

/* The sky the sushi flies across. #stage is scaled to fit; site.js sizes it. */
.sky {
  position: relative;
  height: 400px;
  margin-top: 36px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe2ff, #eef8ff);
  touch-action: manipulation;
}
.sky[data-look='fall'] {
  background: linear-gradient(170deg, #ffd896, #ef8a3d);
}
.sky[data-look='jday'] {
  background: linear-gradient(170deg, #0d295c, #2160b4);
}
.sky[data-look='santa'] {
  background: linear-gradient(170deg, #d12f3c, #7a101b);
}
.sky[data-look='bunny'] {
  background: linear-gradient(170deg, #fff4c4, #c3ecbb);
}
.sky[data-look='metalhead'] {
  background: radial-gradient(circle at 50% 70%, #5a0d12, #0c0c0e 70%);
}
#stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
#effects-back,
#effects-front,
#hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#bubble {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform-origin: 50% 100%;
  white-space: nowrap;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: 700 22px ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
#bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.sky-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
}
.sky-bar p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 16px;
}

.section-lead {
  max-width: 40em;
  color: var(--ink-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.features article,
.platforms article,
.split article {
  padding: 24px;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
}
.features p,
.platforms p,
.split p {
  color: var(--ink-soft);
  font-size: 17px;
}
.features p:last-child,
.platforms p:last-child,
.split p:last-child {
  margin-bottom: 0;
}
.glyph {
  display: block;
  margin-bottom: 10px;
  font: 32px/1 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}

.looks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.look {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s;
}
.look:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}
.look:focus-visible,
.button:focus-visible,
.copy:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.look .art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #bfe2ff, #eef8ff);
}
.look[data-look='fall'] .art {
  background: linear-gradient(170deg, #ffd896, #ef8a3d);
}
.look[data-look='jday'] .art {
  background: linear-gradient(170deg, #0d295c, #2160b4);
}
.look[data-look='santa'] .art {
  background: linear-gradient(170deg, #d12f3c, #7a101b);
}
.look[data-look='bunny'] .art {
  background: linear-gradient(170deg, #fff4c4, #c3ecbb);
}
.look[data-look='metalhead'] .art {
  background: radial-gradient(circle at 50% 70%, #5a0d12, #0c0c0e 70%);
}
/* A seasonal sushi's image covers the 100-unit stage; the classic one's 60x60 frame sits inside it. */
.look .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.look .art.classic img {
  inset: 20%;
  width: 60%;
  height: 60%;
}
.look strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.look .when {
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-deep);
}
.look .move {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.look .now {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.look .now[hidden] {
  display: none;
}

.code {
  position: relative;
  margin: 18px 0;
}
/* The copy button sits in the strip above the code, so a long line never runs under it. */
.code pre {
  margin: 0;
  padding: 46px 20px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #f3eee7;
  overflow-x: auto;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border: 1.5px solid #6f6a64;
  border-radius: 999px;
  background: #2b2b2b;
  color: #f3eee7;
  font: 700 14px ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
}
.copy:hover {
  background: #3a3a3a;
}

.platforms,
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.platforms {
  margin-top: 30px;
}
.platforms .downloads {
  margin: 14px 0 18px;
}
.split h2 {
  font-size: 32px;
}

.bottom {
  padding-top: 72px;
  padding-bottom: 56px;
  font-size: 15px;
  color: var(--ink-faint);
}
.bottom p {
  margin: 0 0 6px;
}
.bottom a {
  color: inherit;
}

@media (max-width: 980px) {
  .looks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top nav a:not(:last-child) {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
  .lead {
    font-size: 19px;
  }
  .sky {
    height: 320px;
    border-radius: 22px;
  }
  main > section + section {
    margin-top: 72px;
  }
  .looks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .platforms,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
