:root {
  color-scheme: dark;
  --background: #161311;
  --surface-lowest: #110e0c;
  --surface: #231f1d;
  --surface-raised: #383432;
  --text: #e9e1dd;
  --text-muted: #d1c4c0;
  --text-faint: #998e8b;
  --line: #4d4542;
  --brass: #e9c176;
  --button: #ffdea5;
  --button-text: #261900;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-padding: clamp(1.25rem, 5vw, 4rem);
  --scene-width: 67.5rem;
  --page-width: 75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--background);
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--brass);
  color: var(--button-text);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgb(77 69 66 / 20%);
  background: rgb(22 19 17 / 86%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: 100%;
  max-width: var(--page-width);
  height: 4rem;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark,
.footer-wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--brass);
  box-shadow: 0 0.75rem 2rem rgb(233 193 118 / 13%);
  transform: translateY(-1px);
}

.button-small {
  min-height: 2.25rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.8125rem;
}

.button-large {
  min-height: 3.25rem;
  padding: 1rem 2.5rem;
}

.button:focus-visible,
.wordmark:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

main {
  padding-top: 4rem;
}

.memory-statement {
  padding: clamp(3.25rem, 6vw, 5rem) var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.memory-statement h1 {
  max-width: 68rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.memory-number {
  color: var(--brass);
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9em;
  font-style: normal;
  font-variant-numeric: lining-nums;
  font-weight: 600;
  letter-spacing: -0.065em;
  transform: translateY(-0.02em);
}

.memory-rule {
  width: 6.875rem;
  height: 1px;
  margin-top: 1.5rem;
  background: rgb(233 193 118 / 35%);
}

.product-scene {
  padding: 5rem var(--page-padding) 7rem;
}

.diary-scene {
  padding-top: 7rem;
}

.scene-grid {
  width: 100%;
  max-width: var(--scene-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 26.25rem minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.scene-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.scene-copy h2,
.features h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.scene-copy h2 {
  max-width: 24rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.08;
}

.lede {
  max-width: 25rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.72;
}

.fragments {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.fragments span {
  width: fit-content;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(255 222 165 / 20%);
  border-radius: 0.25rem;
  background: rgb(255 222 165 / 8%);
  color: #f2d7a3;
  font-size: 0.9375rem;
}

.fragments span:nth-child(1) {
  transform: rotate(-1deg);
}

.fragments span:nth-child(2) {
  margin-left: 2rem;
  transform: rotate(2deg);
}

.fragments span:nth-child(3) {
  margin-left: 1rem;
  transform: rotate(-2deg);
}

.fragments-muted {
  opacity: 0.62;
}

.capabilities {
  max-width: 25rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(77 69 66 / 25%);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.phone-column {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.phone-glow {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  box-shadow: 0 0 5rem rgb(197 160 89 / 15%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  margin: 0;
  overflow: hidden;
  border: 0.5rem solid var(--surface-raised);
  border-radius: 3rem;
  background: var(--surface);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 28%);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 2.5rem;
}

.features {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 6rem var(--page-padding);
}

.features > h2 {
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
}

.feature-grid {
  max-width: 62.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  min-height: 9.5rem;
  padding: 2rem;
  border: 1px solid rgb(77 69 66 / 20%);
  border-radius: 1rem;
  background: var(--surface-lowest);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.feature-card p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.feature-wide {
  grid-column: span 2;
}

.final-cta {
  max-width: var(--page-width);
  margin: 4rem auto;
  padding: clamp(4rem, 9vw, 6rem) var(--page-padding);
  border: 1px solid rgb(77 69 66 / 15%);
  border-radius: 3rem;
  background: var(--surface-lowest);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.final-cta .button {
  margin-top: 2.25rem;
}

.final-cta p {
  margin: 1rem 0 0;
  color: var(--text-faint);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid rgb(77 69 66 / 15%);
}

.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem var(--page-padding);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer a {
  font-size: 0.75rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-align: right;
}

.not-found {
  min-height: 100vh;
  padding: 4rem var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.not-found > p:not(.eyebrow) {
  margin: 1.5rem 0 2rem;
  color: var(--text-muted);
}

@media (max-width: 50rem) {
  .memory-statement {
    min-height: 30vh;
  }

  .scene-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .phone-column {
    justify-content: center;
  }

  .phone-frame {
    width: min(100%, 20rem);
  }

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

  .feature-wide {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 34rem) {
  .header-inner {
    padding-inline: 1rem;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .button-small {
    padding-inline: 1.1rem;
  }

  .memory-statement {
    padding-block: 3.5rem;
  }

  .product-scene,
  .diary-scene {
    padding-block: 4.5rem;
  }

  .scene-copy h2 {
    font-size: 2.25rem;
  }

  .fragments span:nth-child(2),
  .fragments span:nth-child(3) {
    margin-left: 0;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .final-cta {
    margin: 2rem 1rem 4rem;
    border-radius: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
