/*
 * yaumna.com: Yaumna's front door (Ayman, 2026-11-30). One account for any social format, for anyone: it never reads as
 * Yaumi's, and English pages stay in English. The logo (brand/lockups.py) pairs a calligraphic Arabic hand with a Latin
 * face; Ayman chose the classical direction (2026-11-30): Gloock with Amiri, drawn as outlines. Colour: Yaumna's own,
 * indigo and apricot with a rose sun (Ayman, 2026-11-30), lit like One Day, with subtle gradients only: a soft sky on
 * the front page (home.css), a whisper of dawn atop other pages, a dusk-to-night footer. Never a strong or decorative
 * gradient.
 *
 * No scripts and no inline styles anywhere on yaumna.com: passkeys belong to it, and its content security policy
 * allows only this site's own files. Motion is CSS (scroll-driven animations); pages are complete without it.
 *
 * One container for everything: --page wide at most, the same gutters, so the logo, headlines and footer share an edge.
 * Type: Gloock for headlines and display (--display; one word turns apricot: Gloock has no italic), Instrument
 * Sans for everything else. Scale: 13 / 15 / 17 / 19 / 24 / 32 / 44 / 60 / 84.
 */
/* The fonts, hosted here (Ayman, 2026-11-30; OFL, licences in fonts/): Gloock and Instrument Sans, Latin and Latin
 * Extended, as Google Fonts splits them. The logo needs none: it's drawn (brand/). */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/gloock-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/gloock-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Yaumna's own palette (Ayman, 2026-11-30): indigo and apricot, never Yaumi's sky blue, sun yellow and navy night. */
  --ink: #221E55;          /* your people in the mark; text */
  --soft: #5B5779;
  --faint: #8A86A4;
  --you: #FF8A5C;          /* apricot: you, in the mark */
  --em: #E0612F;           /* apricot deep enough for words on white */
  --link: #4B3FB8;
  --sun: #F3A1B6;          /* the sun as a rose glow */
  --paper: #FFFFFF;
  --wash: #F6F4FA;
  --hair: #E7E4F0;
  --night: #15123A;
  --on-night: #EEEDF8;
  --on-night-soft: #ABA7C7;
  --dawn: #F1ECF8;
  --morning: #F3F2FC;
  --late: #FFF3EC;
  --display: "Gloock", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: 1200px;
  --gutter-l: max(20px, 5vw, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, 5vw, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background-color: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; }

