/* Simeon Adewole, portfolio
   Palette: cool sage paper, deep teal ink, one cardiac-red trace. */

:root {
  --paper: #E9EEEB;
  --panel: #DDE6E2;
  --ink: #0F2B30;
  --ink-2: #41595E;
  --rule: #BAC8C4;
  --trace: #D8402F;
  --deep: #0F2B30;
  --on-deep: #E9EEEB;
  --on-deep-2: #A9BDBA;
  --focus: #D8402F;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 78rem;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--display);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(233, 238, 235, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.bar-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--display);
}

.mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.bar nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }

.bar nav a {
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
}
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--trace); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-stretch: 75%;
  font-size: clamp(4rem, 15.5vw, 12.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.name span { display: block; }

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding-bottom: 0.6rem;
}

.trace {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2.25rem, 5vw, 4rem);
  height: clamp(9rem, 17vw, 14.5rem);
  border-block: 1px solid var(--rule);
  background-color: var(--panel);
  background-image:
    linear-gradient(to right, rgba(15, 43, 48, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 43, 48, 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgba(15, 43, 48, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 43, 48, 0.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

.trace svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.trace path {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.trace .ghost { stroke: rgba(15, 43, 48, 0.16); stroke-width: 2; }
.trace .line { stroke: var(--trace); stroke-width: 2.75; }

.dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--trace);
  box-shadow: 0 0 0 7px rgba(216, 64, 47, 0.18);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.dot.on { opacity: 1; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #1B4048; }

.text-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--trace);
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.section + .section { border-top: 1px solid var(--rule); }
.hero + .section { margin-top: clamp(1rem, 3vw, 2.5rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.split > h2 {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* About */

.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.25rem; }
.prose p { color: var(--ink-2); }
.prose .big {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.38;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Work */

.job {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule);
}
.job:first-child { padding-top: 0; border-top: 0; }
.job:last-child { padding-bottom: 0; }

.job-meta { font-family: var(--display); }

.dates {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.result {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 2px solid var(--trace);
  width: fit-content;
  font-weight: 650;
  font-size: 1.1rem;
  line-height: 1.25;
}

.result a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--trace);
}
.result a:hover { text-decoration-color: var(--ink); }

.job-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  font-stretch: 85%;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-2);
}

.job-body ul { margin-top: 1.4rem; max-width: 40rem; }

.job-body li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
}
.job-body li + li { margin-top: 0.7rem; }
.job-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.8rem;
  height: 2px;
  background: var(--trace);
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

.skill-col { padding-top: 1rem; }
.skill-col h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.proficient { border-top: 4px solid var(--ink); }
.exposure { border-top: 2px solid var(--ink-2); }
.practices { border-top: 1px solid var(--rule); }

.proficient li {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.exposure li {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.practices li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Open source and talks */

.rows { max-width: 40rem; }
.row {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.row:first-child { padding-top: 0; border-top: 0; }
.row:last-child { padding-bottom: 0; }
.row h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.row p { margin-top: 0.35rem; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact {
  background: var(--deep);
  color: var(--on-deep);
  padding-block: clamp(4.5rem, 10vw, 8.5rem) 2.5rem;
  --focus: #FF7B68;
}

.contact-title {
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  font-stretch: 85%;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.mail {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.mail a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-color: #FF6A55;
}
.mail a:hover { text-decoration-color: var(--on-deep); }

.mail-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
}

.btn-ghost {
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--on-deep);
  background: transparent;
  border: 1.5px solid rgba(233, 238, 235, 0.45);
  border-radius: 3px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--on-deep); background: rgba(233, 238, 235, 0.07); }

.copied {
  font-family: var(--display);
  font-size: 0.97rem;
  color: var(--on-deep-2);
}

.links {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
}
.links a {
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1.5px solid rgba(233, 238, 235, 0.4);
}
.links a:hover { border-bottom-color: var(--on-deep); }

.foot {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 238, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--on-deep-2);
}
.flat { color: #FF6A55; flex: none; }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lede { padding-bottom: 0; max-width: 32rem; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split > h2 { position: static; }

  .job { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .job-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; }
  .result { margin-top: 0; padding-top: 0; border-top: 0; border-bottom: 2px solid var(--trace); padding-bottom: 0.1rem; }

  .skills { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .bar-inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .bar nav { gap: 1.1rem; }
  .hero-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { transition: none; }
}

@media print {
  .bar, .trace, .hero-actions, .skip, .btn-ghost { display: none; }
  body { background: #fff; font-size: 11pt; }
  .contact { background: #fff; color: #000; }
}
