/* Figma, 1996 (unofficial concept). Personal-homepage / community lineage.
   A centred table-like canvas on a tiled wallpaper of collaborators' cursors. */

:root {
  --tile: #6633CC;
  --panel: #FFFFFF;
  --ink: #000000;
  --ink-soft: #333333;
  --link: #0000EE;
  --visited: #551A8B;
  --hover: #CC0000;

  --orange: #FF3300;
  --coral: #FF6666;
  --purple: #9933FF;
  --violet: #6633CC;
  --cyan: #00CCFF;
  --blue: #0099FF;
  --green: #00CC66;
  --yellow: #FFCC00;
  --cream: #FFFFCC;

  --face: #CCCCCC;
  --face-dk: #999999;
  --title: #000080;

  --page-w: 720px;
  --rail-w: 200px;

  --f-body: "Times New Roman", Times, serif;
  --f-ui: Arial, Helvetica, sans-serif;
  --f-head: "Arial Black", Arial, Helvetica, sans-serif;
  --f-hand: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
}

* { box-sizing: border-box; }

html { background: var(--tile) url(img/tile.svg); }

body {
  margin: 0 0 32px;
  background: var(--tile) url(img/tile.svg);
  color: var(--ink);
  font: 16px/1.35 var(--f-body);
}

img { max-width: 100%; image-rendering: pixelated; }

a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  background: var(--cream);
  color: var(--ink);
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--cream); color: var(--ink); padding: 6px 10px;
  font: bold 14px var(--f-ui); border: 2px solid var(--ink);
}
.skip:focus { top: 8px; }

/* ---------- required concept bar */
.concept {
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  text-align: center;
  font: 13px/1.4 var(--f-ui);
}
.concept p { margin: 0; padding: 6px 12px; }
.concept a { font-weight: bold; margin-left: 8px; }

/* ---------- the "table" */
.page {
  width: var(--page-w);
  max-width: calc(100% - 16px);
  margin: 28px auto 0;
  background: var(--panel);
  border: 6px outset var(--face);
}

/* ---------- masthead: the canvas */
.mast-canvas {
  position: relative;
  min-height: 214px;
  padding: 34px 16px 22px;
  background: var(--panel) url(img/dots.svg);
  text-align: center;
  overflow: hidden;
}

.sel {
  position: relative;
  display: inline-block;
  padding: 0 18px 4px;
  border: 2px solid var(--blue);
}
.hd {
  position: absolute; width: 10px; height: 10px;
  background: var(--panel); border: 2px solid var(--ink);
}
.hd-tl { left: -6px; top: -6px; }
.hd-tr { right: -6px; top: -6px; }
.hd-bl { left: -6px; bottom: -6px; }
.hd-br { right: -6px; bottom: -6px; }

.wordmark {
  font: 76px/1.1 var(--f-head);
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--cyan);
}
.wordmark, .wordmark:visited, .wordmark:hover { color: var(--ink); }

.tagline {
  margin: 22px 0 0;
  font: bold 19px/1.3 var(--f-hand);
}

.peer { position: absolute; display: flex; align-items: flex-start; }
.peer img { display: block; }
.tag {
  margin: 26px 0 0 -4px;
  padding: 1px 6px;
  border: 1px solid var(--ink);
  font: bold 12px/1.3 var(--f-hand);
  white-space: nowrap;
}
.tag-c { background: var(--coral); }
.tag-b { background: var(--cyan); }
.tag-g { background: var(--green); }
.peer-1 { left: 52px; top: 70px; }
.peer-2 { right: 96px; top: 14px; }
.peer-3 { right: 44px; top: 96px; }

@media (prefers-reduced-motion: no-preference) {
  .peer-1 { animation: wander-1 9s steps(1) infinite; }
  .peer-2 { animation: wander-2 11s steps(1) infinite; }
  .peer-3 { animation: wander-3 13s steps(1) infinite; }
}
@keyframes wander-1 { 0% { transform: none; } 33% { transform: translate(14px, -6px); } 66% { transform: translate(6px, 8px); } }
@keyframes wander-2 { 0% { transform: none; } 40% { transform: translate(-16px, 10px); } 75% { transform: translate(-6px, 4px); } }
@keyframes wander-3 { 0% { transform: none; } 30% { transform: translate(-10px, -8px); } 70% { transform: translate(-20px, 2px); } }

