/* ============================================================
   Porto — design tokens extracted from Figma `Porto-Website`
   frame 2213:319 (v4). Port to tailwind.config at build time.
   The Figma file defines no variables; these are sampled hex.
   ============================================================ */

/* ---- Roboto Mono, self-hosted ------------------------------
   Variable weight axis 400–700 in a single file per subset, so
   every weight on the site costs one download. Self-hosted
   rather than linked to Google: no third-party request, no
   flash of fallback type, nothing to break offline.
   latin-ext is required — it carries ș and ț for Romanian.
   Apache License 2.0.
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/RobotoMono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/RobotoMono-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;
}

:root {
  --accent:      #3834F5;   /* VIEW ->, DOWNLOAD CV ->, all links */
  --accent-soft: #6966F7;
  --accent-pale: #B4B2FC;

  --bg:        #FFFFFF;
  --bg-raise:  #FAFAFA;
  --fg:        #000000;
  --fg-muted:  #666666;
  --fg-faint:  #8C8C8C;
  --rule:      #E5E5E5;
  --rule-soft: #EFEFEF;

  /* Type. 100% monospace, everywhere. DECIDED — do not reintroduce a
     sans fallback for prose; the mono is the identity. Compensate for
     mono's slower read with measure and line-height, not a typeface swap. */
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-body: var(--font-mono);

  --fs-xs:      0.6875rem;
  --fs-sm:      0.8125rem;
  --fs-base:    0.9375rem;
  --fs-lg:      1.0625rem;
  --fs-xl:      clamp(1.15rem, 0.9rem + 1vw, 1.5rem);
  --fs-2xl:     clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  --fs-display: clamp(2rem, 1.2rem + 3.6vw, 3.25rem);

  --lh-body: 1.7;          /* mono needs more than sans */
  --measure: 68ch;

  --shell: 960px;          /* content column, matches the 480->1440 Figma column */
  --gutter: clamp(1.75rem, 6vw, 2rem);  /* 28px floor on mobile */

  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;  --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem;   --s-10: 2.5rem; --s-12: 3rem;
  --s-16: 4rem;  --s-20: 5rem;  --s-24: 6rem;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2,0,0,1);
  --dur: 200ms;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Never set a `padding` shorthand on an element that also carries .shell —
   it wipes this padding-inline out. Use padding-top / padding-block. */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* --- the recurring Porto primitives --- */

/* section head: bold mono caps + hairline + right-aligned accent action */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-6);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-8);
}
.section-head h2 {
  margin: 0; font-size: 1.375rem; font-weight: 700;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.action { color: var(--accent); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }
.action:hover { text-decoration: underline; text-underline-offset: 4px; }

/* pill chip — 103x32 in Figma */
.pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); white-space: nowrap; background: var(--bg);
}
.pill[data-on] { background: var(--fg); color: #fff; border-color: var(--fg); font-weight: 600; }

.label {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint);
}

/* full-width outlined button — SHOW MORE */
.btn-wide {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 68px; border: 1px solid var(--rule); border-radius: var(--r-md);
  font-size: 1.0625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg); cursor: pointer; transition: border-color var(--dur) var(--ease);
}
.btn-wide:hover { border-color: var(--fg); }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
