/* MAVRI website. Shared by the home page (site/index.html) and the pages in src/pages.ts. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F8F7F3;
  --ink: #161513;
  --text: #3A3733;
  --muted: #6F6A62;
  --line: #DCD7CF;
  --panel: #EFECE5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1328px; margin: 0 auto; padding: 0 var(--edge); }

/* Small capital labels */
.over { font: 500 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.over span { margin: 0 0.5em; }
em { font-style: italic; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap, .wrap.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.top .wordmark img { width: 112px; height: auto; }
.top nav { display: flex; gap: 36px; font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Store buttons: data-ios ("soon" or "live") and data-android ("off", "soon" or "live") on <html> */
[data-ios="soon"] .ios-live { display: none; }
[data-ios="live"] .ios-soon { display: none; }
[data-android="soon"] .android-live, [data-android="live"] .android-soon, [data-android="off"] .android-live, [data-android="off"] .android-soon { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 80px); align-items: center; padding-top: clamp(40px, 6.6vw, 96px); padding-bottom: clamp(56px, 7.8vw, 112px); }
.hero h1 { font-size: clamp(54px, 6.7vw, 96px); line-height: 1.04; letter-spacing: -0.01em; margin-top: 28px; max-width: 6.2em; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 26.5em; margin-top: clamp(24px, 3vw, 40px); }
.hero .status { margin-top: 28px; color: var(--muted); font-size: 13px; padding-left: 16px; position: relative; }
.hero .status::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero-stage { background: var(--panel); border-radius: 4px; aspect-ratio: 560 / 720; display: grid; place-items: center; position: relative; }
.hero-stage img { width: 39%; }
.hero-stage .over { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.2vw, 44px); }
.store { display: inline-flex; align-items: center; gap: 10px; background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font: 500 14px/1 var(--sans); letter-spacing: 0.02em; padding: 15px 26px; cursor: pointer; }
.store::after { content: "↗"; font-size: 13px; }
.store:hover { background: var(--ink); color: var(--paper); }

/* "Coming soon" popovers */
.soon { margin: auto; max-width: min(92vw, 400px); padding: 28px 28px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
.soon::backdrop { background: rgba(20, 18, 15, 0.35); }
.soon p { font-size: 16px; line-height: 1.5; }
.soon strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.soon button { margin-top: 20px; background: none; border: 1px solid var(--ink); color: var(--ink); font: 500 15px/1 var(--sans); padding: 11px 20px; border-radius: 999px; cursor: pointer; }

/* Features */
.features { border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head > p { max-width: 21em; color: var(--muted); font-size: 16px; line-height: 1.65; }
h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.01em; }
.section-head h2 { margin-top: 20px; max-width: 11em; }
.plates { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2px; row-gap: clamp(48px, 5vw, 72px); }
.plates .stage { background: var(--panel); border-radius: 4px; aspect-ratio: 378 / 440; overflow: hidden; display: flex; justify-content: center; padding-top: 12%; }
.plates .stage img { width: 63.5%; height: auto; align-self: flex-start; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.plates .over { margin-top: 24px; }
.plates h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.005em; margin-top: 8px; }
.plates li > p:last-child { margin-top: 8px; max-width: 20em; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Buying */
.buying { background: var(--ink); color: rgba(247, 247, 242, 0.78); }
.buying .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 9vw, 140px); align-items: start; padding-top: clamp(64px, 8.4vw, 120px); padding-bottom: clamp(64px, 8.4vw, 120px); }
.buying .over { color: rgba(247, 247, 242, 0.6); }
.buying h2 { color: #F7F7F2; margin-top: 20px; max-width: 9.5em; }
.buying p { max-width: 34em; font-size: 16px; line-height: 1.65; }
.buying p + p { margin-top: 18px; }
.buying a.over { color: #F7F7F2; }

/* Closing */
.closing { text-align: center; padding-top: clamp(72px, 10vw, 144px); padding-bottom: clamp(72px, 10vw, 144px); }
.closing h2 { font-size: clamp(56px, 6.7vw, 96px); line-height: 1.04; margin-top: 20px; }
.closing .lede { margin-left: auto; margin-right: auto; margin-top: 24px; }
.closing .stores { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 36px; padding-bottom: 56px; font-size: 14px; line-height: 1.6; color: var(--muted); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; align-content: start; justify-content: flex-end; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--text); }

/* Text pages: privacy, terms, support, affiliate disclosure */
.doc { max-width: 760px; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.doc h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; margin-bottom: 10px; }
.doc h2 { font-size: 27px; line-height: 1.2; margin: 44px 0 10px; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc .muted { color: var(--muted); font-size: 14px; }
.doc .table { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; color: var(--ink); }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 4 / 3; }
  .hero-stage img { width: 28%; }
  .section-head { display: block; }
  .section-head > p { margin-top: 18px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buying .wrap { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .top nav { gap: 18px; }
  .top nav .extra { display: none; }
  .plates { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
