/* Nayrouz Studio's look: the deep navy, ivory and gold of the live-captions big screen and the Coptic
   Transliterator app (coptic-transliterator-app/src/lib/theme.ts), Cinzel for titles, Cormorant italic for
   quiet lines. Dark only, like the app and the screen. Every text colour clears 4.5:1 on a card over the navy. */
@font-face { font-family: "NS Cinzel"; src: url("fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "NS Cormorant"; src: url("fonts/Cormorant-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --bg: #151a2c;
  --bg-top: #1d2238;
  --bg-deep: #0e111d;
  --card: rgba(243, 238, 226, 0.045);
  --card-border: rgba(243, 238, 226, 0.10);
  --gold-line: rgba(217, 166, 74, 0.22);
  --text: #f3eee2;
  --text-mid: #c4c6d2;
  --text-dim: #a7abbd;
  --gold: #e3b65c;
  --on-gold: #151a2c;
  --title: "NS Cinzel", Georgia, serif;
  --italic: "NS Cormorant", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  /* The screen's soft light from the top, drawn once over the top of the page and fading into the navy
     (a fixed background seams in a full-page capture and iOS ignores it). */
  background: radial-gradient(120% 900px at 50% 0%, var(--bg-top) 0%, var(--bg) 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; z-index: 1; }

main, footer { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Masthead */
.masthead { text-align: center; padding: 56px 0 8px; }
.masthead .cross { width: 88px; height: 88px; display: block; margin: 0 auto 18px; }
.wordmark { font-family: var(--title); font-weight: 700; font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: 0.06em; line-height: 1.1; margin: 0; }
.tagline { font-family: var(--italic); font-style: italic; color: var(--gold); font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin: 6px 0 0; }
.rule { width: 120px; height: 0; border: 0; border-top: 2px solid var(--gold); opacity: 0.8; margin: 22px auto; }
.lede { color: var(--text-mid); max-width: 36em; margin: 0 auto; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.jump a { display: inline-block; padding: 8px 16px; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.jump a:hover { border-color: var(--gold); }

/* Sections */
section { padding-top: 56px; scroll-margin-top: 16px; }
h2 { font-family: var(--title); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 2rem); letter-spacing: 0.03em; margin: 0 0 6px; }
.kicker { font-family: var(--italic); font-style: italic; color: var(--gold); font-size: 1.3rem; margin: 0 0 12px; }
section > p { color: var(--text-mid); max-width: 40em; margin: 0 0 20px; }

.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px; }

.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #ecc475; }
.btn-line { border: 1px solid var(--gold-line); color: var(--text); }
.btn-line:hover { border-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* The shop's featured listings: 2 across on a phone, 3 on a wide screen. */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0 0 22px; }
@media (min-width: 720px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.products a { display: block; height: 100%; background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; }
.products a:hover { border-color: var(--gold-line); }
.products img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--bg-deep); }
.products .name { display: block; padding: 10px 12px 2px; font-weight: 600; line-height: 1.3; }
.products .what { display: block; padding: 0 12px 12px; color: var(--text-dim); font-size: 0.9rem; }

.collections-title { font-size: 1rem; font-weight: 600; color: var(--text-mid); margin: 0 0 10px; }
.collections { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.collections a { display: inline-block; padding: 6px 13px; border: 1px solid var(--card-border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.92rem; }
.collections a:hover { border-color: var(--gold); }
.note { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 0; }

/* The two tools side by side on a wide screen. */
.tools { display: grid; gap: 18px; padding-top: 56px; }
@media (min-width: 720px) { .tools { grid-template-columns: 1fr 1fr; } }
.tools section { padding-top: 0; }
.tools .card { height: 100%; display: flex; flex-direction: column; }
.tools .card p { color: var(--text-mid); margin: 0 0 18px; }
.tools .card .actions { margin-top: auto; }
.status { align-self: flex-start; display: inline-block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }

footer { margin-top: 72px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--card-border); color: var(--text-dim); font-size: 0.92rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
footer p { margin: 4px 0; }
