/* ==========================================================================
   Riyaz Ahamed — shared styles
   Used by every page: fonts, design tokens, base typography, header, footer.
   Page-specific styles live in home.css, article.css and page.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted, originally from Google Fonts) ---------- */
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/league-spartan-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: "League Spartan";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/league-spartan-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;
}
/* Only used for the oversized "I" in the home page "How I Work" intro */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF;
}

/* ---------- Design tokens ---------- */
:root {
  --font: "League Spartan", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: #404040;
  --ink: #000;
  --dark: #0b0d0f;
  --link: #0074db;
  --accent-blue: #004aad;
  --container: 1120px;
  --gutter: 20px;
  --section-pad: 75px;

  /* Signature gradients used for headline text */
  --grad-brand: linear-gradient(135deg, #020024 0%, #090979 35%, #00d4ff 100%);
  --grad-light: linear-gradient(154.7deg, #fff, #549ed9);

  /* Frosted dark glass (header pill, quote tabs) */
  --glass-bg: rgba(33, 33, 33, 0.8);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 14px 20px rgba(0, 0, 0, 0.21);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font);
}
h1 { font-size: 36px; font-weight: 600; }
h2 { font-size: 30px; font-weight: 500; }
h3 { font-size: 24px; font-weight: 400; }
h4,
h5,
h6 { font-size: 20px; font-weight: 400; }

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  border: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #549ed9;
  outline-offset: 3px;
}

/* Anchored sections land below the sticky header */
[id] {
  scroll-margin-top: 100px;
}

/* ---------- Utilities ---------- */
.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;
}

/* Inline SVG sprite holder (symbols are referenced with <use>) */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}
.skip-link:focus {
  top: 16px;
}

/* Gradient-filled text */
.text-gradient,
.text-gradient-light {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient { background-image: var(--grad-brand); }
.text-gradient-light { background-image: var(--grad-light); }

/* Standard content width + vertical rhythm (was Oxygen's section inner wrap) */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
}

/* Narrow reading column used by the article, contact and privacy pages */
.measure {
  width: min(700px, 100%);
}
@media (max-width: 767px) {
  .measure { max-width: 400px; }
}
@media (max-width: 479px) {
  .measure { max-width: 320px; }
}

/* Icons are inline SVGs that inherit text colour */
.icon {
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

/* List of labels, each followed by a small icon link (home + article) */
.link-list {
  width: fit-content;
  max-width: 100%;
  line-height: 1.2;
  list-style: none;
  padding: 0;
}
.link-list li {
  display: flex;
  align-items: center;
  padding: 8px;
}
.link-list a {
  display: flex;
  margin-left: 8px;
  color: var(--accent-blue);
}
.link-list svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.link-list--spotify a {
  color: #1db954;
}
.link-list--striped a {
  margin-left: 5px;
}
.link-list--striped li:nth-child(even) {
  background: #eceeef;
}
@media (max-width: 1120px) {
  .link-list { line-height: 0.8; }
}
@media (max-width: 991px) {
  .link-list { line-height: 1.4; }
}

/* Obfuscated e-mail address upgraded to a link by site.js */
.email-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Header — floating frosted pill navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.page-home .site-header {
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60%;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.site-nav__logo {
  display: flex;
}
.site-nav__logo img {
  display: block;
  width: 40px;
  height: 40px;
  margin: 12px 0;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
}
.site-nav__menu a {
  display: block;
  padding: 4px 20px 0;
  color: #fff;
}
.site-nav__menu .site-nav__cta {
  padding-bottom: 2px;
  border-radius: 100px;
  background: #fff;
  color: var(--ink);
}

@media (max-width: 1120px) {
  .site-nav { width: 70%; }
}
@media (max-width: 991px) {
  .site-nav { width: 80%; }
}
@media (max-width: 767px) {
  .site-nav {
    width: 97%;
    height: 60px;
    justify-content: center;
  }
  .site-nav__logo { display: none; }
  .site-nav__menu {
    width: 100%;
    justify-content: space-between;
  }
  .site-nav__menu a {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 479px) {
  .site-nav { height: 50px; }
  .site-nav__menu a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 15px;
  }
}
/* Very small phones: keep all five links on one line */
@media (max-width: 359px) {
  .site-nav__menu a {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  overflow: hidden;
  border-top: 3px solid #fff;
  background: var(--dark);
  color: #fff;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 15px var(--gutter);
}
.page-home .site-footer__inner {
  padding-top: var(--section-pad);
}

.site-footer__title {
  align-self: flex-start;
  margin-left: 20px;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__grid {
  display: flex;
  width: 100%;
  padding: 20px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  width: 33.33%;
  padding: 20px;
}
.site-footer__brand {
  align-items: flex-start;
  gap: 20px;
}
.site-footer__brand > img {
  display: block;
  width: auto;
  height: 90px;
}
.site-footer__nav {
  align-items: flex-end;
  text-align: center;
}
.site-footer__nav h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 400;
}
.site-footer__nav li {
  display: flex;
  flex-direction: column;
  align-items: inherit;
}
.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  list-style: none;
  padding: 0;
}
.site-footer__nav a {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: space-around;
  width: 100%;
  list-style: none;
  padding: 0;
}
.social-links a {
  display: flex;
  padding: 10px 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: background-color 0.2s;
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.7);
}
.social-links svg {
  display: block;
  width: 30px;
  height: 30px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid #fff;
}
.site-footer__bottom p {
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 991px) {
  .site-footer__grid { flex-direction: column; }
  .site-footer__col { width: 100%; }
  .site-footer__brand { align-items: center; }
  .social-links {
    justify-content: center;
    gap: 40px;
  }
  .site-footer__nav { align-items: center; }
  .site-footer__bottom p { margin-top: 5px; }
}
@media (max-width: 767px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
  }
  .site-footer__bottom p + p { margin-top: 10px; }
}

/* ==========================================================================
   Entrance animation guard
   An inline script in <head> adds .intro-pending when motion is allowed, so
   elements animated on load don't flash before GSAP takes over. It is always
   removed after a short timeout, so content can never stay hidden.
   ========================================================================== */
.intro-pending [data-intro] {
  visibility: hidden;
}
