/* noahchelednik.com: direction A, Title page (D-039), reduced to photo, titles and places (D-040).
   Colors, type and links come from tokens.css (D-016), which loads first.
   Never set a color here that is not a token. */

*, *::before, *::after { box-sizing: border-box; }
/* The whole page scales with the window: 16 px type on a phone, growing to
   20 px on a wide screen (D-049). Every size below is in rem, so it all follows. */
html {
  color-scheme: dark light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  font-size: clamp(100%, .8rem + .5vw, 125%);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.5 var(--serif);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
img { max-width: 100%; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--raised); color: var(--text); padding: .5rem .9rem; border-radius: 2px;
}
.skip:focus { top: 1rem; }

.page { max-width: 56rem; margin: 0 auto; padding: 4rem 2rem 0; }

/* The title page: everything on one center line */
.head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark { display: block; width: 3.5rem; height: 3.5rem; margin-bottom: 1.4rem; }
.name {
  font-weight: 500; font-size: clamp(2.4rem, 6vw + .5rem, 3.4rem);
  line-height: 1.05; letter-spacing: .01em; margin: 0;
}
.hair { height: 2px; width: min(18rem, 70%); background: var(--hair); margin: .9rem 0 1rem; }
/* Her three titles: one size, a step above the links below (D-049). */
.titles { font-style: italic; color: var(--muted); margin: .3rem 0 0; font-size: 1.5rem; line-height: 1.8; }
.photo {
  width: 16rem; margin: 2rem 0 0; padding: 6px;
  border: 1px solid var(--raised); outline: 1px solid var(--raised); outline-offset: 4px;
}
.photo img { display: block; width: 100%; height: auto; }
.intro { font-size: 1.3rem; margin: 1.6rem 0 0; }

/* The places she is (D-040): companies, platforms, freelance, email.
   Centered rows; a short hairline between groups. No headings. */
main { margin: 2.6rem auto 0; padding-bottom: 4rem; text-align: center; }
.places {
  list-style: none; margin: 0 auto; padding: 0; max-width: 40rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.7rem;
}
.places + .places, .places + .email { position: relative; margin-top: 2.6rem; }
.places + .places::before, .places + .email::before {
  content: ""; position: absolute; left: 50%; top: -1.35rem; transform: translateX(-50%);
  width: 6rem; height: 1px; background: var(--hair);
}
.places a { font-size: 1.2rem; }
/* A venture not linked from her titles would stand alone here, larger, by
   size and space only (D-045). Today every venture is a title (D-048). */
.places-venture { flex-direction: column; align-items: center; gap: 1rem; margin: 3.2rem auto 1.2rem; }
.places-venture a {
  font-size: clamp(1.9rem, 4vw + .6rem, 2.6rem); font-weight: 500;
  letter-spacing: .04em; line-height: 1.15;
  text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.places-venture + .places { margin-top: 3.6rem; }
.places-venture + .places::before { top: -1.8rem; width: 9rem; }
.email a { font-size: 1.1rem; overflow-wrap: anywhere; }


/* Phone */
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .page { padding: 2.4rem 1.4rem 0; }
  .photo { width: 11rem; }
  .titles { font-size: 1.25rem; line-height: 1.95; }
  .places a { font-size: 1.08rem; }
  .email a { font-size: 1rem; }
  .places { gap: .5rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .skip { display: none; }
}

/* 404 page */
.notfound { text-align: center; padding-top: 6rem; }
.notfound h1 { font-weight: 500; font-size: 2.4rem; margin: 0; }
