/*
  Sopiko Abuladze — portfolio styles
  Layout: one-page site. Sticky menu, hero with proof numbers, global experience,
  challenges I solve, why me, experience, recommendations, contact.
*/

/* Tokens */
:root {
  --bg: #fbfcfc;
  --fg: #121517;
  --muted: #5b6469;
  --line: #e1e5e7;
  --soft: #f2f5f5;
  --accent: #0e5a61;
  --on-accent: #ffffff;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e1213; --fg: #e9edef; --muted: #98a3a9; --line: #242d30; --soft: #151b1d; --accent: #6fc4ca; --on-accent: #0e1213; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0e1213; --fg: #e9edef; --muted: #98a3a9; --line: #242d30; --soft: #151b1d; --accent: #6fc4ca; --on-accent: #0e1213; color-scheme: dark; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.65; margin: 0; padding-inline: 20px; padding-block: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1040px; margin-inline: auto; }
.label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Menu */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
.nav-in { max-width: 1040px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.pill { color: var(--on-accent); background: var(--accent); padding: 6px 16px; border-radius: 999px; }
@media (max-width: 760px) { .nav-links .opt { display: none; } }

/* Hero */
header { padding-block: clamp(72px, 12vw, 128px) clamp(56px, 8vw, 88px); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.eyebrow b { font-weight: 400; color: var(--accent); }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 15em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-top: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; font: inherit; font-weight: 500; font-size: 0.94rem; padding: 11px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid var(--accent); transition: opacity .15s; }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: none; color: var(--accent); }
.btn:hover { opacity: 0.86; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(56px, 9vw, 88px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.proof div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.proof dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.proof dt { margin-top: 10px; color: var(--muted); font-size: 0.92rem; max-width: 14em; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* Sections */
section { padding-block: clamp(64px, 9vw, 104px); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 40em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.1; }
.head p { color: var(--muted); }

/* Global */
.global { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.global-text { display: grid; gap: 16px; font-size: 1.08rem; max-width: 30em; }
.global-text p + p { color: var(--muted); font-size: 1rem; }
.global ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.global li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.global li b { font-family: var(--display); font-weight: 600; }
.global li span { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .global { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .global li { grid-template-columns: minmax(0, 1fr); } }

/* Challenges */
.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.help li { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); min-width: 0; }
.help .label { font-size: 0.7rem; }
.help h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
.help p { color: var(--muted); font-size: 0.95rem; }
.help .result { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; color: var(--fg); font-size: 0.9rem; }
.help .result b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
@media (max-width: 900px) { .help { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .help { grid-template-columns: minmax(0, 1fr); } }

/* Why me */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.why h3 { font-size: 1.12rem; letter-spacing: -0.015em; padding-top: 18px; border-top: 2px solid var(--accent); }
.why p { color: var(--muted); font-size: 0.97rem; margin-top: 10px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Experience */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.role { font-family: var(--display); font-weight: 600; }
.role span { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 0.94rem; }
.desc { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .rows li { grid-template-columns: minmax(0, 1fr); } }
.kv { margin: 0; display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 28px 32px; margin-top: 48px; }
.kv dt { padding-top: 3px; }
.kv dd { margin: 0; }
.kv ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.kv span { color: var(--muted); }
@media (max-width: 760px) { .kv, .kv ul { grid-template-columns: minmax(0, 1fr); } .kv { gap: 6px; } .kv dd { margin-bottom: 20px; } }

/* Recommendations */
.recs { display: grid; gap: 32px; }
.rec { margin: 0; display: grid; gap: 24px; max-width: 46em; }
.rec blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; letter-spacing: -0.01em; }
.rec blockquote p + p { margin-top: 16px; }
.rec figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--accent); flex: none; }
.who b { display: block; font-weight: 500; }
.who span { color: var(--muted); font-size: 0.9rem; }

/* Contact */
.contact { background: var(--soft); margin-inline: -20px; padding-inline: 20px; border-top: 0; }
.contact h2 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 13em; }
.mail { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 3.4vw, 1.6rem); margin-top: 28px; overflow-wrap: anywhere; }
.mail a { text-decoration: none; }
.mail a:hover { color: var(--accent); }
.roles { color: var(--muted); margin-top: 32px; max-width: 36em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
