:root {
  --cream: #f4efe4;
  --ink: #132b4f;
  --blue: #2766b7;
  --soft: #7fabe0;
  --muted: #4d6584;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

/* ---------- banner ---------- */

#sea {
  position: fixed;
  inset: 0;
  display: block;
}

/* Everything sits above the sea. */
.hero,
main,
footer {
  position: relative;
}

.hero {
  height: 460px;
}

/* The name is drawn into the canvas; sea.js sets --name-bottom to where it ends. */
.hero-text {
  position: absolute;
  left: 20px;
  right: 20px;
  top: var(--name-bottom, 40px);
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.js .hero .name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin: 0;
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--cream);
}

.links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  pointer-events: auto;
}

.links a {
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.links a:hover {
  background: var(--ink);
  color: var(--cream);
}

.links a:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.poke {
  position: absolute;
  right: 16px;
  bottom: 10px;
  margin: 0;
  font-size: 11px;
  color: var(--blue);
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--cream);
  pointer-events: none;
}

/* ---------- the cv ---------- */

/* A cream halo around the CV text, so it reads cleanly when a shark swims underneath. */
main,
footer {
  text-shadow: 0 0 2px var(--cream), 0 0 4px var(--cream), 0 0 6px var(--cream);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 8px;
}

section {
  margin-bottom: 34px;
}

/* Section headings run into a wave rule. */
h2 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 16px;
  white-space: nowrap;
}

h2::after {
  content: "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
  flex: 1;
  overflow: hidden;
  color: var(--soft);
  font-weight: 400;
}

section p {
  margin: 0 0 6px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 14px 16px 12px;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--cream);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.card h3 a {
  color: inherit;
}

.tags {
  font-size: 12px;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline > li {
  padding: 8px 0 8px 16px;
  border-left: 1.5px dashed var(--soft);
  position: relative;
}

.timeline > li::before {
  content: "o";
  position: absolute;
  left: -5px;
  top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--blue);
  background: var(--cream);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: baseline;
}

.entry-head span {
  color: var(--muted);
}

.entry-head time {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.timeline p {
  margin: 2px 0 0;
}

.timeline ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.timeline ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 3px;
}

.timeline ul li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--blue);
}

footer {
  padding: 8px 20px 40px;
  text-align: center;
  color: var(--soft);
}

footer pre {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
}

@media (max-width: 600px) {
  .hero {
    height: 400px;
  }

  main {
    padding-top: 28px;
  }

  section {
    margin-bottom: 28px;
  }
}

html:not(.js) .hero {
  height: auto;
  border-bottom: 1.5px solid var(--ink);
  padding: 40px 20px 30px;
}

html:not(.js) .hero-text {
  position: static;
}

html:not(.js) #sea,
html:not(.js) .poke {
  display: none;
}
