/* Krotk's pages of words: privacy, terms, contact and deleting an account. The home page's own night (prototypes/site), made for
   reading: the brand, the four pages as brass plates (the wall's plate material, the one you're on in the light), what the page
   says in short as glass cards, then the page itself. The four are one deck: a finger slides between them. Arabic first; English beside it for the stores' and Meta's reviewers.
   Its own fonts, nothing asked of anyone else. No sound. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-600-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url(fonts/aref-ruqaa-qaf-plain-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  color-scheme: dark;
  --ink-0: #0b0a09;
  --glass: rgba(255, 244, 230, 0.045);
  --glass-2: rgba(255, 244, 230, 0.085);
  --line: rgba(255, 238, 218, 0.10);
  --line-2: rgba(255, 238, 218, 0.18);
  --text: #f5eee5;
  --text-2: rgba(245, 238, 229, 0.78);
  --text-3: rgba(245, 238, 229, 0.58);
  --gold: #dcbc8c;
  --gold-hi: #f3dfb8;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --star: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  /* (the column is the screen, whatever the line of plates would like to be) */
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--ink-0);
  color: var(--text);
  font: 400 17px/1.9 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
/* painted once, and never again */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 55vmax at -6% 26%, rgba(110, 28, 36, 0.42), transparent 62%),
    radial-gradient(60vmax 55vmax at 106% 74%, rgba(16, 78, 56, 0.42), transparent 62%),
    var(--ink-0);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
