/* Omoi Project — white / cream / beige / baby pink / blush / black / new grass */

:root {
  --white: #ffffff;
  --cream: #fffdd0;
  --beige: #e8dccb;
  --baby-pink: #ffd1dc;
  --blush: #e8b4b8;
  --black: #000000;
  --ink: #000000;
  --paper: #ffffff;
  /* Matches logo PNG sandy paper (same as --beige) */
  --logo-paper: #e8dccb;
  /* New grass */
  --grass: #468e09;
  --grass-deep: #3a7607;
  /* Testing accent (blush family, readable on cream) */
  --blush-deep: #b56b72;
  --muted: #5c564e;
  --line: rgba(0, 0, 0, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.75rem;
  background: color-mix(in srgb, var(--logo-paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  color: var(--black);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mark__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--black);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 1.75rem 4rem;
  overflow: hidden;
  background: var(--logo-paper);
  color: var(--black);
}

.hero__photo {
  position: absolute;
  inset: 0;
  background:
    url("assets/plum_blossom.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: photo-drift 22s var(--ease) infinite alternate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__wash {
  position: absolute;
  inset: 0;
  /* Soft left stage so logo + copy stay readable; blossom leads on the right */
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--logo-paper) 94%, transparent) 0%,
      color-mix(in srgb, var(--logo-paper) 88%, transparent) 36%,
      color-mix(in srgb, var(--cream) 45%, transparent) 58%,
      color-mix(in srgb, var(--baby-pink) 18%, transparent) 78%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--logo-paper) 55%, transparent) 0%,
      transparent 38%
    );
}

@keyframes photo-drift {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 5%) scale(1.06);
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  animation: rise 1s var(--ease) both;
}

@media (min-width: 900px) {
  .hero__stage {
    max-width: 40rem;
    margin-left: 0;
    margin-right: auto;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--black);
}

.hero__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__sub {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero__sub em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--black);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn--primary:hover {
  background: #1a1a1a;
}

.btn--ghost {
  background: color-mix(in srgb, var(--white) 70%, transparent);
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--black);
  background: var(--white);
}

.about {
  padding: 6rem 1.75rem;
  background: var(--paper);
}

.about__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--idea,
.eyebrow--live {
  color: var(--grass-deep);
}

.eyebrow--testing {
  color: var(--blush-deep);
}

.about h2,
.work__head h2,
.close h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
}

.about__body {
  margin: 1.35rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.about__body strong {
  color: var(--black);
  font-weight: 600;
}

.about__more {
  margin: 1.75rem 0 0;
}

/* About page hero (plum blossom 2) */
.hero--about .hero__photo {
  background:
    url("assets/plum_blossom2.jpg") 20% center / cover no-repeat;
}

.hero--about .hero__wash {
  background:
    linear-gradient(
      255deg,
      color-mix(in srgb, var(--logo-paper) 92%, transparent) 0%,
      color-mix(in srgb, var(--logo-paper) 78%, transparent) 38%,
      color-mix(in srgb, var(--cream) 35%, transparent) 62%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--logo-paper) 50%, transparent) 0%,
      transparent 40%
    );
}

.about-page {
  padding: 0 0 5rem;
  background: var(--paper);
}

.about-page__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.75rem 2rem;
}

.about-page__portrait {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  margin: 0 0 1.5rem;
  background:
    radial-gradient(
      circle at 40% 35%,
      color-mix(in srgb, var(--beige) 70%, var(--black)) 0%,
      color-mix(in srgb, var(--black) 75%, var(--blush)) 55%,
      #1a1a1a 100%
    );
  box-shadow: 0 0 0 1px var(--line);
}

.about-page h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.about-page p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-page__pull {
  margin: 1.75rem 0 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--grass-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--black);
}

.about-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.work {
  padding: 5.5rem 1.75rem 6.5rem;
  background: var(--cream);
}

.work__head {
  max-width: 70rem;
  margin: 0 auto 3rem;
}

.work__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 70rem;
}

.work__item {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.work__item:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .work__item {
    grid-template-columns: 10.5rem 1fr;
    column-gap: 2.5rem;
    align-items: start;
  }

  .work__meta {
    grid-row: 1 / 5;
  }

  .work__item h3,
  .work__item > p,
  .work__actions {
    grid-column: 2;
  }
}

.work__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work__logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.work__logo--contain {
  object-fit: contain;
  padding: 6px;
}

.status {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.status--live {
  color: var(--grass-deep);
}

.status--testing {
  color: var(--blush-deep);
}

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

.work__item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--black);
}

.work__item > p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.work__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
}

.work__more {
  width: fit-content;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}

.work__more:hover {
  color: var(--black);
  text-decoration-thickness: 2px;
}

.work__test {
  width: fit-content;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blush-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.work__test:hover {
  border-bottom-color: var(--blush);
  color: color-mix(in srgb, var(--blush-deep) 80%, var(--black));
}

.work__soon {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.85;
}

/* Product detail pages */
.page {
  padding: 7.5rem 1.75rem 4rem;
  background: var(--paper);
  min-height: 70svh;
}

.page__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.page__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.page__back:hover {
  color: var(--black);
}

.page__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 1.5rem;
}

.page__logo--cover {
  object-fit: cover;
}

.page h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
}

.page__lede {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.page__note {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--beige) 55%, var(--white));
  border-left: 3px solid var(--blush-deep);
  font-size: 0.98rem;
  color: var(--ink);
}

.page h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.page p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page li {
  margin: 0.4rem 0;
}

.page li strong {
  color: var(--black);
  font-weight: 600;
}

.streams {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .streams {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.stream {
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.stream__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.stream h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.stream__audience {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stream p {
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
}

.page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.75rem;
}

.close {
  padding: 5.5rem 1.75rem;
  background: linear-gradient(180deg, var(--baby-pink) 0%, var(--blush) 100%);
  color: var(--black);
  text-align: center;
}

.close__inner {
  max-width: 32rem;
  margin: 0 auto;
}

.close__logo {
  margin: 0 auto 1.5rem;
  width: 96px;
  height: auto;
}

.close p {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  padding: 2.5rem 1.75rem 3rem;
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}

.site-footer__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* no multiply on black — plate matches logo paper */
  background: var(--logo-paper);
  border-radius: 6px;
  padding: 2px;
}

.site-footer__legal,
.site-footer__note {
  margin: 0.35rem 0 0;
}

.site-footer__legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-footer__flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* A/B: default = paper match. ?blend=multiply | both | off */
body.blend-multiply .mark__logo,
body.blend-multiply .close__logo,
body.blend-both .mark__logo,
body.blend-both .close__logo {
  mix-blend-mode: multiply;
}

body.blend-off .hero {
  background: var(--logo-paper);
}

body.blend-off .hero__photo {
  display: none;
}

body.blend-off .site-header {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
}

@media (max-width: 640px) {
  .nav a:nth-child(4) {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
