/* Tokens */
:root {
  --sun: #f26b1d; --sea: #1b6fd1; --leaf: #2e8b57; --ink: #111; --paper: #fff; --ink-soft: #333;
  --gutter: 80px; --ease: cubic-bezier(.2, .8, .2, 1);
  --t-display: clamp(56px, 6.667vw, 96px);
  --t-plane: clamp(36px, 3.333vw, 48px);
  --t-section: clamp(32px, 2.778vw, 40px);
  --t-tagline: clamp(26px, 2.5vw, 36px);
  --t-heading: clamp(24px, 1.944vw, 28px);
}
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 94%; ascent-override: 100%; descent-override: 30%; }

/* Ground */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body { font-family: "Jost", "Jost Fallback", sans-serif; font-size: 19px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--sun); color: #fff; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
input, textarea { caret-color: var(--ink); }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type roles */
.t-display { font-size: var(--t-display); font-weight: 700; line-height: .9; letter-spacing: -.045em; }
.t-section { font-size: var(--t-section); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.t-tagline { font-size: var(--t-tagline); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; max-width: 540px; }
.t-heading { font-size: var(--t-heading); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.t-link { font-size: 17px; }
.t-small { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.t-nav { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.t-plane { font-size: var(--t-plane); font-weight: 700; line-height: 1; letter-spacing: -.035em; }

/* Page shell and chrome */
.page { position: relative; max-width: 1440px; margin: 0 auto; overflow: clip; }
.leaf-bar { position: absolute; right: 0; top: 0; width: 112px; height: 470px; background: var(--leaf); z-index: 3; }
.top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 200px 16px var(--gutter); margin-bottom: -16px; background: var(--paper); }
.top a { text-decoration: none; }
.top nav { display: flex; gap: 28px; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.top nav a:hover, .top nav a:focus-visible { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
main { position: relative; z-index: 1; }
section { padding: 112px var(--gutter) 0; }
main > section:last-child { padding-bottom: 120px; }
.plane { position: absolute; z-index: 0; }

/* Phone */
@media (max-width: 767px) {
  :root { --gutter: 16px; --t-display: min(56px, 14.36vw); }
  .leaf-bar { width: 24px; height: 240px; }
  /* 12px of backplate, not 16: the Home hero's sun sits 12px into main and the plate must not clip it. */
  .top { padding: 20px 40px 12px var(--gutter); margin-bottom: -12px; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .top > a:first-child { margin-right: auto; }
  .top nav { gap: 12px; }
  section { padding-top: 72px; }
}

/* Hero (Home) and the openings of Projects and Contact share this shape */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding-top: 120px; }
.hero-l, .hero-r { position: relative; z-index: 1; }
.hero .sun-q { left: 56px; top: calc(120px - var(--t-display) * .77); width: calc(var(--t-display) * 1.875); height: calc(var(--t-display) * 1.875); border-radius: 100% 0 0 0; background: var(--sun); }
.hero .links { list-style: none; display: flex; gap: 28px; margin-top: 40px; }
.hero .links a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hero .links a:hover span, .hero .links a:focus-visible span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hero .links svg { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-r { max-width: 540px; }
.hero-r p + p { margin-top: 16px; }
@media (min-width: 768px) and (max-width: 1439px) {
  .hero { grid-template-columns: max-content 1fr; }
  .hero-r { margin-right: 112px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-r { margin-right: 0; }
}
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  /* The leaf strip now paints above main, so the right column keeps clear of its 24px. */
  .hero-r { max-width: calc(100% - 8px); }
  .hero .sun-q { left: 4px; top: 12px; width: 100px; height: 100px; border-radius: 100px 0 0 0; }
  .hero .links { gap: 18px; margin-top: 24px; }
  .hero .links svg { width: 24px; height: 24px; }
}

/* My life, in snippets */
.snips-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 28px; }
.toggle { display: flex; gap: 6px; }
.toggle button { width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.toggle button[aria-pressed="true"] { background: var(--ink); }
.toggle svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.8; fill: none; }
.toggle button[aria-pressed="true"] svg { stroke: #fff; }
.band { background: var(--sea); margin: 0 calc(-1 * var(--gutter)); padding: 56px var(--gutter) 80px; }
.snips { list-style: none; display: flex; gap: 6px; height: 500px; }
.snip { flex: 0 1 28px; position: relative; overflow: hidden; border-radius: 4px; background: var(--paper); cursor: pointer; transition: flex-basis .38s var(--ease); }
.snip.open { flex: 0 0 560px; border-radius: 20px; }
.snip img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); z-index: 1; transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease), border-radius .25s var(--ease); }
.snip.open img { left: 16px; top: 16px; width: 528px; height: 352px; border-radius: 10px; }
.snip .meta { position: absolute; left: 16px; top: 382px; width: 528px; z-index: 0; }
.snip .meta h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.snip .meta p { margin-top: 4px; }
.snips.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; height: auto; }
.snips.grid .snip, .snips.grid .snip.open { flex: none; border-radius: 20px; padding: 12px 12px 16px; transition: none; }
.snips.grid .snip img { position: static; width: 100%; height: 186px; border-radius: 10px; transition: none; }
.snips.grid .snip .meta { position: static; width: auto; padding: 10px 4px 0; }
.snips.grid .snip .meta h3 { font-size: 18px; }
.snips.grid .snip .meta p { font-size: 14px; }
@media (max-width: 1199px) {
  .toggle { display: none; }
  .band { padding: 24px 0; }
  .snips { height: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; }
  .snips::-webkit-scrollbar { display: none; }
  .snip, .snip.open { flex: 0 0 358px; scroll-snap-align: center; border-radius: 20px; padding: 12px 12px 16px; transition: none; }
  .snip img, .snip.open img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 10px; transition: none; }
  .snip .meta { position: static; width: auto; padding: 12px 4px 0; }
  .snip .meta h3 { font-size: 20px; }
  .snip .meta p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .snip, .snip img { transition: none; } }

/* What I'm about */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; margin-top: 48px; }
.story { max-width: 700px; }
.part + .part { margin-top: 56px; }
.bar { display: block; width: 40px; height: 8px; margin-bottom: 14px; }
.bar.sun { background: var(--sun); } .bar.sea { background: var(--sea); } .bar.leaf { background: var(--leaf); } .bar.ink { background: var(--ink); }
.bar.out { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.part h3 { margin-bottom: 12px; }
.part p + p { margin-top: 14px; }
.part p b { font-weight: 700; }
.values { list-style: none; }
.values li { padding: 5px 0; }
/* The tiles */
.tiles { display: grid; gap: 16px; }
.tile { background: #f2f2f2; border: 1px solid var(--ink); border-radius: 20px; padding: 24px; }
.tile .th { display: flex; align-items: center; gap: 10px; }
.tile .th img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.tile .th h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.tile .pane { margin-top: 12px; border-radius: 12px; padding: 10px; }
.tile a { text-decoration: none; }
.tile .t { display: block; font-size: 14px; font-weight: 600; }
.tile .s { display: block; font-size: 13px; margin-top: 2px; }
.t-listen .pane { background: #121212; }
.sp { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; color: #fff; padding: 6px 0; min-height: 56px; }
.sp .play { position: relative; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #2c2c2c; }
.sp .play img { width: 44px; height: 44px; object-fit: cover; }
.sp .play svg { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; fill: #fff; opacity: 0; }
.sp .play:hover svg, .sp .play:focus-visible svg, .sp.playing .play svg { opacity: 1; }
.sp .play .glyph-stop { display: none; } .sp.playing .play .glyph-play { display: none; } .sp.playing .play .glyph-stop { display: block; }
.sp .s { color: #b3b3b3; }
.sp.playing .t { color: var(--leaf); }
.sp a:hover .t, .sp a:focus-visible .t { text-decoration: underline; text-underline-offset: 4px; }
.t-eat .pane { background: var(--paper); }
.be { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(26,26,26,.08); }
.be:last-child { border-bottom: 0; }
.be img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.be .t { font-weight: 700; } .be .s { color: #666; }
.be .score { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #d9dfd9; color: #117a5a; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); }
.t-read .pane { background: #f8f7f2; }
.gr { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(85,59,8,.15); }
.gr:last-child { border-bottom: 0; }
.gr img { width: 40px; height: 56px; object-fit: cover; }
.gr .s { color: #6c6c6c; }
.gr .st { font-size: 12px; color: #6c6c6c; white-space: nowrap; }
.gr .st.reading { color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) { .about-grid { grid-template-columns: 1fr; gap: 56px; } .tiles { max-width: 560px; } }
@media (max-width: 767px) { .about-grid { grid-template-columns: 1fr; gap: 56px; } .tiles { max-width: none; } }

/* Stuff I like */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tag { font-size: 13px; font-weight: 500; padding: 4px 10px 5px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tag[aria-pressed="true"] { background: var(--ink); color: #fff; }
.things { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 56px; margin-top: 48px; }
.thing .bar { margin-bottom: 0; }
.thing .name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 14px; }
.thing .s { margin-top: 6px; }
.thing .lk { display: inline-block; font-size: 17px; margin-top: 12px; }
.more { margin-top: 56px; }
.more:empty { display: none; }
.more button { font-size: 17px; font-weight: 500; padding: 12px 20px 13px; background: var(--ink); color: #fff; }
@media (max-width: 899px) { .things { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (max-width: 767px) { .things { grid-template-columns: 1fr; row-gap: 40px; } .filter { margin-top: 28px; } }

/* Projects */
.open-projects .sun-q { top: 145px; border-radius: 0 0 100% 0; }
.projects { padding-top: 112px; }
.proj { display: grid; grid-template-columns: 560px 1fr; gap: 64px; align-items: start; }
.proj + .proj { margin-top: 96px; }
.proj.sea { --c: var(--sea); --pt: #fff; } .proj.sun { --c: var(--sun); --pt: var(--ink); } .proj.leaf { --c: var(--leaf); --pt: #fff; } .proj.ink { --c: var(--ink); --pt: #fff; }
.shot { background: var(--c); padding: 24px; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.plane-v { display: flex; align-items: flex-start; background: var(--c); color: var(--pt); padding: 24px; height: 350px; }
.tag-status { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 8px 3px; background: var(--ink); color: #fff; }
.planning .tag-status { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.idea .tag-status { background: transparent; color: var(--ink); padding: 0; font-size: 14px; }
.words h2 { margin-top: 10px; }
.words p { margin-top: 12px; }
.words p b { font-weight: 700; }
.words .links { display: flex; gap: 24px; margin-top: 22px; }
@media (max-width: 1199px) { .proj { grid-template-columns: 1fr; gap: 24px; } .plane-v { height: 200px; } .proj + .proj { margin-top: 72px; } }
@media (min-width: 768px) and (max-width: 1199px) { .open-projects .sun-q { top: calc(144px - var(--t-display) * .975); } }
@media (max-width: 767px) { .open-projects .sun-q { top: 30px; } }

/* Contact */
.open-contact .sun-q { border-radius: 0 100% 0 0; background: var(--sea); }
.cand { position: relative; z-index: 1; width: 540px; max-width: 100%; }
.cand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chatwrap { padding-top: 112px; }
.chat { width: 920px; max-width: 100%; height: 620px; margin: 0 auto; display: flex; flex-direction: column; padding: 12px 18px 18px; }
.sbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.ind { display: flex; align-items: center; gap: 10px; }
.sig { display: flex; align-items: flex-end; gap: 3px; height: 12px; }
.sig i { display: block; width: 3px; border-radius: 1px; background: #1a1a1a; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 9px; } .sig i:nth-child(4) { height: 12px; }
.batt { display: block; width: 28px; height: 13px; padding: 2px; border: 1.5px solid #1a1a1a; border-radius: 4px; }
.batt i { display: block; width: 100%; height: 100%; border-radius: 1px; background: #1a1a1a; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 4px 8px; }
.face { border-radius: 50%; overflow: hidden; flex: none; width: 80px; height: 80px; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ph .face { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.face.av { width: 46px; height: 46px; }
.pill { width: 280px; padding: 12px 18px 10px; text-align: center; background: var(--paper); border-radius: 16px; }
.pill .nm-row { display: inline-flex; align-items: center; gap: 4px; }
.pill .nm { font-size: 20px; font-weight: 700; }
.pill .chev { width: 18px; height: 18px; stroke: #c7c7cc; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pill .loc { font-size: 14px; color: #666; margin-top: 4px; }
.thread { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; }
.thread > :first-child { margin-top: auto; }
.brow { display: flex; align-items: flex-end; gap: 10px; flex: none; }
.brow.out { justify-content: flex-end; }
.cname { font-size: 15px; color: #666; margin-bottom: 4px; }
.bub { max-width: 620px; border-radius: 26px; padding: 10px 14px; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.bub.in { background: var(--paper); color: var(--ink); }
.bub.out { background: var(--sea); color: #fff; }
.arrive { animation: rise .25s var(--ease); }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.comp { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); min-height: 49px; padding: 4px; }
.comp .ic { display: flex; padding-left: 10px; }
.comp .ic svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.comp .ta { font: inherit; font-size: 18px; padding: 5px 8px; border: 0; background: transparent; min-width: 0; }
.comp .ta:focus { outline: none; }
.comp:focus-within { outline: 2px solid var(--sea); outline-offset: 3px; }
.comp .ta[aria-invalid="true"] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.comp .send { width: 40px; height: 40px; border-radius: 50%; background: var(--sea); display: grid; place-items: center; margin-right: 3px; }
.comp .send:disabled { opacity: .4; cursor: default; }
.comp .send svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .cand { width: calc(100% - 8px); } .chat { height: 560px; padding: 10px 12px 12px; } .bub { font-size: 17px; } .chatwrap { padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { .arrive { animation: none; } }
