/* Palette and type are shared with wydm.app so Callo Apps reads as the same family. */
:root {
  --cream: #FAF6F0;
  --ink: #1A1512;
  --coral: #E89A6E;
  --surface: #FFFFFF;
  --muted: #7A6E64;
  --line: rgba(26, 21, 18, 0.08);
  --shadow: 0 1px 2px rgba(26, 21, 18, 0.04), 0 12px 32px rgba(26, 21, 18, 0.07);
  --radius: 24px;
  --section-pad: 96px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 16px; }

a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.narrow {
  width: min(720px, 100% - 48px);
  margin-inline: auto;
}

/* Keyboard users shouldn't have to tab through the nav on every page. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 20;
}

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

/* ---------- Nav: a floating capsule rather than a full-width bar ---------- */

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  padding-inline: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(1080px, 100%);
  margin: 16px auto 0;
  padding: 10px 12px 10px 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

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

.nav ul a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav ul a:hover,
.nav ul a[aria-current="page"] { background: var(--cream); }

/* ---------- Shared building blocks ---------- */

.section { padding-block: var(--section-pad); }

.eyebrow {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36ch;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--coral);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

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

/* ---------- Hero ---------- */

.hero { padding-block: 120px var(--section-pad); }

.squiggle-word {
  position: relative;
  display: inline-block;
}

/* The squiggle sits under the text box so it never collides with descenders on the next line. */
.squiggle {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.32em;
  color: var(--coral);
}

.hero .lede { margin: 32px 0 40px; }

/* ---------- Grids and cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card p:last-child { margin-bottom: 0; }

.card-mark {
  display: block;
  width: 40px;
  height: 6px;
  margin-bottom: 24px;
  background: var(--coral);
  border-radius: 999px;
}

/* ---------- Product catalog ---------- */

.catalog {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.catalog.compact { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}

/* A small tilt keeps the cards feeling hand-placed rather than templated. */
.product:hover {
  transform: rotate(-1deg) translateY(-2px);
  box-shadow: 0 1px 2px rgba(26, 21, 18, 0.05), 0 20px 44px rgba(26, 21, 18, 0.1);
}

.product h2, .product h3 { margin-bottom: 8px; }

.product .tagline {
  font-weight: 600;
  margin-bottom: 16px;
}

.product .button { margin-top: auto; }

.product p + .button { margin-top: 16px; }

.coming-soon {
  margin-top: 32px;
  font-size: 0.95rem;
  text-align: center;
}

.see-all { margin-top: 32px; }

/* ---------- Long-form pages ---------- */

.prose h1 { margin-bottom: 32px; }

.prose p { color: #3A322C; }

.prose h2 {
  font-size: 1.5rem;
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-pad);
  padding-block: 72px 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }

.site-footer li + li { margin-top: 8px; }

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.copyright {
  margin: 56px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  :root { --section-pad: 48px; }

  body { font-size: 16px; }

  .nav {
    justify-content: center;
    border-radius: 28px;
    padding: 12px;
  }

  .nav ul a { padding: 6px 12px; }

  .hero { padding-top: 64px; }

  .card, .product { padding: 28px; }

  .catalog.compact { grid-template-columns: 1fr; }
}

/* Tilting cards can be uncomfortable for people who asked the OS for less motion. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .product:hover { transform: none; }
}
