8b2c35f76f
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
146 lines
10 KiB
CSS
146 lines
10 KiB
CSS
/* Public-site redesign foundation (PRD 1.4, task 24-1).
|
|
Every selector is scoped under body.site so the dashboards are unaffected.
|
|
Reference: docs/ux-mockup.html */
|
|
|
|
/* ---------- Tokens ---------- */
|
|
body.site{
|
|
--forest:#2D3624; --forest-2:#232A1C; --gold:#A68966; --gold-ink:#8A7555; --gold-lt:#C4A882;
|
|
--cream:#F4F1EA; --olive:#4A5D23; --ink:#1E2219; --muted:#5B6152; --line:rgba(45,54,36,.14);
|
|
--display:"Markazi Text","Times New Roman",serif; --body:"IBM Plex Sans Arabic",system-ui,sans-serif;
|
|
--r:10px; --ease:cubic-bezier(.2,.7,.2,1);
|
|
--shadow-1:0 1px 2px rgba(30,34,25,.06),0 4px 14px rgba(30,34,25,.06);
|
|
--shadow-2:0 2px 4px rgba(30,34,25,.08),0 18px 40px -12px rgba(30,34,25,.28);
|
|
}
|
|
html:has(body.site){scroll-behavior:smooth}
|
|
|
|
/* ---------- Ground and type ---------- */
|
|
body.site{
|
|
font-family:var(--body);color:var(--ink);font-size:17px;line-height:1.75;
|
|
background-color:var(--cream);
|
|
background-image:
|
|
repeating-linear-gradient(0deg, rgba(45,54,36,.025) 0 1px, transparent 1px 3px),
|
|
repeating-linear-gradient(90deg, rgba(45,54,36,.022) 0 1px, transparent 1px 4px);
|
|
}
|
|
body.site img{max-width:100%;display:block}
|
|
body.site a{color:inherit}
|
|
body.site .wrap{max-width:1200px;margin-inline:auto;padding-inline:28px}
|
|
body.site .skip{position:absolute;inset-inline-start:12px;top:-60px;background:var(--forest);color:var(--cream);padding:10px 16px;border-radius:8px;z-index:100}
|
|
body.site .skip:focus{top:12px}
|
|
body.site :focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
|
|
body.site h1,body.site h2,body.site h3{font-family:var(--display);font-weight:700;line-height:1.25;margin:0;color:var(--ink)}
|
|
body.site .eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.82rem;font-weight:600;letter-spacing:0;color:var(--gold-ink)}
|
|
html[lang=en] body.site .eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:.74rem}
|
|
body.site .eyebrow::before{content:"";width:22px;height:2px;background:currentColor;border-radius:2px}
|
|
body.site .art-no{font-family:var(--display);font-size:1.15rem;font-weight:600;color:var(--gold-ink)}
|
|
|
|
|
|
/* ---------- Buttons ---------- */
|
|
body.site .btn{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:12px 26px;border-radius:999px;
|
|
font:600 1rem/1 var(--body);text-decoration:none;cursor:pointer;border:0;overflow:hidden;isolation:isolate;
|
|
transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s}
|
|
body.site .btn-gold{background:var(--gold);color:var(--ink);box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -8px rgba(166,137,102,.8)}
|
|
body.site .btn-gold::after{content:"";position:absolute;inset:0;z-index:-1;
|
|
background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-120%);transition:transform .7s var(--ease)}
|
|
body.site .btn-gold:hover{transform:translateY(-2px);box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 16px 34px -10px rgba(166,137,102,.95), 0 0 0 6px rgba(166,137,102,.14)}
|
|
body.site .btn-gold:hover::after{transform:translateX(120%)}
|
|
body.site .btn-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--forest)}
|
|
body.site .btn-ghost:hover{background:var(--forest);color:var(--cream);transform:translateY(-2px);box-shadow:inset 0 0 0 1.5px var(--forest), 0 12px 26px -12px rgba(45,54,36,.7)}
|
|
body.site .on-dark .btn-ghost{color:var(--cream);box-shadow:inset 0 0 0 1.5px rgba(244,241,234,.6)}
|
|
body.site .on-dark .btn-ghost:hover{background:var(--cream);color:var(--forest)}
|
|
body.site .btn .arr{transition:transform .25s var(--ease)}
|
|
body.site .btn:hover .arr{transform:translateX(-4px)}
|
|
html[dir=ltr] body.site .btn .arr{transform:scaleX(-1)}
|
|
html[dir=ltr] body.site .btn:hover .arr{transform:scaleX(-1) translateX(-4px)}
|
|
|
|
|
|
/* ---------- Scroll progress ---------- */
|
|
body.site .site-progress{position:fixed;z-index:60;top:0;inset-inline:0;height:2px;pointer-events:none;transform:scaleX(0);transform-origin:right;
|
|
background:linear-gradient(90deg,#8A7555,#E2CDA4,#A68966)}
|
|
html[dir=ltr] body.site .site-progress{transform-origin:left}
|
|
|
|
/* ---------- Sections ---------- */
|
|
body.site section{position:relative}
|
|
body.site .sec{padding:120px 0}
|
|
body.site .sec-head{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:54px;flex-wrap:wrap}
|
|
body.site .sec-head h2{font-size:clamp(2rem,3.4vw,3rem);margin-top:12px}
|
|
body.site .sec-head p{max-width:30em;color:var(--muted);margin:0}
|
|
|
|
|
|
/* ---------- Navigation (24-2) ---------- */
|
|
body.site .nav{position:sticky;top:0;z-index:50;background:rgba(244,241,234,.82);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);
|
|
border-bottom:1px solid transparent;transition:border-color .3s, box-shadow .3s}
|
|
body.site .nav.scrolled{border-color:var(--line);box-shadow:0 8px 24px -18px rgba(30,34,25,.5)}
|
|
body.site .nav .wrap{display:flex;align-items:center;gap:28px;height:72px}
|
|
body.site .brand{display:flex;align-items:center;gap:12px;text-decoration:none}
|
|
body.site .seal{width:46px;height:46px;border:2px solid #1A1A1A;box-shadow:3px 3px 5px rgba(26,26,26,.35);background:#fff center/cover no-repeat;flex:none}
|
|
body.site .brand b{font-family:var(--display);font-size:1.35rem;line-height:1;display:block}
|
|
body.site .brand small{display:block;font-size:.72rem;color:var(--muted)}
|
|
html[lang=en] body.site .brand small{letter-spacing:.12em}
|
|
body.site .links{display:flex;gap:4px;margin-inline-start:auto}
|
|
body.site .links a{position:relative;padding:10px 14px;text-decoration:none;font-weight:500;font-size:.95rem;border-radius:8px;transition:color .2s}
|
|
body.site .links a::after{content:"";position:absolute;inset-inline:14px;bottom:4px;height:2px;background:
|
|
repeating-linear-gradient(90deg,var(--gold) 0 4px,transparent 4px 7px);transform:scaleX(0);transform-origin:var(--o,right);transition:transform .35s var(--ease)}
|
|
html[dir=ltr] body.site .links a::after{--o:left}
|
|
body.site .links a:hover{color:var(--olive)}
|
|
body.site .links a:hover::after,body.site .links a[aria-current]::after{transform:scaleX(1)}
|
|
body.site .nav-tools{display:flex;align-items:center;gap:10px}
|
|
body.site .lang{min-width:48px;min-height:44px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font:600 .85rem var(--body);cursor:pointer;transition:border-color .2s, transform .2s}
|
|
body.site .lang:hover{border-color:var(--gold);transform:translateY(-1px)}
|
|
body.site .login{font-size:.92rem;font-weight:500;text-decoration:none;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center}
|
|
body.site .login:hover{color:var(--olive)}
|
|
body.site .nav .btn{min-height:44px;padding:10px 20px;font-size:.92rem}
|
|
body.site .menu-btn{display:none;width:44px;height:44px;border-radius:10px;border:1.5px solid var(--line);background:#fff;cursor:pointer}
|
|
body.site .nav .seal{background-color:#fff}
|
|
body.site .lang{display:inline-grid;place-items:center;text-decoration:none;color:var(--ink);padding:0 12px}
|
|
body.site .nav button.login{background:none;border:0;cursor:pointer;font-family:var(--body);color:inherit}
|
|
body.site .menu-sheet{position:absolute;inset-inline:0;top:100%;background:var(--cream);border-bottom:1px solid var(--line);box-shadow:var(--shadow-2);padding:6px 18px 18px}
|
|
body.site .menu-sheet a:not(.btn),body.site .menu-sheet button{display:flex;align-items:center;width:100%;min-height:48px;padding:0 4px;border:0;border-bottom:1px solid var(--line);background:none;font:500 1rem var(--body);color:var(--ink);text-decoration:none;text-align:start;cursor:pointer}
|
|
body.site .menu-sheet a[aria-current]{color:var(--olive)}
|
|
body.site .menu-sheet .btn{width:100%;justify-content:center;margin-top:14px}
|
|
@media (min-width:1101px){body.site .menu-sheet{display:none!important}}
|
|
|
|
/* ---------- Footer (24-2) ---------- */
|
|
body.site .site-footer{background:var(--forest-2);color:var(--gold-lt);margin-top:120px;padding:72px 0 28px;font-size:.92rem;position:relative}
|
|
body.site .foot-band{position:absolute;top:0;left:0;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(196,168,130,.7),transparent)}
|
|
body.site .foot{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
|
|
body.site .foot h4{color:var(--cream);font-family:var(--display);font-size:1.15rem;margin:0 0 14px}
|
|
body.site .foot a{text-decoration:none;display:block;padding:10px 0;transition:color .2s, transform .2s}
|
|
body.site .foot a:hover{color:var(--cream);transform:translateX(-3px)}
|
|
html[dir=ltr] body.site .foot a:hover{transform:translateX(3px)}
|
|
body.site .foot .brand b{color:var(--cream)}
|
|
body.site .foot .brand small{color:var(--gold-lt)}
|
|
body.site .foot p{margin:16px 0 0;max-width:26em}
|
|
body.site .site-footer .legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(244,241,234,.1);margin-top:48px;padding-top:22px;font-size:.8rem;color:rgba(196,168,130,.75)}
|
|
body.site .foot span{display:block;padding:10px 0}
|
|
@media (max-width:1100px){
|
|
body.site .links{display:none}
|
|
body.site .menu-btn{display:grid;place-items:center;margin-inline-start:auto}
|
|
body.site .foot{grid-template-columns:1fr 1fr}
|
|
}
|
|
@media (max-width:760px){
|
|
body.site .nav-tools .btn,body.site .nav-tools .login{display:none}
|
|
body.site .foot{grid-template-columns:1fr}
|
|
}
|
|
|
|
/* ---------- Reveal (hidden only when JavaScript runs) ---------- */
|
|
body.site.js [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
|
|
body.site.js [data-reveal].in{opacity:1;transform:none}
|
|
body.site.js [data-reveal][data-d="1"]{transition-delay:.08s}
|
|
body.site.js [data-reveal][data-d="2"]{transition-delay:.16s}
|
|
body.site.js [data-reveal][data-d="3"]{transition-delay:.24s}
|
|
body.site.js [data-reveal][data-d="4"]{transition-delay:.32s}
|
|
body.site.js [data-reveal][data-d="5"]{transition-delay:.4s}
|
|
|
|
/* ---------- Responsive base ---------- */
|
|
@media (max-width:760px){
|
|
body.site{font-size:16px}
|
|
body.site .wrap{padding-inline:18px}
|
|
body.site .sec{padding:80px 0}
|
|
}
|
|
|
|
/* ---------- Reduced motion ---------- */
|
|
@media (prefers-reduced-motion:reduce){
|
|
body.site *, body.site *::before, body.site *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
|
|
body.site [data-reveal]{opacity:1;transform:none}
|
|
}
|