@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fredoka-latin-wght.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #eef4f1;
  --surface: #ffffff;
  --ink: #1f2a44;
  --ink-soft: #2f3d63;
  --muted: #5b6478;
  --line: rgba(31, 42, 68, 0.1);
  --marker: #ffd84d;
  --mint: #dcefe6;
  --sky: #e2e9fb;
  --butter: #fbf1d4;
  --accent: #2bb38a;
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.06), 0 6px 16px -8px rgba(31, 42, 68, 0.14);
  --shadow-lg: 0 2px 6px rgba(31, 42, 68, 0.06), 0 30px 60px -30px rgba(31, 42, 68, 0.3);
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(60rem 36rem at 12% -6%, #d4ecdf 0%, transparent 60%),
    radial-gradient(52rem 34rem at 92% 4%, #dfe6fa 0%, transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  border-radius: 999px;
  background: var(--ink);
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Floating nav */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 16px;
}

.nav-pill {
  display: flex;
  width: min(880px, 100%);
  height: 60px;
  margin: 14px auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 10px 0 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(1.6) blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
}

.brand-tile {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}

.brand-tile svg {
  width: 22px;
  height: 22px;
}

.brand-dot {
  fill: var(--marker);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.94rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.nav-links a:hover {
  background: rgba(31, 42, 68, 0.06);
  color: var(--ink);
}

.nav-links .nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--ink-soft);
  color: #fff;
}

/* Shared bits */

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.tag {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 26px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.button-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 42, 68, 0.6);
}

.button-dark:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link span {
  transition: transform 150ms ease;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link:hover span {
  transform: translate(2px, -2px);
}

/* Hero */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 14ch;
  margin-top: 24px;
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  line-height: 1.1;
}

.marker {
  border-radius: 0.28em;
  background: var(--marker);
  padding: 0 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-copy {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero .button {
  margin-top: 30px;
}

.hero-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Compose mock */

.compose {
  width: min(680px, 100%);
  margin-top: clamp(44px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.compose-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fc;
  padding: 14px 18px;
  font-weight: 600;
}

.compose-dots {
  display: flex;
  gap: 6px;
}

.compose-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6b6b;
}

.compose-dots i:nth-child(2) {
  background: var(--marker);
}

.compose-dots i:nth-child(3) {
  background: var(--accent);
}

.compose-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 0.95rem;
}

.compose-row span {
  display: inline-block;
  min-width: 70px;
  color: var(--muted);
}

.compose-body {
  min-height: 132px;
  padding: 20px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  background: var(--ink);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

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

.compose-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--accent);
  padding: 10px 18px;
  color: #06261c;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease;
}

.send:hover {
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-title {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  text-align: center;
}

.section-lead {
  max-width: 38rem;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
}

/* Bento */

.bento {
  display: grid;
  margin-top: clamp(36px, 5vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-mint {
  background: var(--mint);
}

.card-sky {
  background: var(--sky);
}

.card-butter {
  background: var(--butter);
}

.card-feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
}

.card-text {
  display: flex;
  padding: clamp(26px, 3.4vw, 40px);
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.card-feature .card-text {
  align-self: center;
}

.card h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
}

.card-text > p:not(.tag) {
  max-width: 32rem;
  color: var(--muted);
}

.card-text .link {
  margin-top: 6px;
}

.shot {
  display: block;
  margin: auto 0 0 clamp(26px, 3.4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-right: 0;
  border-radius: 16px 0 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card-feature .shot {
  margin-top: clamp(26px, 3.4vw, 40px);
  margin-left: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transform-origin: top left;
  transition: transform 400ms ease;
}

.shot:hover img {
  transform: scale(1.03);
}

/* About panel */

.panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--sky);
  padding: clamp(32px, 6vw, 72px);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.panel h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
}

.prose {
  display: grid;
  gap: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.prose .lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Experience tiles */

.tiles {
  display: grid;
  margin-top: clamp(36px, 5vw, 56px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.tile p:not(.tag) {
  color: var(--muted);
  font-size: 0.98rem;
}

.footnote {
  max-width: 40rem;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* CTA banner */

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--mint);
  padding: clamp(32px, 6vw, 64px);
}

.cta-art {
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.art-back {
  fill: var(--ink);
}

.art-flap {
  fill: none;
  stroke: #3b4a72;
  stroke-width: 6;
  stroke-linejoin: round;
}

.art-letter {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 4;
}

.art-lines {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 6;
}

.art-dot {
  fill: var(--marker);
  stroke: var(--ink);
  stroke-width: 4;
}

.art-check {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.cta-text h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
}

.cta-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

/* Footer */

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
}

.footer-inner a {
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 900px) {
  .bento,
  .card-feature,
  .panel-grid,
  .tiles,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .card-feature .shot {
    margin-left: clamp(26px, 3.4vw, 40px);
    margin-top: 0;
  }

  .cta-art {
    max-width: 180px;
  }

  .cta-banner {
    text-align: center;
  }

  .cta-text h2 {
    margin-inline: auto;
  }

  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-pill {
    height: 56px;
  }

  .hero .button,
  .cta-actions .button {
    width: 100%;
  }

  .compose-row span {
    min-width: 0;
    margin-right: 8px;
  }

  .compose-body {
    min-height: 0;
  }

  .cta-actions .button {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .shot:hover img,
  .button-dark:hover,
  .send:hover {
    transform: none;
  }
}
