/* nshortn.com hub. Hand-written, no build step. */

:root {
  color-scheme: light dark;
  --page: #faf6ee;
  --paper: #ffffff;
  --ink: #2b2a33;
  --muted: #5f5d6b;
  --accent: #8a4b2a;        /* links: 7:1 on page */
  --line: #ebe4d6;
  --shadow: 0 12px 30px -22px rgba(43, 42, 51, 0.5);
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #16151b;
    --paper: #201f27;
    --ink: #f1ede4;
    --muted: #b9b5c4;
    --accent: #f0b48c;
    --line: #2f2d38;
    --shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.9);
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--page);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

main,
footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

main {
  padding-top: clamp(2rem, 8vw, 4.5rem);
  padding-bottom: 2rem;
}


h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.intro p:last-child {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
}

.apps {
  display: grid;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.apps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.apps img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22%;
}

.apps div {
  min-width: 0;
}

.apps h2 {
  margin: 0 0 0.15rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

.apps h2 a {
  color: var(--ink);
  text-decoration: none;
}

.apps h2 a:hover {
  text-decoration: underline;
}

.apps p {
  margin: 0;
}

.apps .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.contact {
  margin: 2rem 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

@media (max-width: 420px) {
  .apps li {
    padding: 1rem;
  }

  .apps img {
    width: 48px;
    height: 48px;
  }
}

/* "Nn" mark: an alphabet-chart card, capital and lowercase on handwriting guide lines. */
.logo {
  display: block;
  width: 9rem;
  height: auto;
  margin: 0 0 1.25rem;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo .guide {
  stroke: var(--muted);
  stroke-opacity: 0.45;
  stroke-width: 2;
}

.logo .mid {
  stroke-dasharray: 5 6;
}

.logo .upper,
.logo .lower {
  stroke-width: 7;
}

.logo .upper {
  stroke: var(--ink);
}

.logo .lower {
  stroke: var(--accent);
}
