/* Shared look: ink on paper */
:root {
  --paper: #f3eee3;
  --ink: #1b1a17;
  --pencil: #8a8478;
  --red: #d23a26;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  background-color: var(--paper);
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1.5px dashed var(--pencil);
  font-family: var(--hand);
  font-size: 22px;
  color: var(--pencil);
}

footer nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 90%;
  transition: background-size 0.25s;
}

footer nav a:first-child { margin-left: 0; }
footer nav a:hover { background-size: 100% 2px; }
