/*
 * Wine Journey landing site. Light mode only — index.html declares
 * <meta name="color-scheme" content="light"> so browsers do not auto-darken.
 *
 * The background and foreground colors below are transcribed from
 * ui/common/src/tokens/theme.ts (lightTheme). The landing site must not import
 * from ui/common, so this duplication is the accepted cost of keeping the page
 * dependency-free.
 */

:root {
  --color-background: #f8f8f8;
  --color-foreground: #1a1a1a;
  /* Deliberately NOT from theme.ts: its placeholderColor (#a0a0a0) is a
     form-input token and lands at 2.5:1 here, below WCAG AA for body text. */
  --color-subtle: #6b6b6b;

  --content-max-width: min(94vw, 78rem);
  /* Shared by both showcase columns: the mockup's fixed width and the store
     column's flex-basis, so the row wraps when they can no longer sit together. */
  --showcase-column-width: 18rem;
  --radius-button: 8px;
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 100dvh;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-stack);
  line-height: 1.5;
  text-align: center;
}

.page-header,
.page-main,
.page-footer {
  width: 100%;
  max-width: var(--content-max-width);
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3rem);
}

.page-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.wordmark {
  width: clamp(11rem, 55%, 17rem);
  height: auto;
}

.tagline {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* The title spans the full content width, so it holds one line on any desktop
     viewport; this only balances the wrap on narrow screens where it cannot. */
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.0625rem;
}

/* The mockup and the store buttons sit side by side while both columns fit,
   and wrap to a single column when they no longer do. The store column's
   flex-basis is the wrap trigger, so no media query decides this. */
.showcase {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.showcase-mockup {
  flex: 0 0 var(--showcase-column-width);
  max-width: 100%;
}

.showcase-store {
  flex: 1 1 var(--showcase-column-width);
  min-width: 0;
  max-width: 22rem;
}

.phone-mockup {
  display: block;
  width: 100%;
  height: auto;
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-button {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--color-foreground);
  border-radius: var(--radius-button);
  background-color: var(--color-foreground);
  color: var(--color-background);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
}

.page-footer p {
  margin: 0;
  color: var(--color-subtle);
  font-size: 0.9375rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
