/* =========================================================
   BASE.CSS — GLOBAL FOUNDATION
   Contains ONLY:
   - Reset
   - Theme tokens
   - Fonts
   - Base typography
   - Core layout container
========================================================= */


/* =========================================================
   3. GOOGLE FONTS
========================================================= */
@import url("https://fonts.googleapis.com/css2\
?family=Roboto\
&family=Baloo+Bhaina+2:wght@500\
&family=Source+Sans+Pro:wght@300;400\
&family=Kalam\
&family=Covered+By+Your+Grace\
&family=Finger+Paint\
&family=Faster+One\
&family=Vast+Shadow\
&family=Caveat+Brush\
&family=Boogaloo\
&family=Rancho\
&family=Niconne\
&display=swap");


/* =========================================================
   1. RESET
========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  
}


/* =========================================================
   2. GLOBAL THEME TOKENS (LIGHT + DARK)
========================================================= */

/* LIGHT (default) */
:root {

  /* ===== FOUNDATION ===== */
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-hard: #ccc9c9;
  --card: #ffffff;
  --card-2: #020617;
  
  --divider: rgba(48, 38, 38, 0.3);

  --text: #0f172a;
  --text-muted: #475569;

  --border: rgba(0,0,0,0.08);
  --border-color: #ddd;
  --accent: #16a34a;

  /* ===== UI COMPONENTS ===== */
  --btn-bg: #ffffff;
  --btn-text: #111111;
  --btn-border: #323232;
  --btn-hover: #000;
  --btn-hover-bg: #111111;
  --btn-hover-text: #ffffff;

  --bg-tag: #484545a7;
  --tag-active: var(--accent);

  --search-bg: rgba(0,0,0,0.04);

  --bg-article:linear-gradient(
    180deg,
    rgba(157, 101, 101, 0.284),
    rgba(255,255,255,0.01)
   );
   
  --bg-grid: #C4C6C3;

  /* ===== EXTRA GLOBAL TOKENS ===== */
  --bg-yearbtn: rgba(34,118,138,0.442);
  --bg-backToTop: rgba(34,118,138,0.442);
  --bg-search: rgba(196,12,12,0.767);

  --tag-text: #f6f0f0;
  --nav-text: #000000;

  --border-strong: rgba(0,0,0,0.18);
  --menu-border: #a71e1e;
  --theme-toggle-border: #1f1d1d;

  /* ===== ABOUT / CV TOKENS ===== */
  --text-author: #000000;

  --cv-link-left: #00006c;
  --cv-link-right: #03515d;

  --cv-link-left-hover: #560524;
  --cv-link-right-hover: #02752a;

  --card-cv-right: linear-gradient(180deg,#767373cd,rgba(234,105,105,0.69));
  --card-cv-left: linear-gradient(180deg,#78c95fcd,rgba(48,46,46,0.567));
  --card-cv-personal: linear-gradient(180deg,#5b85a8a9,rgba(48,46,46,0.567));

  --metric-fill: linear-gradient(90deg,#000,rgba(38,227,28,0.855));


  /* SPACING TOKENS */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-7: 32px;
--space-8: 40px;


}


/* DARK THEME */
[data-theme="dark"] {

  --bg: #0f1115;
  --bg-soft: #16181d;
  --bg-hard: #16181d;
  --card: #16181d;
  --card-2: #f1f5f9;

  --divider: rgba(255,255,255,0.3);
  
  --text: #e6e6e6;
  --text-muted: #e3dede;

  --border: #2a2d35;
  --border-color: #333;
  --accent: #22c55e;

  --btn-bg: #1e1e1e;
  --btn-text: #f2f2f2;
  --btn-border: #b4adad;
  --btn-hover: #eaeaea;
  --btn-hover-bg: #ffffff;
  --btn-hover-text: #111111;

  --bg-tag: #484545a7;
  --tag-active: var(--accent);

  --search-bg: rgba(255,255,255,0.04);

  --bg-article:linear-gradient(
    180deg,
    rgba(55, 54, 54, 0.284),
    rgba(255,255,255,0.01)
    );

  --bg-grid: #4E4F4E;

  --bg-yearbtn: #156;
  --bg-backToTop: rgba(34,118,138,0.442);
  --bg-search: rgba(255,255,255,0.05);
  --bg-search-strong: rgba(255,255,255,0.10);

  --tag-text: #f0f6f0;
  --nav-text: #ffffff;

  --border-strong: rgba(255,255,255,0.22);
  --menu-border: #a71e1e;
  --theme-toggle-border: #ffffff;

  --text-author: #e3dede;

  --cv-link-left: #4ade80;
  --cv-link-right: #fbbf24;

  --cv-link-left-hover: #4ade80;
  --cv-link-right-hover: #fbbf24;

  --card-cv-right: linear-gradient(180deg,#2e2929d3,rgba(255,255,255,0.02));
  --card-cv-left: linear-gradient(180deg,#78c95fa9,rgba(48,46,46,0.567));
  --card-cv-personal: linear-gradient(180deg,#3a4650a9,rgba(48,46,46,0.567));

  --metric-fill: linear-gradient(90deg,#0000000b,rgba(55,126,51,0.436));
}





/* =========================================================
   4. FONT VARIABLES
========================================================= */
:root {
  --main-bg-color: #bd6418;

  --font1: "Baloo Bhaina 2", cursive;
  --font2: "Roboto", sans-serif;
  --font12: "Source Sans Pro", sans-serif;

  --font3: "Kalam", cursive;
  --font4: "Covered By Your Grace", cursive;
  --font5: "Finger Paint", cursive;
  --font6: "Faster One", cursive;
  --font7: "Vast Shadow", cursive;
  --font8: "Caveat Brush", cursive;
  --font9: "Boogaloo", cursive;
  --font10: "Rancho", cursive;
  --font11: "Niconne", cursive;

  /* semantic typography roles (Option 1.5 bridge) */
  --font-display: var(--font7);
  --font-text: var(--font8);
  --font-heading: var(--font3);
  --font-body: var(--font12);
  --font-ui: var(--font2);

  /* text scale */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-med: 1.15rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
}


/* =========================================================
   5. LOCAL FONT
========================================================= */
@font-face {
  font-family: "japanesefont";
  src: url("/fonts/JapaneseRobotItalic-owwXz.ttf") format("truetype");
  font-display: swap;
}


/* =========================================================
   6. BASE TYPOGRAPHY
========================================================= */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
}


/* =========================================================
   7. CORE CONTAINER
========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 18px;
}




/* =========================================================
   8. VARIABLE FONT SUPPORT
========================================================= */
@supports (font-variation-settings: "wght" 350) {
  body {
    font-family: var(--font12);
    font-weight: 350;
  }
}
