/* ============================================================
   Rachel Wnorowski — Portfolio
   Clean editorial. Warm paper palette, serif display, calm motion.
   ============================================================ */

:root {
  --paper: #f7f4ef;
  --paper-2: #efeae1;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --ink-faint: #8a847a;
  --line: #ddd6ca;
  --accent: #b4502a;       /* warm terracotta */
  --accent-soft: #c9663d;
  --white: #fffdfa;

  --maxw: 1100px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 1000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); align-items: center; }
.nav__links a {
  font-size: 0.9rem; color: var(--ink-soft); position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--ink); border-radius: 100px;
  padding: 0.4rem 1rem; color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) {
  .nav__links li:not(:last-child) { display: none; }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}
.section--alt { max-width: none; background: var(--paper-2); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.section__index {
  font-family: var(--font-body); font-size: 0.85rem;
  color: var(--accent); font-weight: 600; letter-spacing: 0.05em;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3rem);
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5; color: var(--ink-soft);
  max-width: 40ch; margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  font-size: 0.9rem; color: var(--ink-faint);
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero__meta li { position: relative; padding-left: 1.1rem; }
.hero__meta li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.8rem 1.6rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { margin-right: 0.55rem; flex: none; }
.btn:hover .btn__icon { animation: btn-bob 0.5s var(--ease); }
@keyframes btn-bob { 50% { transform: translateY(2px); } }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-soft); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.stat {
  background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem) 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 500;
  color: var(--accent); line-height: 1;
}
.stat__label { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35;
  font-weight: 400; color: var(--ink);
}
.about__body p { color: var(--ink-soft); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- Expertise ---------- */
.expertise {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.capability {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.75rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.capability:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(28,26,23,0.35);
  border-color: var(--accent);
}
.capability h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.capability p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .expertise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise { grid-template-columns: 1fr; } }

.tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.tag {
  font-size: 0.82rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4rem 0.9rem; background: var(--white);
}

/* ---------- Experience / Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.role { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.role__meta { display: flex; flex-direction: column; gap: 0.2rem; }
.role__years {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--accent); font-weight: 600;
}
.role__company { font-weight: 600; font-size: 1.05rem; }
.role__place { font-size: 0.88rem; color: var(--ink-faint); }
.role__detail {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.role__title { font-family: var(--font-display); font-size: 1.45rem; }
.role__title--sm { font-size: 1.15rem; }
.role__sub { font-size: 0.88rem; color: var(--ink-faint); margin: 0.15rem 0 0.9rem; }
.role__detail > p { color: var(--ink-soft); }
.role__points { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.role__points li {
  position: relative; padding-left: 1.4rem;
  color: var(--ink-soft); font-size: 0.97rem;
}
.role__points li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
.role__sub-block {
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}
@media (max-width: 720px) {
  .role { grid-template-columns: 1fr; gap: 1rem; }
  .role__detail { border-left: none; padding-left: 0; }
}

/* ---------- Credentials ---------- */
.credentials {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.cred-col__title {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.cred-col__title--spaced { margin-top: 2rem; }
.cred-list { display: flex; flex-direction: column; }
.cred-list li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.cred-list li:last-child { border-bottom: none; }
.cred-list span { font-weight: 500; font-size: 0.98rem; }
.cred-list em { font-style: normal; font-size: 0.85rem; color: var(--ink-faint); }
.cred-list--compact li { padding: 0.5rem 0; }
.cred-list--compact span { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 820px) { .credentials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .credentials { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.15;
  margin-bottom: 1rem;
}
.contact__lede { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2.25rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  text-align: center; color: var(--ink-faint); font-size: 0.85rem;
}

/* ---------- Motion / Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .capability:hover { transform: none; }
}
