/* Meaningful Things — meaningful-things.com (umbrella) */

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

:root {
  --color-light: #F7F6F3;
  --color-medium: #ECEAE5;
  --color-dark: #1A1918;
  --color-dark-top: #2E2C29;
  --color-dark-bottom: #1A1918;
  --gradient-dark: linear-gradient(180deg, var(--color-dark-top), var(--color-dark-bottom));
  --text-on-light: #1a1a1a;
  --text-on-light-secondary: rgba(26, 26, 26, 0.66);
  --text-on-dark: #F7F6F3;
  --text-on-dark-secondary: rgba(247, 246, 243, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --corner-radius: 30px;
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-serif: 'New York', 'Iowan Old Style', Georgia, serif;
  --surface-elevated: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(26, 25, 24, 0.12);
  --focus-ring: 0 0 0 3px rgba(26, 25, 24, 0.45);
  --max-width-wide: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--color-light);
  color: var(--text-on-light);
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-light);
  color: var(--text-on-light);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 1rem;
  box-shadow: var(--focus-ring);
  outline: none;
}

/* ---- Site header (static top bar) ---- */
.site-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header__wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  text-decoration: none;
}

.site-header__wordmark:hover {
  color: var(--text-on-light-secondary);
}

.site-header__wordmark:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-light-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav a:hover {
  color: var(--text-on-light);
}

.site-header__nav a[aria-current="page"] {
  color: var(--text-on-light);
}

.site-header__nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Curve Separators ---- */
.curve-separator {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.curve-separator svg {
  display: block;
  width: 100%;
  height: 30px;
}

/* ---- Studio hero ---- */
.hero-studio {
  background: var(--color-light);
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-studio__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-on-light);
}

.hero-studio__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-on-light-secondary);
  max-width: 620px;
  margin: 1.5rem auto 0;
}

/* ---- Sections ---- */
section {
  padding: 6rem 2rem;
  scroll-margin-top: 5rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--text-on-light);
}

.section-subhead {
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  color: var(--text-on-light-secondary);
}

/* ---- Reveal animation (no-JS safe: visible by default; JS adds .js to <html>) ---- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.js .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.4s; }
.reveal-delay-2 { transition-delay: 0.8s; }

/* ---- Product cards ---- */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--corner-radius);
  padding: 2.5rem 2.25rem;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card--moment {
  background: linear-gradient(180deg, #FFCD43, #FF9B00);
  color: #1a1a1a;
}

.product-card--focus {
  background: linear-gradient(180deg, #4F9EF8, #193254);
  color: #F7FBFE;
}

.product-card--filter {
  background: linear-gradient(180deg, #2E2C29, #1A1918);
  color: #F7F6F3;
}

.product-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.product-card__name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}

.product-card__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.product-card__blurb {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  opacity: 0.92;
}

.product-card__link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  align-self: flex-start;
}

.product-card__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.product-card__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px currentColor;
  border-radius: 4px;
}

/* ---- Glass cards & values strip ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--corner-radius);
  padding: 2rem 2.5rem;
}

.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.values-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-on-light);
}

.values-strip p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
}

/* ---- Dark band ("Made by Humans") ---- */
.band-dark {
  background: var(--gradient-dark);
  color: var(--text-on-dark);
}

.band-dark .section-heading {
  color: var(--text-on-dark);
}

.band-dark .section-subhead {
  color: var(--text-on-dark-secondary);
}

.band-dark p {
  color: var(--text-on-dark-secondary);
}

.band-dark a {
  color: var(--text-on-dark);
}

.band-dark a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- About teaser ---- */
.about-teaser {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser__photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--corner-radius);
  display: block;
  margin: 0 auto 2rem;
}

.about-teaser p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-on-light-secondary);
  margin-bottom: 1.25rem;
}

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

/* ---- App Store badge ---- */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.app-store-badge img {
  width: 220px;
  height: auto;
  display: block;
}

/* ---- Sub-page chrome (mirrors moment/tips chrome) ---- */
.tip-page {
  background: var(--color-light);
  color: var(--text-on-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tip-page-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-on-light);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.breadcrumbs {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-light-secondary);
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-on-light-secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--text-on-light);
  text-decoration: underline;
}

.breadcrumbs a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Sub-page main & prose ---- */
.page-main {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  flex: 1;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-on-light);
}

.prose h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  border-left: 3px solid var(--border-subtle);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-on-light-secondary);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 700;
  background: var(--color-medium);
}

.prose .last-updated {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-light-secondary);
  margin-bottom: 2rem;
}

/* ---- Filter features ---- */
.filter-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.filter-features h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-on-light);
}

.filter-features p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
}

/* ---- 404 ---- */
.notfound {
  text-align: center;
  padding: 8rem 2rem 6rem;
}

.notfound h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-on-light);
  margin-bottom: 1rem;
}

.notfound p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.notfound__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.notfound__links a {
  font-weight: 600;
  color: var(--text-on-light);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.notfound__links a:hover {
  text-decoration-thickness: 2px;
}

.notfound__links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Footer ---- */
footer {
  background: var(--color-light);
  color: var(--text-on-light);
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: var(--text-on-light);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  padding: 0.25rem;
  color: var(--text-on-light-secondary);
}

.footer-social a:hover {
  color: var(--text-on-light);
}

.footer-social a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-on-light-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-on-light-secondary);
}

.studio-link {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-light-secondary);
  text-decoration: none;
}

.studio-link:hover {
  color: var(--text-on-light);
}

.studio-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-love {
  font-size: 0.9rem;
  color: var(--text-on-light-secondary);
  margin-bottom: 0.35rem;
}

.footer-crosspromo {
  font-size: 0.9rem;
  color: var(--text-on-light-secondary);
  margin-bottom: 1.5rem;
}

.footer-crosspromo a {
  color: var(--text-on-light);
  font-weight: 500;
  text-decoration: none;
}

.footer-crosspromo a:hover {
  text-decoration: underline;
}

.footer-crosspromo a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .site-header {
    padding: 1rem 1.25rem 0;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .hero-studio {
    padding: 4rem 1.25rem 3rem;
  }

  .product-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .values-strip {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .filter-features {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .glass-card {
    padding: 1.5rem 1.75rem;
  }

  .product-card {
    padding: 2rem 1.75rem;
  }

  .tip-page-header {
    padding: 1rem 1.25rem 0;
  }

  .page-main {
    padding: 2rem 1.25rem 4rem;
  }

  .notfound {
    padding: 6rem 1.25rem 4rem;
  }

  .app-store-badge img {
    width: 190px;
    height: auto;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card,
  .app-store-badge {
    transition: none;
  }

  .product-card:hover,
  .app-store-badge:hover {
    transform: none;
  }
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-light: #1C1B1A;
    --color-medium: #262523;
    --color-dark: #F7F6F3;
    --color-dark-top: #131211;
    --color-dark-bottom: #0D0C0B;
    --text-on-light: #F2F0EC;
    --text-on-light-secondary: rgba(242, 240, 236, 0.7);
    --text-on-dark: #F2F0EC;
    --text-on-dark-secondary: rgba(242, 240, 236, 0.75);
    --glass-bg: rgba(28, 28, 30, 0.66);
    --surface-elevated: rgba(28, 28, 30, 0.85);
    --border-subtle: rgba(247, 246, 243, 0.16);
    --focus-ring: 0 0 0 3px rgba(247, 246, 243, 0.5);
  }

  .brand-link img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .product-card__icon {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .product-card--filter {
    border: 1px solid var(--border-subtle);
  }
}