/* The hint of the day: the page's one flat colour shifts as you scroll. */
@supports (animation-timeline: scroll()) {
  body { animation: daylight linear both; animation-timeline: scroll(root block); }
  @keyframes daylight { 0% { background-color: var(--dawn); } 18% { background-color: var(--morning); } 34%, 68% { background-color: var(--paper); } 100% { background-color: var(--late); } }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* The container: every band's inner wrapper. */
.inner { width: 100%; max-width: calc(var(--page) + var(--gutter-l) + var(--gutter-r)); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Headlines: Gloock, tight; one word turns apricot (Gloock has no italic, and a slanted copy of it would be fake). */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
.display em { font-style: normal; color: var(--em); }
/* The logo's own type (inline SVG, using the page's fonts). */
.logo text[font-family="Bodoni Moda"] { font-variation-settings: "opsz" 16; }

/* The bar */
.site-bar { position: relative; z-index: 5; }
.site-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; min-height: 84px; }
.site-bar .logo { display: block; height: 40px; width: auto; overflow: visible; }
.site-bar nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.site-bar nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.site-bar nav a:hover, .site-bar nav a[aria-current="page"] { color: var(--ink); }
.site-bar nav a.btn { color: var(--ink); padding: 0 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 26px; font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid rgba(34, 30, 85, 0.2); color: var(--ink); background: transparent; transition: border-color 0.15s, background-color 0.15s; }
.btn.small { min-height: 40px; padding: 0 18px; border-radius: 20px; font-size: 15px; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn:hover { border-color: rgba(34, 30, 85, 0.45); }
.btn.solid:hover { background: #2E2970; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Night: the end of every page, a faint dusk fading into night. */
.night {
  color: var(--on-night); background-color: var(--night);
  background-image: linear-gradient(to bottom, #2B2363 0%, var(--night) 55%);
  padding-top: clamp(72px, 9vw, 120px); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.night .closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; padding-bottom: clamp(56px, 8vw, 96px); }
.night .closing .logo { display: block; width: min(100%, 400px); height: auto; overflow: visible; }
.night .closing .words { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.night .closing p { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.015em; color: var(--on-night); max-width: 14em; }
.night .btn { color: var(--on-night); border-color: rgba(238, 237, 248, 0.3); }
.night .btn:hover { border-color: rgba(238, 237, 248, 0.6); }
.night .btn.solid { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.night .btn.solid:hover { background: #FFFFFF; }
.night .links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 24px; border-top: 1px solid rgba(238, 237, 248, 0.14); font-size: 14px; color: var(--on-night-soft); }
.night .links nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.night .links a { color: var(--on-night); text-decoration: none; }
.night .links a:hover { text-decoration: underline; }

/* Pages of words: Apps, Your account, Help, Privacy, Terms. A whisper of dawn at the top. */
.page { background-image: linear-gradient(to bottom, var(--dawn) 0, rgba(241, 236, 248, 0) 520px); background-repeat: no-repeat; }
.page main .inner { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.page .text { max-width: 720px; }
.page h1 { font-size: clamp(48px, 6.4vw, 84px); line-height: 1; margin-bottom: 22px; }
.page .lead { margin: 0 0 clamp(40px, 5vw, 64px); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: var(--soft); max-width: 32em; }
.page section { padding-block: 32px; border-top: 1px solid var(--hair); }
.page h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.14; letter-spacing: -0.01em; text-wrap: balance; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: var(--soft); }
.page p { margin: 0 0 14px; max-width: 38em; }
.page ul { margin: 0 0 14px; padding-left: 1.2em; }
.page strong { color: var(--ink); font-weight: 600; }
.page .actions + section { margin-top: 40px; }
.note { padding: 14px 18px; border-radius: 14px; background: var(--wash); font-size: 15px; color: var(--soft); }
.draft { display: inline-block; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px; background: #FFF1C7; color: #5C4600; font-size: 13px; font-weight: 500; }

/* Help: questions that open */
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--faint); transition: background-color 0.15s, border-color 0.15s; }
.faq details[open] summary::after { background: var(--you); border-color: var(--you); }
.faq details > div { padding: 0 0 20px; }

/* Apps */
.apps-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.app-row { display: flex; gap: 22px; align-items: flex-start; padding: 24px; border: 1px solid var(--hair); border-radius: 22px; background: var(--paper); }
.app-row img { width: 76px; height: 76px; border-radius: 22%; flex: none; }
.app-row .about { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-row h2 { margin: 0; }
.app-row p { margin: 0; }
.app-row .meta { font-size: 14px; color: var(--faint); }
.app-row.coming { border-style: dashed; background: transparent; }
.app-row .slot { width: 76px; height: 76px; border-radius: 22%; border: 2px dashed #C9C5DA; flex: none; }

/* The page that isn't there */
.lost { min-height: 52svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }

/* Opened from a Home Screen icon added when the account lived at yaumna.com: point to its new address. */
.moved { display: none; }
@media (display-mode: standalone) {
  .moved { display: flex; flex-direction: column; gap: 14px; margin: 24px var(--gutter-r) 0 var(--gutter-l); padding: 18px; border-radius: 18px; background: var(--wash); }
  .moved p { margin: 0; line-height: 1.5; }
  .site-bar nav, main, .night { display: none; }
}

@media (max-width: 720px) {
  .site-bar .inner { min-height: 68px; }
  .site-bar .logo { height: 32px; }
  .site-bar nav .hide-small { display: none; }
  .night .closing { grid-template-columns: minmax(0, 1fr); }
  .night .closing .logo { width: min(100%, 320px); }
}