/* ---------- bevelled image-style buttons */
.buttons {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: var(--face);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.buttons ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.btn {
  display: inline-block;
  padding: 4px 11px;
  border: 3px outset var(--face);
  background: var(--face);
  font: bold 13px/1.3 var(--f-ui);
  text-decoration: none;
  white-space: nowrap;
}
.btn, .btn:visited, .btn:hover { color: var(--ink); }
.btn:hover { text-decoration: underline; }
.btn:active { border-style: inset; }
.b-coral { background: var(--coral); border-color: var(--coral); }
.b-yellow { background: var(--yellow); border-color: var(--yellow); }
.b-cyan { background: var(--cyan); border-color: var(--cyan); }
.b-green { background: var(--green); border-color: var(--green); }
.b-violet, .b-violet:visited, .b-violet:hover { background: var(--violet); border-color: var(--violet); color: var(--panel); }
.b-grey { background: var(--face); border-color: var(--face); }
.b-go { background: var(--orange); border-color: var(--orange); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.b-violet:focus-visible { background: var(--violet); color: var(--panel); }
.b-go:focus-visible { background: var(--orange); }
.btn-big { padding: 8px 26px; font: 24px/1.2 var(--f-head); border-width: 5px; }

/* ---------- hero */
.hero {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 16px 8px 20px;
}
.hero-copy { flex: 1 1 0; min-width: 0; }
.hero h1 {
  margin: 0 0 22px;
  font: 38px/1.12 var(--f-head);
  text-shadow: 3px 3px 0 var(--coral);
}
.nw { white-space: nowrap; }
.hero-art { flex: 0 0 auto; margin: 0; }
.hero-art img { display: block; border: 2px solid var(--ink); }

/* pen-path horizontal rule */
hr.wave {
  height: 18px; margin: 10px 0; border: 0;
  background: url(img/rule.svg) repeat-x 0 50%;
}

/* ---------- rail + content */
.cols { display: flex; align-items: stretch; }

.rail {
  flex: 0 0 var(--rail-w);
  padding: 12px 10px 16px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font: 13px/1.3 var(--f-ui);
}
.rail h2 {
  margin: 14px 0 8px;
  font: 15px/1.2 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rail h2:first-child { margin-top: 0; }
.rail a:hover { color: var(--ink); }
.rail ul { margin: 0; padding: 0; list-style: none; }

.plist li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.plist img { flex: 0 0 32px; background: var(--panel); border: 1px solid var(--ink); }
.plist a { font-weight: bold; }
.plist span { display: block; margin-top: 1px; color: var(--ink); }

.rlist li { margin: 3px 0; padding-left: 12px; position: relative; }
.rlist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 4px; height: 4px; background: var(--panel); border: 1px solid var(--ink);
}

.flag {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--ink);
  font: bold 10px/1.4 var(--f-ui);
  font-style: normal;
  text-transform: uppercase;
  vertical-align: 1px;
}
.flag-new { background: var(--orange); color: var(--ink); }
.flag-beta { background: var(--cyan); color: var(--ink); }

.content { flex: 1 1 0; min-width: 0; padding: 14px 18px 8px 18px; }

.sec { margin-bottom: 30px; }
.sec p { margin: 10px 0; }

.bar {
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 4px outset var(--face);
  font: 19px/1.25 var(--f-head);
}
.bar-violet { background: var(--violet); border-color: var(--violet); color: var(--panel); }
.bar-coral { background: var(--coral); border-color: var(--coral); }
.bar-cyan { background: var(--cyan); border-color: var(--cyan); }
.bar-green { background: var(--green); border-color: var(--green); }
.bar-yellow { background: var(--yellow); border-color: var(--yellow); }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 14px; padding: 10px 12px;
  background: var(--cream);
  border: 2px dashed var(--ink);
}
.note img { flex: 0 0 32px; }
.note p { margin: 4px 0; }
.note-title { font: bold 17px/1.3 var(--f-hand); }

.pair { display: flex; gap: 3px; padding: 3px; border: 3px outset var(--face); }
.cell { flex: 1 1 0; padding: 10px 12px; border: 2px inset var(--face); }
.cell h3 { margin: 6px 0 4px; font: bold 16px/1.25 var(--f-ui); }
.cell p { margin: 6px 0; }

.split { display: flex; gap: 18px; align-items: flex-start; }
.split p:first-child { margin-top: 2px; font-size: 18px; }

