/* Julianne's site: one clean page with a blue accent and a little motion. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #111114;
  --body: #2a2a30;
  --muted: #6b6b73;
  --faint: #9a9aa2;
  --line: #ededed;
  --card: #f6f6f3;

  --acc: #2463eb;
  --acc-soft: #eef3ff;
  --acc-line: #bcd0fb;
  --acc-pulse: rgba(36, 99, 235, 0.45);
  --acc-pulse0: rgba(36, 99, 235, 0);
}

html {
  background: #fff;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- top bar ---- */
.top {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 'JetBrains Mono', monospace;
  text-decoration: none;
}

.mark b {
  color: #8fb0ff;
}

.top nav {
  display: flex;
  gap: 26px;
}

.top nav a {
  /* padded out to a comfortable thumb-sized target, without moving anything */
  padding: 13px 4px;
  margin: -13px -4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

@media (hover: hover) {
  .top nav a:hover {
    color: var(--acc);
  }
}

/* ---- hero ---- */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hi {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 10px;
}

.name {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

/* each letter is its own span (script.js): they rise in, and hop on hover */
.name span {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* hover effects only where there's a real pointer, so a tap on a phone
   doesn't leave a letter or card stuck halfway through one */
@media (hover: hover) {
  .name span:hover {
    transform: translateY(-0.1em);
    color: var(--acc);
  }
}

.play .name span {
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 35ms + 150ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.45em); }
}

.role {
  font-size: 18px;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 8px 15px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  font-size: 13px;
  color: #3a3a40;
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--acc-pulse); }
  70%, 100% { box-shadow: 0 0 0 10px var(--acc-pulse0); }
}

/* ---- the ascii portrait ---- */
.portrait-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  /* on a phone, a sideways drag lights it up; an up-down one still scrolls */
  touch-action: pan-y pinch-zoom;
}

.portrait {
  font-family: 'JetBrains Mono', monospace;
  font-size: 5px; /* script.js sizes it to fill the card */
  white-space: pre;
  line-height: 1.18;
  letter-spacing: 0;
  overflow: hidden;
  color: #26262c;
  -webkit-user-select: none;
  user-select: none;
}

/* a blue copy on top, shown only in a circle around the cursor */
.portrait.glow {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  pointer-events: none;
  color: var(--acc);
  text-shadow: 0 0 6px rgba(36, 99, 235, 0.35);
  transition: opacity 0.5s ease;
  -webkit-mask-image: radial-gradient(circle 110px at var(--mx, -300px) var(--my, -300px), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(circle 110px at var(--mx, -300px) var(--my, -300px), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: #a3a3aa;
  text-align: center;
}

.hint-touch {
  display: none;
}

@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}

/* ---- sections ---- */
.sec {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 32px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

/* they fade up as they scroll into view (only when the script is running) */
.js .sec {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .sec.in {
  opacity: 1;
  transform: none;
}

.sec h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  padding-top: 4px;
}

.sec p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  max-width: 56ch;
  letter-spacing: -0.005em;
}

.sec p + p {
  margin-top: 16px;
}

/* ---- projects: a row under links that opens into a list, and each project
   in it opens in turn ---- */
.group summary,
.project summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  transition: padding-left 0.25s ease;
}

.group summary {
  padding: 15px 0;
  font-size: 17px;
}

.group summary::-webkit-details-marker,
.project summary::-webkit-details-marker {
  display: none;
}

.group summary em,
.project summary em {
  font-style: normal;
  color: var(--faint);
  font-size: 14px;
  margin-left: auto;
}

.project-toggle {
  font-weight: 400;
  color: #b4b4bb;
  width: 12px;
  text-align: center;
  transition: transform 0.25s ease, color 0.2s ease;
}

.project[open] > summary .project-toggle {
  transform: rotate(45deg);
  color: var(--acc);
}

/* projects reads like the other links: "open" and the same arrow, which
   turns to point down at the list once it's open */
.group-arrow {
  font-weight: 400;
  color: #b4b4bb;
  transition: transform 0.2s ease, color 0.2s ease;
}

.group .when-open,
.group[open] .when-shut {
  display: none;
}

.group[open] .when-open {
  display: inline;
}

.group[open] .group-arrow {
  transform: rotate(90deg);
  color: var(--acc);
}

