/* ATHFORMA coming-soon — styles. Fonts: self-hosted, SIL OFL 1.1 (see assets/fonts/licenses). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/noto-naskh-arabic-arabic-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); }

:root {
  --ivory: #F4F0E8;
  --ivory-deep: #EBE5D9;
  --charcoal: #252522;
  --muted: #5A5850;          /* 6.4:1 on ivory */
  --line: #D6CFC1;
  --terracotta: #A64B2A;     /* 5.0:1 on ivory — accent only */

  --font-display-lat: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body-lat: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Arabic families contain only Arabic glyphs; Latin runs (FOP, @athforma) fall through to the Latin face. */
  --font-display-ar: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  --font-body-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[lang="en"] {
  --font-display: var(--font-display-lat);
  --font-body: var(--font-body-lat);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
:root[lang="en"] body { line-height: 1.6; }
main { flex: 1; }
main:focus { outline: none; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10;
  background: var(--charcoal); color: var(--ivory); padding: .6rem 1rem; text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: baseline; gap: .75rem; text-decoration: none; flex-wrap: wrap; min-width: 0; }
.wordmark {
  /* Approved wordmark: bold sans-serif */
  font-family: var(--font-body-lat); font-weight: 700; letter-spacing: .12em;
  font-size: 1.3rem; line-height: 1; unicode-bidi: isolate;
}
.wordmark.small { font-size: 1.05rem; }
.brand-endorse { font-size: .8rem; color: var(--muted); }

.lang-toggle {
  appearance: none; background: transparent; color: var(--charcoal);
  border: 1px solid var(--charcoal); border-radius: 999px;
  padding: .4rem 1rem; min-height: 2.75rem; min-width: 2.75rem; cursor: pointer;
  font-size: .9rem; line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-toggle[lang="en"] { font-family: var(--font-body-lat); letter-spacing: .04em; }
.lang-toggle[lang="ar"] { font-family: var(--font-body-ar); }
.lang-toggle:hover { background: var(--charcoal); color: var(--ivory); }
.no-js .lang-toggle { display: none; } /* toggle needs JS; Arabic content is the no-JS default */

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7.5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { min-width: 0; }

.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
:root[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.eyebrow .name { color: var(--charcoal); font-weight: 500; }
.eyebrow .sep { width: 2rem; height: 1px; background: var(--terracotta); }

h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.25; letter-spacing: 0;
  overflow-wrap: break-word;
}
:root[lang="en"] h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.01em; }

.lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: #3B3A35; }

.status { margin-top: 2rem; display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; color: var(--terracotta); }
:root[lang="en"] .status { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.status .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--terracotta); }

.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 2px; text-decoration: none;
  font-weight: 500; font-size: .95rem; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--terracotta); color: var(--ivory); border: 1px solid var(--terracotta); }
.btn-primary:hover { background: #8E3F22; border-color: #8E3F22; }
.btn-ghost { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }
.handle { font-family: var(--font-body-lat); }

/* Abstract line art — no product imagery */
.hero-art { position: relative; width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; justify-self: center; }
.art-arch {
  position: absolute; inset-inline-start: 8%; top: 4%; width: 62%; height: 78%;
  border: 1px solid var(--charcoal); border-radius: 999px 999px 0 0; border-bottom: 0;
}
.art-frame {
  position: absolute; inset-inline-end: 6%; top: 22%; width: 42%; height: 40%;
  background: var(--ivory-deep); border: 1px solid var(--terracotta);
}
.art-bench {
  position: absolute; inset-inline: 0; bottom: 14%; height: 1px; background: var(--charcoal);
}
.art-bench::before, .art-bench::after {
  content: ""; position: absolute; top: 0; width: 1px; height: 2.5rem; background: var(--charcoal);
}
.art-bench::before { inset-inline-start: 18%; }
.art-bench::after { inset-inline-end: 18%; }

/* Planned categories */
.planned { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.planned-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.planned h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.planned-note { font-size: .85rem; color: var(--muted); }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.categories li {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.35;
  border-bottom: 1px solid var(--line);
}
.categories li + li { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
.num { font-family: var(--font-body-lat); font-size: .75rem; letter-spacing: .1em; color: var(--terracotta); font-weight: 500; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--ivory); padding-block: 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.location { margin-top: .5rem; font-size: .9rem; color: #CFC9BD; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a {
  display: inline-block; padding-block: .6rem; line-height: 1.6;
  text-decoration: underline; text-decoration-color: rgba(244, 240, 232, .35); text-underline-offset: .3em;
  font-size: .95rem;
}
.footer-links a:hover { text-decoration-color: var(--ivory); }
.site-footer :focus-visible { outline-color: var(--ivory); }
.copy { grid-column: 1 / -1; font-size: .8rem; color: #B5AFA3; border-top: 1px solid rgba(244, 240, 232, .15); padding-top: 1.25rem; }

/* Subtle entrance motion — only when the user has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .hero-art > * { animation: rise .9s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .js .hero-art > :nth-child(1) { animation-delay: .2s; }
  .js .hero-art > :nth-child(2) { animation-delay: .35s; }
  .js .hero-art > :nth-child(3) { animation-delay: .5s; }
  .status .dot { animation: pulse 2.8s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Responsive */
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 15rem; aspect-ratio: 1 / 1; order: -1; justify-self: start; }
  .categories { grid-template-columns: 1fr; }
  .categories li + li { padding-inline-start: 0; border-inline-start: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .actions .btn { width: 100%; }
}

/* Launch polish (approved 3 Oct 2026): artwork after the introduction on mobile; full-width buttons up to 480px. */
@media (max-width: 52rem) {
  .hero-copy { order: 0; }
  .hero-art { order: 1; }
}
@media (max-width: 30rem) {
  .actions .btn { width: 100%; }
}
