/* oatie.io. The look follows the screenshot of a classic minimalist personal site the user chose
   (measured from it on 2026-11-03): white, Helvetica, one dark grey for all text (#3A3A3A), links
   in that same grey, told apart by their underline (the user's choice), the creations' titles in bold,
   descriptions set off by a thick light-grey bar (#EEE). Its one colour, a muted indigo (#4D5893),
   marks what a creation is about. Its two columns become one here.
   Mobile first: a phone's styles, wider screens in min-width queries; hover only where there is
   one. */

:root {
  color-scheme: light;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --underline: rgb(58 58 58 / 0.35);
  --fill: #eeeeee;
  --accent: #4d5893;
  --accent-fill: #e8eaf3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 688px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Every link: the text's own colour, a light underline that darkens under the pointer. */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The intro in the text's own size, the creations' descriptions' (the user's ask). */
.intro {
  margin: 0;
}

/* The links under the intro, words like the intro's link, in the labels' smaller size (the user's
   choice). Each is a finger's target, 46 px tall, its padding reaching halfway into the gaps
   between them (the negative margins keep the words where they would be without it). */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.links a {
  display: inline-block;
  margin: 0 -16px;
  padding: 12px 16px;
}

.projects,
.labels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects {
  margin-top: 30px;
  padding-top: 40px;
  border-top: 2px solid #f2f2f2;
}

.project + .project {
  margin-top: 40px;
}

.project h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* The underline is the name's alone, not the logo's. */
.project h2 a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.project .name {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 0.2em;
}

.logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.details {
  padding: 2px 0 2px 18px;
  border-left: 6px solid var(--fill);
}

.description {
  margin: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 0.875rem;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* What a creation is built as: grey; what it is about: the indigo, quietly. */
.label {
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--fill);
  line-height: 1.4;
}

.label.category {
  background: var(--accent-fill);
  color: var(--accent);
}

.launched {
  margin: 0;
  color: var(--muted);
}

@media (hover: hover) {
  a:hover,
  .project h2 a:hover .name {
    text-decoration-color: currentColor;
  }
}

@media (min-width: 640px) {
  main {
    padding: 72px 24px 96px;
  }

  .details {
    padding-left: 28px;
    border-left-width: 8px;
  }
}
