/* =========================================================
   EXCELLECT — Yan Fidelischii
   Ocean palette · Fraunces + IBM Plex · quiet, editorial
   Edit tokens below to reshape the whole site at once.
   ========================================================= */

:root {
  /* --- colour (your brand palette) --- */
  --paper:     #FCFDFF;                 /* base */
  --foam:      #F0F8FF;                 /* pale sky tint */
  --ink:       #0A1F3D;                 /* navy — text */
  --ink-soft:  rgba(10, 31, 61, 0.62);  /* muted navy */
  --ocean:     #1B6CA8;                 /* primary blue */
  --sky:       #5BB8F5;                 /* light blue */
  --sand:      #F5C48A;                 /* soft warm */
  --terra:     #C8703A;                 /* warm accent, used sparingly */
  --line:      rgba(10, 31, 61, 0.12);  /* hairline rules */

  /* --- type --- */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

/* --- reset-ish --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.6;
  /* sky fading to water at the very top of the page */
  background: linear-gradient(180deg, var(--foam) 0%, var(--paper) 360px) no-repeat, var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3.5rem);
}

.layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

/* =========================================================
   RAIL
   ========================================================= */
.rail {
  position: sticky;
  top: clamp(1.5rem, 4vw, 3rem);
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-top: 0.4rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 2.4rem;
}

.nav a {
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
  width: fit-content;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.rail-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 2.4rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-top: clamp(4rem, 8vw, 6.5rem); }
.section:first-of-type { padding-top: clamp(0.5rem, 3vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ocean);
  margin-bottom: 1.1rem;
}

.name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.role {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

.lead {
  max-width: 60ch;
  font-size: 1.06rem;
  color: rgba(10, 31, 61, 0.86);
  margin-top: 1.3rem;
}

.lead em { font-style: italic; color: var(--ocean); }

/* --- signature waterline / horizon --- */
.waterline {
  border: 0;
  height: 2px;
  border-radius: 2px;
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  background: linear-gradient(90deg,
      var(--ocean) 0%,
      var(--sky) 35%,
      var(--sand) 70%,
      var(--terra) 100%);
}

/* =========================================================
   ACHIEVEMENTS LIST
   ========================================================= */
.list {
  list-style: none;
  margin-top: 1.6rem;
}

.list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.list li:last-child { border-bottom: 1px solid var(--line); }

/* small ocean "bubble" marker */
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--ocean);
}

.list .lead {
  display: inline;
  margin: 0;
  max-width: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
}

/* =========================================================
   AIMS
   ========================================================= */
.aims {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
  max-width: 58ch;
}

.aims li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: rgba(10, 31, 61, 0.86);
}

.aims li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 500;
}

/* =========================================================
   CONTACT
   ========================================================= */
.email {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.015em;
  color: var(--ocean);
  text-decoration: none;
  transition: color 0.18s ease;
}

.email:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* =========================================================
   FOCUS (keyboard accessibility)
   ========================================================= */
a:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================
   MOTION — gentle hero reveal
   ========================================================= */
.about > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.about > *:nth-child(2) { animation-delay: 0.06s; }
.about > *:nth-child(3) { animation-delay: 0.12s; }
.about > *:nth-child(4) { animation-delay: 0.18s; }
.about > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .rail { position: static; top: auto; }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1.6rem;
  }
  .rail-note { display: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
