/* Momento landing page. Light only, no scripts, everything served from this site. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The Momento palette (frontend/src/index.css). */
  --paper: #f6f1ea;
  --ink: #1f1b16;
  --ink-soft: #5c5249;
  --ink-faint: #8f8378;
  --line: #e3d9cc;
  --accent: #c8553d;
  --accent-deep: #a9432e;
  --accent-ink: #fff8f3;

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.4rem, 5vw, 4.5rem);
  --max: 76rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(70rem 46rem at 88% -8%, rgb(200 85 61 / 0.08), transparent 62%),
    radial-gradient(50rem 40rem at -10% 110%, rgb(200 85 61 / 0.05), transparent 60%), var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

::selection {
  background: rgb(200 85 61 / 0.2);
}

/* --- Header ---------------------------------------------------------------- */

.bar,
.hero,
.ideas,
.closing,
.foot {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
  text-decoration: none;
}

.dot {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.dot::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--paper);
}

.pill {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.pill:hover {
  border-color: rgb(200 85 61 / 0.5);
  color: var(--accent);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 11vh, 8rem) clamp(4.5rem, 13vh, 9rem);
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(3.6rem, 8.4vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

h1 em {
  color: var(--accent);
  font-weight: 380;
}

.lede {
  max-width: 29rem;
  margin: 2.1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 14px 32px -14px rgb(169 67 46 / 0.6);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.button span {
  transition: transform 0.2s ease;
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.button:hover span {
  transform: translateX(3px);
}

.note {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* The app icon, as an object: a terracotta sun with the cream ring and dot. */

.orb {
  position: relative;
  width: 100%;
  max-width: 27rem;
  aspect-ratio: 1;
  justify-self: end;
}

.orb span {
  position: absolute;
  border-radius: 50%;
}

.halo {
  inset: 0;
  background: radial-gradient(circle, rgb(200 85 61 / 0.1), rgb(200 85 61 / 0) 68%);
  border: 1px solid rgb(200 85 61 / 0.14);
  animation: breathe 7s ease-in-out infinite;
}

.ring {
  inset: 13%;
  border: 1px solid rgb(200 85 61 / 0.24);
  animation: breathe 7s ease-in-out 1.2s infinite;
}

.sun {
  inset: 27%;
  background: radial-gradient(circle at 34% 28%, #dc7a61, var(--accent) 52%, #b0472f);
  box-shadow:
    0 40px 70px -30px rgb(150 55 35 / 0.55),
    inset 0 2px 6px rgb(255 255 255 / 0.18);
}

.eye {
  inset: 38.5%;
  border: clamp(5px, 0.85vw, 9px) solid var(--paper);
}

.eye::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--paper);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .halo,
  .ring {
    animation: none;
  }
  .button,
  .button span,
  .pill {
    transition: none;
  }
}

/* --- Three ideas ----------------------------------------------------------- */

.ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  position: relative;
  padding-block: clamp(3rem, 7vh, 4.5rem);
}

.ideas::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.num {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 24;
}

h2 {
  margin: 0.85rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 72;
}

.ideas p {
  max-width: 22rem;
  margin: 0;
  color: var(--ink-soft);
}

/* --- Closing --------------------------------------------------------------- */

.closing {
  padding-block: clamp(4rem, 16vh, 10rem);
  text-align: center;
}

.closing p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 144;
}

.closing em {
  color: var(--accent);
}

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

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-block: 1.75rem 2.5rem;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}

/* --- Not found ------------------------------------------------------------- */

.lost {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 16vh, 10rem) var(--gutter);
}

.lost h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.lost .lede {
  margin-bottom: 2.5rem;
}

/* --- Small screens --------------------------------------------------------- */

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 2rem 4rem;
  }

  .orb {
    order: -1;
    width: min(9.5rem, 40vw);
    justify-self: start;
  }

  .ideas {
    grid-template-columns: 1fr;
  }

  .ideas p {
    max-width: 34rem;
  }
}

@media (max-width: 30rem) {
  .bar {
    padding-block: 1.25rem;
  }

  .eyebrow {
    margin-bottom: 1.25rem;
  }

  .cta {
    margin-top: 2.25rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}
