:root {
  --bg: #fbfbfa;
  --ink: #161616;
  --gray: #6b6b67;
  --line: #e6e5e1;
  --soft: #f1f0ec;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; background: var(--ink); color: #fff; padding: .5rem 1rem; font-size: 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.page { width: min(100% - 2rem, 62rem); margin: 0 auto; padding: 4.5rem 0 5rem; }
@media (min-width: 48rem) { .page { padding-top: 7rem; } }
header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
header .role { margin: .1rem 0 0; color: var(--gray); }
header .lead { margin: 1.4rem 0 0; font-size: 1.3rem; line-height: 1.5; max-width: 40rem; }

section { margin-top: 4rem; }
h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 500; color: var(--gray); }
p { margin: 0 0 1rem; max-width: 42rem; }

a.u { text-decoration: underline; text-decoration-color: #c9c8c3; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .25s var(--ease), color .25s var(--ease); }
a.u:hover { text-decoration-color: var(--ink); }

/* Three selected screenshots */
.shots { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { text-decoration: none; }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.shot:hover img { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); }
.shot b { display: block; font-weight: 500; margin-top: .7rem; }
.shot span { display: block; color: var(--gray); line-height: 1.45; }

/* Lists side by side */
.cols { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols h3 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 500; color: var(--gray); }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.cols li a { display: inline-block; font-weight: 500; text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.cols li a:hover { background-size: 100% 1px; }
.cols li span { display: block; color: var(--gray); line-height: 1.45; }
.cols li .mark { display: inline-block; width: .55rem; height: .55rem; border-radius: 2px; background: var(--c); margin-right: .45rem; vertical-align: .1em; }

/* Preview that follows the pointer */
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 22rem; pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--soft); }
@media (hover: none) { .peek { display: none; } }

/* Tools that open in place */
.tools { border-top: 1px solid var(--line); }
.tool { border-bottom: 1px solid var(--line); }
.tool > button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; text-align: left; background: none; border: 0; padding: 1rem 0; cursor: pointer; }
.tool > button b { font-weight: 500; }
.tool > button .host { font-family: var(--mono); font-size: 1rem; color: var(--gray); }
.tool > button .note { grid-column: 1 / -1; color: var(--gray); }
.tool > button .sign { display: inline-block; margin-right: .5rem; transition: transform .35s var(--ease); font-family: var(--mono); }
.tool.open > button .sign { transform: rotate(45deg); }
.tool .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tool.open .body { grid-template-rows: 1fr; }
.tool .body > div { overflow: hidden; }
.tool iframe { display: block; width: 100%; height: 34rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 1rem; }
.tool .body a { display: inline-block; margin-bottom: 1rem; }

/* Dated rows */
.dated { list-style: none; margin: 0; padding: 0; }
.dated li { border-top: 1px solid var(--line); }
.dated a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .6rem 0; text-decoration: none; transition: padding .3s var(--ease), background .3s var(--ease); }
.dated a:hover { padding-inline: .5rem; background: var(--soft); }
.dated time { font-family: var(--mono); font-size: 1rem; color: var(--gray); white-space: nowrap; }
@media (max-width: 30rem) { .dated a { grid-template-columns: 1fr; gap: 0; } }

.nums { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 40rem) { .nums { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.nums div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.nums b { font-family: var(--mono); font-weight: 500; }
.nums span { color: var(--gray); }

.form { display: grid; gap: .8rem; max-width: 34rem; }
.form input, .form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .55rem 0; font-size: 1.0625rem; transition: border-color .3s var(--ease); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 6rem; resize: vertical; }
.form button { justify-self: start; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.form button:hover { transform: translateY(-1px); opacity: .85; }
footer { margin-top: 5rem; color: var(--gray); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Scroll reveal: blur to sharp */
.rv { opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; filter: none; transform: none; }
  .peek { display: none; }
}
