/* guneetsidhu.com, round 3
   One small dark page in a monospace face: his name and a muted subtitle beside a round photo,
   two links, a short bio, and link underlines in four bright colours. Its style follows
   cassidoo.co closely, at the owner's request; the typeface, colour values, photo and words are
   his own. Plain HTML and CSS, no script. Dark only, by design.

   Layout: one centred column about 68 characters wide. */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* colour: charcoal, soft white, one grey, and the four underline brights */
  --page: #262626;
  --text: #f6f2f3;
  --muted: #a6a6a6;
  --pink: #f0508f;
  --yellow: #f2c230;
  --green: #2fd566;
  --blue: #2aa9f7;
  /* type: one mono for everything */
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* measure */
  --gutter: 20px;
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
}
::selection {
  background: var(--pink);
  color: var(--page);
}

.page {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 1.25rem 0.5rem;
}

/* the top: name and subtitle, the photo beside them */
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2.5rem;
}
/* as wide as the subtitle's first line ("Software Engineer in"), so the photo sits close */
.who {
  width: min(30.5ch, 100%);
}
.name {
  margin: 0 0 0.5em;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}
.sub {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--muted);
}
.face {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* links: plain text, a thick underline in one of the four brights */
a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--line, var(--pink));
  text-decoration-thickness: 0.17em;
  text-underline-offset: 0.3em;
}
a:hover {
  font-weight: 700;
}
a:focus-visible {
  outline: 2px solid var(--line, var(--pink));
  outline-offset: 4px;
  border-radius: 2px;
}
.pink {
  --line: var(--pink);
}
.yellow {
  --line: var(--yellow);
}
.green {
  --line: var(--green);
}
.blue {
  --line: var(--blue);
}

.links {
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
}

.bio p {
  margin: 1em 0;
}

.foot {
  margin: 0;
  padding: 2.25rem 0 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 36rem) {
  .top {
    flex-direction: column;
  }
  .who {
    text-align: center;
  }
  .face {
    width: 180px;
    height: 180px;
  }
}
