/* shreyanbuilds.com: the pages behind the front page (about, privacy, terms, support).
 *
 * Same black, same face, same hairlines as the front page. One centred column with the same margin
 * left and right on every screen.
 *
 * 🔴 Scrolling that never jumps: no vh, dvh or height media query, nothing fixed behind the page,
 * nothing that moves with the scroll. On a phone Safari's bar slides in and out as a swipe starts,
 * and anything tied to the window's live height would jump under the finger.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #0a0a0b;
  --ink: #f2f2f3;
  --body: #c6c6cb;
  --soft: #8d8d93;
  --faint: #616167;
  --rule: rgba(255, 255, 255, 0.09);
  --rule-hi: rgba(255, 255, 255, 0.22);
  --panel: rgba(255, 255, 255, 0.035);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(1rem, 5vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* A little white light from the top, painted on the page so it scrolls with it. */
  background: radial-gradient(70% 520px at 50% -80px, rgba(255, 255, 255, 0.055), transparent 70%) no-repeat, var(--bg);
}
::selection { background: var(--ink); color: var(--bg); }

.col { width: min(42rem, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- the way back: one quiet link, nothing else ----------
   The page itself carries the name and the photo, so the top of it does not repeat them. */
.bar .col { display: flex; align-items: center; height: 56px; }
.back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-left: -0.15rem;
  color: var(--faint); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: color 0.2s ease;
}
.back svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.back:hover, .back:focus-visible { color: var(--ink); }
.back:hover svg { transform: translateX(-3px); }

/* ---------- the document ---------- */
main.col { padding: clamp(1.5rem, 6vw, 3rem) 0 clamp(3rem, 8vw, 5rem); }
.doc h1 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  text-wrap: balance;
}
.doc .updated, .doc .sub { color: var(--soft); font-size: 0.95rem; margin: 0 0 2rem; }
.doc h2 {
  margin: 2.8rem 0 0.8rem; padding-top: 2.2rem; border-top: 1px solid var(--rule);
  color: var(--ink); font-size: clamp(1.2rem, 3.2vw, 1.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
}
.doc h3 { margin: 1.8rem 0 0.45rem; color: var(--ink); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.doc li::marker { color: var(--faint); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-hi); transition: text-decoration-color 0.2s ease; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc .lead {
  margin: 0 0 1.4rem; padding: 1.1rem 1.25rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  color: var(--ink); font-size: 1.1rem; line-height: 1.6;
}
.doc .lead-list { font-size: 1.04rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem 0.65rem 0; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--ink); font-weight: 700; }
.doc .cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 0.6rem; }
.doc .btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 46px; padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s var(--ease);
}
.doc .btn:active { transform: scale(0.98); }
.doc .btn.primary { background: var(--ink); color: var(--bg); }
.doc .btn.primary:hover { background: #fff; }
.doc .btn.soft, .doc .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-hi); }
.doc .btn.soft:hover, .doc .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.doc .btn svg { width: 15px; height: 15px; }

/* ---------- the about page ---------- */
.intro { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.6rem; }
.intro .photo {
  width: 92px; height: 92px; border-radius: 18px; flex: none;
  background: #17171a url("/me.jpg") center 20% / cover no-repeat;
  box-shadow: 0 0 0 1px var(--rule), 0 24px 44px -24px rgba(0, 0, 0, 0.9);
}
.intro h1 { margin: 0; }
.say { color: var(--ink); font-size: clamp(1.15rem, 3.2vw, 1.3rem); line-height: 1.55; margin: 0 0 0.6rem; text-wrap: pretty; }
.things { display: grid; gap: 0; margin: 0.4rem 0 0; }
.things .thing:last-child { border-bottom: 0; padding-bottom: 0.4rem; }
.thing {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
  color: inherit; text-decoration: none !important;
  transition: border-color 0.2s ease;
}
.thing:hover { border-bottom-color: var(--rule-hi); }
.thing .icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none; margin-top: 0.15rem;
  background: #1a1a1d center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.thing .icon.nylo { background-image: url("/assets/nylo-icon.png"); }
.thing .icon.cys { background-image: url("/assets/cys-icon.png"); image-rendering: pixelated; }
.thing .t { display: block; min-width: 0; }
.thing b { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.thing .d { display: block; color: var(--body); font-size: 0.98rem; line-height: 1.55; margin-top: 0.15rem; }
.thing em { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.45rem; font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--soft); transition: color 0.2s ease; }
.thing:hover em { color: var(--ink); }
.thing em svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.thing:hover em svg { transform: translateX(3px); }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.links a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--ink); font-size: 0.92rem; font-weight: 600; text-decoration: none !important;
  box-shadow: inset 0 0 0 1px var(--rule-hi);
  transition: background-color 0.2s ease;
}
.links a:hover { background: rgba(255, 255, 255, 0.06); }
.links svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
footer.col {
  padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--rule);
  text-align: center; font-size: 0.8rem; color: var(--faint);
}
footer a { color: var(--soft); text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 1px solid var(--rule-hi); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 30rem) {
  .intro .photo { width: 76px; height: 76px; border-radius: 16px; }
  .doc .cta { flex-direction: column; align-items: stretch; }
  .doc .btn { justify-content: center; }
}
