/* ============================================================================
   SEE FOR YOURSELF — pure-HTML/CSS edition of the live site.
   Same rules as src/variants/SeeForYourself/SeeForYourself.module.css with
   plain class names, plus the shared reset from src/styles/global.css and
   self-hosted fonts (copied from @fontsource, latin + latin-ext subsets).
   ========================================================================== */

/* ---------- fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/schibsted-grotesk-latin-ext-400-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/schibsted-grotesk-latin-400-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/schibsted-grotesk-latin-ext-500-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/schibsted-grotesk-latin-500-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/schibsted-grotesk-latin-ext-600-normal.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/schibsted-grotesk-latin-600-normal.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: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/fragment-mono-latin-ext-400-normal.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: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/fragment-mono-latin-400-normal.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;
}

/* ---------- shared reset (from global.css) ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: #f5f4f0;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 140, 160, 0.28);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 140, 160, 0.45);
  background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- the design ---------- */
.root {
  --paper: #f5f4f0;
  --ink: #191813;
  --soft: #514d42;
  --meta: #5f5a4d;
  --hair: rgba(25, 24, 19, 0.16);
  --hair2: rgba(25, 24, 19, 0.09);
  --blue: #1f3fd8;

  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, Menlo, monospace;

  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.root.dark {
  --paper: #151410;
  --ink: #ece9df;
  --soft: #b7b1a2;
  --meta: #9a947f;
  --hair: rgba(236, 233, 223, 0.17);
  --hair2: rgba(236, 233, 223, 0.09);
  --blue: #9aacff;
}

.col {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.root a {
  color: var(--blue);
  text-decoration: none;
}
.root a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- nav ---------- */
.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}
.wordmark { color: var(--ink); }
.navMid { flex: 1; text-align: center; }
.navRight { display: inline-flex; align-items: center; gap: 16px; }
.navBar a { color: var(--meta); }
.navBar a:hover { color: var(--blue); text-decoration: none; }
.themeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hair2);
  border-radius: 50%;
  background: none;
  color: var(--meta);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.themeBtn:hover { color: var(--blue); border-color: var(--hair); }
/* one button, both icons; the edition decides which shows */
.themeBtn .iconSun { display: none; }
.root.dark .themeBtn .iconSun { display: block; }
.root.dark .themeBtn .iconMoon { display: none; }

/* ---------- hero — deliberately small; restraint is the design ---------- */
.hero { padding: clamp(64px, 12vh, 120px) 0 0; }
.name {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.thesis {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--soft);
  text-wrap: pretty;
}
.proof {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 14px;
}
.proof .arrow { display: inline-block; margin-right: 6px; }
.avail {
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--meta);
  text-transform: lowercase;
}
.avail::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 8px;
}

/* ---------- sections; the label sits ON its rule ---------- */
.section { margin-top: clamp(64px, 10vh, 104px); }
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  white-space: nowrap;
}
.label::after {
  content: '';
  height: 1px;
  width: 100%;
  background: var(--hair);
  transform-origin: left;
}
.note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--soft);
  max-width: 40em;
}

/* the only motion: rules draw in once. Reduced motion = always drawn. */
@media (prefers-reduced-motion: no-preference) {
  .label::after {
    transform: scaleX(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .label.in::after { transform: scaleX(1); }
}

/* ---------- repo ledger — the centerpiece ---------- */
.repos { margin-top: 8px; }
.repo {
  display: grid;
  grid-template-columns: 170px 1fr max-content;
  gap: 6px 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair2);
  align-items: baseline;
}
.repo:first-child { border-top: 1px solid var(--hair2); }
.rname { font-family: var(--mono); font-size: 14px; }
.rname a { color: var(--ink); }
.rname a:hover { color: var(--blue); text-decoration: none; }
.rname .up { color: var(--meta); font-size: 12px; }
.rname a:hover .up { color: var(--blue); }
.rdesc { font-size: 14.5px; color: var(--soft); max-width: 48em; }
.rmeta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--meta);
  white-space: nowrap;
}

/* ---------- employment, briefly ---------- */
.job {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 4px 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair2);
}
.job:first-child { border-top: 1px solid var(--hair2); }
.per {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--meta);
  padding-top: 3px;
  text-transform: lowercase;
}
.co { font-weight: 600; font-size: 15.5px; }
.role { font-weight: 400; color: var(--soft); }
.sum { font-size: 14.5px; color: var(--soft); max-width: 48em; margin-top: 2px; }
.sub { font-size: 13.5px; color: var(--meta); margin-top: 4px; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(64px, 10vh, 104px); padding-bottom: 72px; }
.aside {
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--meta);
  max-width: 44em;
}
.ats { border-top: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair2);
  font-size: 14.5px;
}
.k { font-family: var(--mono); font-size: 12px; color: var(--meta); padding-top: 2px; }
.v { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--soft); }
.fine {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--meta);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .repo { grid-template-columns: 1fr; gap: 3px; }
  .rmeta { order: -1; }
  .job { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .navMid { display: none; }
}