.wrap { width: min(100%, 860px); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- top: the brand home, and the other tongue ---------- */
.top { position: relative; z-index: 2; }
.top .bar { display: flex; align-items: center; justify-content: space-between; padding-block: max(14px, env(safe-area-inset-top, 0px)) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { position: relative; width: 20px; height: 34px; border-radius: 999px; border: 1.5px solid var(--gold); box-shadow: 0 0 18px rgba(220, 188, 140, 0.35), inset 0 0 10px rgba(220, 188, 140, 0.25); }
.brand-mark::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; translate: -50% -50%; background: var(--gold-hi); clip-path: var(--star); }
/* (the gold is painted only inside the word's own box, and the first ك's stroke reaches 6.6px above a line of this
   height and 6.6px past the word's right end: the box is widened to hold all of it, and the margins keep the word
   where it was; as on the home page) */
.brand-word { font-family: "Aref Ruqaa", "Amiri", serif; font-weight: 700; font-size: 30px; line-height: 1; padding: 10px 9px 6px; margin: -10px -9px 0; background: linear-gradient(180deg, #fbefd6 10px, #d8b47e 35.2px, #b48f5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.lang:hover { background: rgba(255, 244, 230, 0.13); box-shadow: inset 0 0 0 1px rgba(243, 223, 184, 0.42); }
.lang:focus-visible, .pages a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
html:not(.js) .lang { display: none; }

/* ---------- the four pages, as brass plates: the one you're on stands in the light ---------- */
/* (one line of them, always in sight above the page; on a narrow phone the line itself slides) */
.pages { margin: 14px -4px 0; padding: 6px 4px 12px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.pages a { flex: none; white-space: nowrap; }
.pages a { padding: 2px 14px 3px; border-radius: 1px; font-size: 13.5px; font-weight: 600; line-height: 1.6; color: #2a1c0c; text-shadow: 0 1px 0 rgba(255, 238, 200, 0.4); background: linear-gradient(180deg, #d0ae70, #b08c52 46%, #8f6f3e); box-shadow: 0 0 0 1px rgba(30, 20, 8, 0.7), inset 0 1px 0 rgba(255, 240, 205, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6); filter: brightness(0.56); transition: filter 500ms ease, translate 500ms var(--ease-out); }
.pages a:hover { filter: brightness(0.82); }
.pages a[aria-current="page"] { filter: none; translate: 0 -2px; box-shadow: 0 0 0 1px rgba(30, 20, 8, 0.7), inset 0 1px 0 rgba(255, 240, 205, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 34px -6px rgba(243, 223, 184, 0.34); }

/* ---------- the page ---------- */
/* The deck: the four pages side by side, one to a screen. A finger slides from one to the next and the browser settles it on a
   page (its own snapping scroll, so it follows the finger and nothing is drawn by script); each page scrolls down by itself. */
.deck { min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.deck::-webkit-scrollbar { display: none; }
.sheet {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* (words rising under the plates thin away, they are not cut) */
  mask-image: linear-gradient(180deg, transparent, #000 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22px);
}
.sheet > .wrap { min-height: 100%; display: grid; grid-template-rows: 1fr auto; }
.sheet article { padding-block: 8px 52px; }
h1 { margin-top: 16px; font-size: clamp(34px, 7.4vw, 54px); line-height: 1.22; font-weight: 700; text-wrap: balance; }
/* (its box is widened at both ends and drawn back by as much: the gold is painted only inside the box, and the ك's
   stroke reaches up to 6.5px past the word's end, where it was cut; the word stays where it was) */
h1 .gold { padding-inline: 0.16em; margin-inline: -0.16em; background: linear-gradient(180deg, #fbefd6, #d8b47e 70%, #b48f5a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(243, 223, 184, 0.22)); }
.lead { max-width: 36em; margin-top: 12px; font-size: clamp(17px, 2.1vw, 19.5px); line-height: 1.75; color: var(--text-2); text-wrap: pretty; }
.dated { margin-top: 10px; font-size: 14px; color: var(--text-3); }

/* in short: what the page says, a card a point */
.short { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
/* (four sit two by two, three in a row: never one left alone on a line) */
@media (min-width: 621px) { .short.n4 { grid-template-columns: repeat(2, 1fr); } .short.n3 { grid-template-columns: repeat(3, 1fr); } }
.short > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 13px; align-content: start; padding: 16px 16px 17px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.short i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--gold-hi); background: rgba(220, 188, 140, 0.1); box-shadow: inset 0 0 0 1px rgba(220, 188, 140, 0.22); }
.short b { align-self: end; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.short span { font-size: 15px; line-height: 1.65; color: var(--text-2); }

.body { margin-top: 12px; max-width: 43em; }
.body h2 { display: flex; align-items: center; gap: 11px; margin-top: 38px; font-size: clamp(20px, 2.6vw, 23px); line-height: 1.5; font-weight: 700; color: var(--gold-hi); }
/* (Krotk's own star before each part) */
.body h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--gold); clip-path: var(--star); }
.body p { margin-top: 10px; color: var(--text-2); text-wrap: pretty; }
.body ul, .body ol { margin-top: 10px; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--text-2); }
.body li { position: relative; padding-inline-start: 22px; }
.body ul li::before { content: ""; position: absolute; inset-inline-start: 3px; top: 0.78em; width: 6px; height: 6px; background: var(--gold); opacity: 0.8; clip-path: var(--star); }
.body ol { counter-reset: step; gap: 10px; }
.body ol li { counter-increment: step; padding-inline-start: 44px; min-height: 32px; }
.body ol li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0.1em; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; font-weight: 700; line-height: 1; color: var(--gold-hi); background: rgba(220, 188, 140, 0.1); box-shadow: inset 0 0 0 1px rgba(220, 188, 140, 0.24); }
.body b { font-weight: 600; color: var(--text); }
.body a.in { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(243, 223, 184, 0.4); text-underline-offset: 4px; }
.body a.in:hover { text-decoration-color: currentColor; }
/* a plain table of who, what and why, that turns into cards on a phone */
.grid3 { margin-top: 14px; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.grid3 > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 12px 16px; background: #100e0c; }
.grid3 b { font-weight: 600; color: var(--text); }
.grid3 span { color: var(--text-2); }
/* still to settle before it goes up: shown plainly, so nothing unfinished can be published by mistake */
mark.todo { padding: 1px 8px 2px; border-radius: 6px; color: #ffd9a0; background: rgba(255, 190, 110, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 190, 110, 0.45); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- reaching Krotk ---------- */
.reach { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.reach > span { font-size: 15px; color: var(--text-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16.5px; line-height: 1; color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.btn svg { flex: none; color: var(--gold-hi); }
.btn .wa-on { color: #25d366; }
.btn bdi { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.btn:hover { background: rgba(255, 244, 230, 0.13); box-shadow: inset 0 0 0 1px rgba(243, 223, 184, 0.42); }
.btn:active { transform: scale(0.97); }
.big-reach { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.big-reach a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 18px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), translate 300ms var(--ease-out); }
.big-reach a:hover { background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(243, 223, 184, 0.42); translate: 0 -2px; }
.big-reach i { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--gold-hi); background: rgba(220, 188, 140, 0.1); box-shadow: inset 0 0 0 1px rgba(220, 188, 140, 0.22); }
.big-reach i.wa-on { color: #25d366; background: rgba(37, 211, 102, 0.1); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.28); }
.big-reach small { font-size: 14px; line-height: 1.4; color: var(--text-3); }
.big-reach b { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* ---------- foot ---------- */
footer { border-top: 1px solid var(--line); padding-block: 20px max(22px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: 14px; line-height: 1.7; color: var(--text-3); }
footer .who { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
footer .pair { display: inline-flex; align-items: center; gap: 0 10px; white-space: nowrap; }
footer .star { width: 7px; height: 7px; flex: none; background: var(--gold); opacity: 0.75; clip-path: var(--star); }

/* ---------- the two tongues: Arabic unless English is asked for; with no script, one after the other ---------- */
html.js:not(.en) [data-lang="en"] { display: none !important; }
html.js.en [data-lang="ar"] { display: none !important; }
[lang="en"] { direction: ltr; }
html.en .body, html.en .lead, html.en h1 { text-align: left; }
html.en .short > div, html.en .big-reach a, html.en .grid3 > div { direction: ltr; text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  .pages, h1, .lead, .dated, .short, .body, .big-reach { animation: k-in 1000ms var(--ease-out) backwards; }
  h1 { animation-delay: 80ms; }
  .lead, .dated { animation-delay: 160ms; }
  .short, .big-reach { animation-delay: 240ms; }
  .body { animation-delay: 320ms; }
  @keyframes k-in { from { opacity: 0; translate: 0 12px; } }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .grid3 > div { grid-template-columns: 1fr; gap: 2px; }
  footer { flex-direction: column; text-align: center; }
  .pages { gap: 9px; }
  .pages a { padding-inline: 11px; font-size: 13px; }
  footer .who { flex-direction: column; }
  footer .then { display: none; }
  .reach { flex-direction: column; align-items: stretch; text-align: center; }
}
@media print {
  .ambient, .pages, .lang, .reach, .big-reach { display: none; }
  html, body { height: auto; }
  body { display: block; overflow: visible; background: #fff; color: #000; }
  .deck { display: block; overflow: visible; }
  .sheet { height: auto; overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .body p, .body li, .lead, .short span, .grid3 span { color: #000; }
}