.palette {
  flex: 0 0 auto;
  background: var(--face);
  border: 3px outset var(--face);
}
.pal-bar { height: 12px; background: var(--title); position: relative; }
.pal-bar span {
  position: absolute; left: 3px; top: 2px; width: 8px; height: 8px;
  background: var(--face); border: 1px solid var(--ink);
}
.pal-grid { display: grid; grid-template-columns: repeat(2, 40px); gap: 2px; padding: 4px; }
.tool {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--face); border: 2px outset var(--face);
}
.tool.on { background: var(--face-dk); border-style: inset; }

.flow { display: flex; align-items: center; margin: 4px 0 12px; }
.node {
  display: flex; padding: 6px;
  background: var(--panel); border: 3px outset var(--face);
}
.link-line {
  flex: 1 1 auto; height: 0; margin: 0 4px;
  border-top: 3px dashed var(--blue);
  position: relative;
}
.link-line::after {
  content: "\25BA" / ""; position: absolute; right: -6px; top: -11px;
  color: var(--blue); font: 16px/1 var(--f-ui);
}

.proof { display: flex; gap: 16px; align-items: flex-start; }
.quote { flex: 1 1 0; margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 10px; font: italic 19px/1.35 var(--f-body); }
.quote figcaption { font: 13px/1.4 var(--f-ui); padding-left: 24px; }

.sticky {
  flex: 0 0 150px;
  padding: 10px 12px 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 14px/1.3 var(--f-ui);
}
.sticky p { margin: 4px 0; }
.sticky .stat { margin: 0; font: 46px/1 var(--f-head); }
.sticky .fine { font-size: 12px; }

.names {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
  margin: 18px 0 0; padding: 8px 6px;
  list-style: none;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font: bold 13px/1.4 var(--f-ui);
  font-variant: small-caps;
  letter-spacing: 0.5px;
}
.names li { margin: 0 8px; }
.names li::before {
  content: "" / "";
  display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0;
  background: var(--panel); border: 1px solid var(--ink);
}

.sub { margin-top: -4px; font: bold 17px/1.3 var(--f-hand); }

.swatches {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  margin: 12px 0 16px; padding: 10px;
  list-style: none;
  border: 3px ridge var(--face);
  font: bold 14px/1.3 var(--f-ui);
}
.swatches a { display: flex; align-items: center; gap: 8px; padding: 2px; }
.sw { flex: 0 0 22px; height: 22px; border: 2px solid var(--ink); }
.sw-orange { background: var(--orange); }
.sw-coral { background: var(--coral); }
.sw-yellow { background: var(--yellow); }
.sw-green { background: var(--green); }
.sw-cyan { background: var(--cyan); }
.sw-blue { background: var(--blue); }
.sw-purple { background: var(--purple); }
.sw-violet { background: var(--violet); }
.sw-black { background: var(--ink); }
.sw-grey { background: var(--face); }

/* ---------- webring-style community strip */
.ring {
  display: flex; gap: 12px; align-items: center;
  margin: 22px 16px 16px;
  padding: 10px 14px;
  background: var(--cream);
  border: 4px ridge var(--face);
  font: 14px/1.5 var(--f-ui);
}
.ring img { flex: 0 0 36px; }
.ring h2 { display: inline; margin: 0 8px 0 0; font: 15px var(--f-head); text-transform: uppercase; letter-spacing: 1px; }
.ring ul { display: inline; margin: 0; padding: 0; list-style: none; }
.ring li { display: inline; }
.ring-links li + li::before { content: " | " / ""; }
.ring-links::before { content: "[ " / ""; }
.ring-links::after { content: " ]" / ""; }
.ring-more { display: block !important; font-size: 13px; }
.ring-more li + li::before { content: " \00B7  " / ""; }

/* ---------- footer */
.foot {
  padding: 12px 16px 16px;
  background: var(--face);
  border-top: 2px solid var(--ink);
  font: 12px/1.6 var(--f-ui);
}
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.foot h2 {
  margin: 10px 0 2px;
  font: 12px/1.3 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brackets { margin: 0; padding: 0; list-style: none; }
.brackets li { display: inline; white-space: nowrap; margin-right: 2px; }
.brackets li::before { content: "[" / ""; }
.brackets li::after { content: "]" / ""; }
.foot .flag { font-size: 9px; padding: 0 2px; }
.social { margin-top: 12px !important; padding-top: 8px !important; border-top: 1px solid var(--face-dk); text-align: center; font-size: 13px; }
.foot a:hover { color: var(--ink); }