@media (hover: hover) {
  .group summary:hover .group-arrow {
    color: var(--acc);
    transform: translate(2px, -2px);
  }

  .group[open] summary:hover .group-arrow {
    transform: rotate(90deg);
  }
}

.group-list {
  margin: 0 0 14px 2px;
  padding-left: 18px;
  border-left: 2px solid var(--acc-soft);
  animation: open 0.35s ease;
}

.project summary {
  padding: 10px 0;
  font-size: 16px;
}

@media (hover: hover) {
  .group summary:hover,
  .project summary:hover {
    padding-left: 10px;
  }

  .project summary:hover .project-toggle {
    color: var(--acc);
  }
}

.project-inner {
  padding: 4px 0 20px;
  animation: open 0.35s ease;
}

@keyframes open {
  from { opacity: 0; transform: translateY(-6px); }
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.sec .project-pitch {
  flex: 1 1 320px;
  font-size: 16px;
  color: var(--body);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 2s ease-out infinite;
}

.project-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 22px;
}

.project-wide {
  grid-column: 1 / -1;
}

.project h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 6px;
}

.sec .project-body p,
.project-body li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

.dash,
.checks {
  list-style: none;
}

.dash li + li,
.checks li + li {
  margin-top: 8px;
}

.dash b {
  font-weight: 600;
  color: var(--text);
}

.checks li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 1.5px solid #c9c9cf;
  border-radius: 50%;
}

.checks li.done {
  color: var(--body);
}

.checks li.done::before {
  border-color: var(--acc);
  background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.project-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--faint);
}

/* ---- links ---- */
.links {
  list-style: none;
}

.links li {
  position: relative;
  isolation: isolate;
}

.links a,
.links .off {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  transition: padding-left 0.25s ease;
}

.links li:first-child > * {
  padding-top: 2px;
}

.links li:last-child > * {
  border-bottom: 0;
}

.links em {
  font-style: normal;
  color: var(--faint);
  font-size: 14px;
  margin-left: auto;
}

.links b {
  font-weight: 400;
  color: #b4b4bb;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* a soft blue fill slides in behind the row */
.links a::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 3px;
  bottom: 3px;
  z-index: -1;
  background: var(--acc-soft);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.links li:first-child a::before {
  top: -6px;
}

.links a:focus-visible {
  padding-left: 12px;
  outline: none;
}

.links a:focus-visible::before {
  transform: scaleX(1);
}

.links a:focus-visible b {
  color: var(--acc);
  transform: translate(2px, -2px);
}

@media (hover: hover) {
  .links a:hover {
    padding-left: 12px;
  }

  .links a:hover::before {
    transform: scaleX(1);
  }

  .links a:hover b {
    color: var(--acc);
    transform: translate(2px, -2px);
  }
}

.links .off {
  color: #a3a3aa;
}

/* ---- currently ---- */
.now {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.now li {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .now li:hover {
    transform: translateY(-3px);
    border-color: var(--acc-line);
    box-shadow: 0 12px 26px rgba(20, 20, 40, 0.07);
  }
}

.now-label {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 5px;
}

.now-title {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

/* ---- footer ---- */
.foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #a3a3aa;
  font-size: 13px;
}

.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot a:hover {
  color: var(--acc);
}

/* ---- phones ---- */
@media (max-width: 720px) {
  .top { padding: 28px 20px 0; }
  .top nav { gap: 18px; }
  .wrap { padding: 0 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 52px 0 56px; }
  .sec { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 38px 0; }
  .now { grid-template-columns: minmax(0, 1fr); }
  .project-body { grid-template-columns: minmax(0, 1fr); }
  .foot { padding: 32px 20px 56px; }
}

/* ---- the cursor: a black dot, with a smooth line trailing behind it ---- */
.cursor-dot,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--text);
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.cursor-trail {
  width: 100vw;
  height: 100vh;
}

/* only with a real mouse: the dot stands in for the arrow */
.has-cursor,
.has-cursor a {
  cursor: none;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-trail {
  opacity: 1;
}

.has-cursor.cursor-away .cursor-dot,
.has-cursor.cursor-away .cursor-trail {
  opacity: 0;
}

/* over a link the dot grows a little */
.cursor-dot.on-link {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play .name span,
  .pill i,
  .tag i,
  .project-inner { animation: none; }
  .js .sec { opacity: 1; transform: none; transition: none; }
}
