/* Acequia's pages: the game's own world inside the studio's frame. The studio's header, wordmark and footer stay as they
   are on every page; everything else is the Courtyard look of the game: warm limestone, terracotta, water blue and
   bougainvillea, in Lora (served with the site, as its privacy page promises). */
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

body.acequia {
  --sky: #EFE4CF; --sand: #F3EADB; --paper: #FAF3E6; --card: #F6EEDD; --ink: #35261B; --soft: #6A5646; --faint: #8C7862;
  --clay: #C4643A; --clay-deep: #8E4325; --water: #3C8AC2; --bloom: #B63E6C; --leaf: #5F7E3B; --rule: #3526191f; --tile: #E2CFAA;
  background: var(--sky); color: var(--ink); font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
/* afternoon light from the west, and the grain of a limestone wall */
body.acequia::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 12% 8%, #fff7e666 0%, #fff7e600 70%), radial-gradient(ellipse 60% 50% at 92% 96%, #e6c9a233 0%, #e6c9a200 70%); }
body.acequia::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .24 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.acequia > .wrap { position: relative; z-index: 1; }
body.acequia .skip { color: var(--ink); }
body.acequia a:focus-visible, body.acequia summary:focus-visible, body.acequia button:focus-visible { outline: 3px solid var(--clay-deep); outline-offset: 5px; }

/* the studio's frame, in the studio's type, dark on the warm ground */
body.acequia header, body.acequia footer { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body.acequia .brand { color: var(--ink); }
body.acequia nav { color: var(--soft); }
body.acequia nav a:hover, body.acequia nav a[aria-current="page"] { color: var(--ink); }
body.acequia footer { border-color: var(--rule); color: var(--soft); }

/* ---------- the pour ----------
   Still by default: the garden in bloom beside the beats as a list, as it reads without scripts or with reduced motion.
   With motion (html.aq-live, set in the page's head before it draws), the garden is held while the page scrolls and pours,
   one beat at a time (pour.js). */
.pour-track { position: relative; }
.pour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 72px); padding: 50px 0 90px; }
.pour-copy { position: relative; }
.kicker { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); margin: 0 0 22px; }
.pour h1 { font-size: clamp(64px, 8.8vw, 148px); font-weight: 600; letter-spacing: -.035em; line-height: .9; margin: 0 0 18px; color: var(--ink); }
.tagline { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 34px; color: var(--ink); }
.beats { list-style: none; margin: 0; padding: 0; max-width: 32ch; }
.beats li { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--soft); margin: 0 0 10px; }
.beats li.last { color: var(--ink); font-size: clamp(22px, 2vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin-top: 18px; }
.scroll-hint { display: none; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: var(--soft); margin: 26px 0 0; transition: opacity .4s; }
.scroll-hint span { display: inline-block; margin-left: 10px; animation: aq-nudge 2.4s ease-in-out infinite; }
.scroll-hint.gone { opacity: 0; }
@keyframes aq-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.pour-garden { margin: 0; position: relative; }
.pour-garden img, .pour-garden svg { display: block; width: 100%; height: auto; max-height: 84svh; border-radius: 8px; box-shadow: 0 2px 0 #ffffff80 inset, 0 40px 80px -30px #5a3c1e59, 0 12px 30px -12px #5a3c1e40; }
.pour-garden svg { background: var(--tile); }
.pour-garden.live img { display: none; }
/* in bloom, the afternoon sun comes round to the garden */
.pour-garden::before { content: ""; position: absolute; inset: -12% -10%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, #ffe7bf99 0%, #ffe7bf33 45%, #ffe7bf00 72%); }
.pour-garden.bloomed::before { opacity: 1; }
html.aq-live .pour-track { height: 540vh; }
html.aq-live .pour { position: sticky; top: 0; height: 100svh; min-height: 620px; padding: 0; }
html.aq-live .pour-copy { padding-bottom: 40px; }
html.aq-live .beats { position: relative; min-height: 5.4em; }
html.aq-live .beats li { position: absolute; inset: 0 auto auto 0; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
html.aq-live .beats li.on { opacity: 1; transform: none; }
html.aq-live .scroll-hint { display: block; }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* ---------- the pages below ---------- */
.aq-section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
/* between the sections, a groove carved in the floor, as the game's channels are: its shadowed edge and its lit lip */
.aq-section::before, .aq-coming::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: 5px;
  background: linear-gradient(#a98a5b 0 2px, #cdb185 2px 7px, #f6eedd 7px 9px); opacity: .55; }
.aq-lead { font-size: clamp(38px, 5vw, 76px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; margin: 0 0 28px; max-width: 16ch; }
.aq-body { max-width: 60ch; color: var(--soft); font-size: 19px; }
.aq-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 110px); align-items: start; }

/* the word itself */
.aq-word { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.aq-word p.word { font-size: clamp(56px, 9vw, 150px); font-weight: 600; letter-spacing: -.04em; line-height: .9; margin: 0; color: var(--ink); }
.aq-word p.arabic { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", serif; font-size: clamp(40px, 5vw, 76px); line-height: 1.1; color: var(--clay); opacity: .55; margin: 0 0 18px; max-width: none; text-align: left; }
.aq-word .say { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); margin: 0 0 14px; }
.aq-word p { margin: 0; color: var(--soft); font-size: clamp(19px, 1.6vw, 23px); max-width: 44ch; }
.aq-word em { font-style: normal; color: var(--ink); }

/* the pieces */
.aq-pieces-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.aq-pieces-head .aq-lead { margin: 0; }
.aq-pieces-head .aq-body { margin: 0; max-width: 46ch; }
.aq-set { margin: 0 0 64px; }
.aq-set h3 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); margin: 0 0 22px; }
.aq-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1100px) { .aq-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aq-tiles li { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; }
.aq-tiles img { width: 100%; max-width: 100%; aspect-ratio: 1; display: block; border-radius: 16px; box-shadow: 0 1px 0 #ffffff99 inset, 0 18px 34px -18px #5a3c1e66; }
.aq-tiles strong { font-weight: 600; font-size: 19px; margin-top: 12px; }
.aq-tiles span { color: var(--soft); font-size: 16px; line-height: 1.5; }

/* the game itself */
.aq-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 56px); margin-top: 60px; }
.aq-screens figure { margin: 0; }
.aq-screens figure:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.aq-screens figure:nth-child(3) { margin-top: clamp(0px, 12vw, 180px); }
.aq-phone { display: block; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #4a3829, #2a1f16); box-shadow: 0 50px 90px -40px #3a2a1a99, 0 2px 0 #ffffff26 inset; max-width: 100%; }
.aq-phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.aq-screens figcaption { padding: 22px 6px 0; color: var(--soft); font-size: 17px; }
.aq-screens figcaption strong { color: var(--ink); font-weight: 600; }

/* the facts */
.aq-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.aq-facts li { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--rule); font-size: 21px; line-height: 1.35; }
.aq-facts li span { display: block; color: var(--soft); font-size: 16px; margin-top: 6px; line-height: 1.5; }

/* coming */
.aq-coming { text-align: center; padding: clamp(100px, 13vw, 190px) 0 clamp(90px, 11vw, 150px); position: relative; }
.aq-coming .icon { width: 120px; height: 120px; border-radius: 27px; display: block; margin: 0 auto 34px; box-shadow: 0 30px 60px -24px #5a3c1e80, 0 2px 0 #ffffff66 inset; }
.aq-coming .aq-lead { margin: 0 auto 18px; max-width: 20ch; }
.aq-coming p { color: var(--soft); margin: 0 auto; max-width: 46ch; }
.aq-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 34px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; }
.aq-links a { color: var(--clay-deep); }

/* the Acequia articles (privacy, support) */
body.acequia .article { position: relative; }
body.acequia .article h1 { font-weight: 600; letter-spacing: -.03em; }
body.acequia .article h2 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
body.acequia .article p, body.acequia .article li { color: var(--soft); }
body.acequia .article a { color: var(--clay-deep); }
body.acequia .article .small, body.acequia .small { color: var(--faint); }
body.acequia .article .button { background: var(--clay-deep); color: #FFFAF0; }
body.acequia details { border-color: var(--rule); }
body.acequia summary { color: var(--ink); }

/* phones */
@media (max-width: 900px) {
  .pour { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 22px; padding: 0 0 20px; }
  .pour-garden { order: -1; }
  .pour-garden img, .pour-garden svg { max-height: 46svh; width: auto; max-width: 100%; margin: 0 auto; }
  .pour-copy { padding: 0; }
  .kicker { margin-bottom: 12px; font-size: 11px; }
  .pour h1 { font-size: clamp(52px, 15vw, 84px); margin-bottom: 8px; }
  .tagline { font-size: clamp(21px, 5.4vw, 28px); margin-bottom: 16px; }
  .beats { max-width: none; }
  html.aq-live .beats { min-height: 4.8em; }
  .beats li { font-size: 17px; }
  .beats li.last { font-size: 22px; }
  .scroll-hint { margin-top: 10px; }
  .aq-two, .aq-word { grid-template-columns: minmax(0, 1fr); }
  .aq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .aq-tiles strong { font-size: 17px; }
  .aq-tiles span { font-size: 15px; }
  .aq-screens { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin: 40px auto 0; }
  .aq-screens figure:nth-child(n) { margin-top: 0; }
  .aq-phone { border-radius: 40px; }
  .aq-phone img { border-radius: 31px; }
  .aq-facts li { font-size: 19px; padding-right: 0; }
}
@media (max-width: 800px) { body.acequia > .wrap { padding: 0 22px; } }
