/* ============================================
   INGA GUDONIENE — Portfolio
   CSS Foundations
   ============================================ */


/* ── FONT IMPORTS ── */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');


/* ── RESET ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── TOKENS — COLOURS ── */

:root {
  --color-background:     #FFF9EF;
  --color-card:           #FFFFFF;
  --color-text-primary:   #212121;
  --color-text-secondary: #6B6860;
  --color-border:         #E2DACC;
  --color-accent-1:       #0730AE;
  --color-accent-2:       #401F28;
  --color-accent-3:       #DCE1E6;
}


/* ── TOKENS — SPACING ── */

:root {
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  64px;
  --space-2xl: 80px;
}


/* ── TOKENS — TYPOGRAPHY ── */

:root {
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Instrument Sans', system-ui, sans-serif;

  /* Display */
  --text-hero:    clamp(80px, 13vw, 300px);
  --text-section: clamp(32px, 4vw, 48px);
  --text-quote:   clamp(28px, 3.5vw, 48px);

  /* Label */
  --text-caps:    18px;
  --text-ui:      18px;

  /* Body */
  --text-lead:    20px;
  --text-default: 18px;
  --text-small:   14px;
}


/* ── BASE ── */

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-default);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


/* ── TYPOGRAPHY CLASSES ── */

/* Display — Instrument Serif */

.display-hero {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-section {
  font-family: var(--font-serif);
  font-size: var(--text-section);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-quote {
  font-family: var(--font-serif);
  font-size: var(--text-quote);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

/* Label — Instrument Sans */

.label-caps {
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.label-ui {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 400;
  line-height: 1.4;
}

/* Body — Instrument Sans */

.body-lead {
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.6;
}

.body-default {
  font-family: var(--font-sans);
  font-size: var(--text-default);
  font-weight: 400;
  line-height: 1.7;
}

.body-small {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
}


/* ── LAYOUT UTILITIES ── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  border: none;
}


/* ── LINKS & BUTTONS ── */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-caps);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: var(--space-sm);
}


/* ── NAVIGATION ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent-1);
}

/* Push page content below fixed nav */
.page-content {
  padding-top: 80px;
}


/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .nav {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* ── SCROLL FADE IN ── */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ── CUSTOM CURSOR ── */

* {
  cursor: none;
}

.cursor {
  width: 12px;
  height: 12px;
  background-color: var(--color-text-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.hovering {
  width: 20px;
  height: 20px;
}
.nav-logo-short {
  display: none;
}

@media (max-width: 768px) {
  .nav-logo-full {
    display: none;
  }

  .nav-logo-short {
    display: block;
  }

  .nav-links {
    gap: var(--space-md);
  }
}