/* Perpetual Adventure */

:root {
  --fg: #111;
  --dim: #6b6b6b;
  --rule: #ddd;
  --link: #0b3d91;
  --bg: #fff;

  /* Wordmark treatment. Swap this block to change the PERPETUAL ADVENTURE
     lockup everywhere at once. See /wordmark for the options. */
  /* Option 09: monospace caps. */
  --wordmark-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wordmark-weight: 600;
  --wordmark-spacing: 0.14em;
  --wordmark-style: normal;
  --wordmark-transform: uppercase;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Times New Roman", Times, serif;
  font-size: 19px;
  line-height: 1.6;
}

.page {
  max-width: 660px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* ---- wordmark / masthead ---- */

.wordmark {
  font-family: var(--wordmark-font);
  font-weight: var(--wordmark-weight);
  font-style: var(--wordmark-style);
  letter-spacing: var(--wordmark-spacing);
  text-transform: var(--wordmark-transform);
  color: var(--fg);
  text-decoration: none;
  display: inline-block;
}

a.wordmark:hover { text-decoration: none; opacity: 0.65; }

.masthead { margin-bottom: 3rem; }
.masthead .wordmark {
  font-size: 1.15rem;
  white-space: nowrap;
  /* monospace carries more left side bearing than Times; pull it flush
     with the body text below it */
  margin-left: -1px;
}

nav {
  margin-top: 0.55rem;
  color: var(--dim);
  font-size: 0.92rem;
}

nav a {
  color: var(--dim);
  text-decoration: none;
  margin-right: 1.3rem;
}

nav a:hover { color: var(--fg); text-decoration: underline; }

/* ---- home ---- */

/* the wordmark is one size everywhere; the front door is not a different site */
.home-wordmark { display: inline-block; }

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

.index-list li { margin-bottom: 1.5rem; }

.index-list .date {
  color: var(--dim);
  display: block;
  font-size: 0.9rem;
}

.index-list a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- article ---- */

article h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.meta {
  color: var(--dim);
  font-size: 0.9rem;
  margin: 0 0 2.8rem;
}

article h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.8rem 0 1rem;
}

/* roman numerals in the Declaration */
article h2 .rn {
  color: var(--dim);
  font-weight: 400;
  margin-right: 0.7em;
}

article p { margin: 0 0 1.3rem; }

article ul {
  margin: 0 0 1.3rem;
  padding-left: 2.2ch;
  list-style: none;
}

article ul li::before {
  content: "\2014\00a0";
  color: var(--dim);
}

blockquote {
  margin: 0 0 1.3rem;
  padding-left: 1.6ch;
  position: relative;
}

blockquote p { margin-bottom: 0.55rem; }

blockquote p::before {
  content: "\201C";
  position: absolute;
  left: 0;
  color: var(--dim);
}

/* the Notch interview block */
pre.fence {
  margin: 0 0 1.4rem;
  padding: 0 0 0 1.4rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
  border-left: 2px solid var(--rule);
}

pre.fence .cite {
  color: var(--dim);
  font-size: 0.9rem;
}

code {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  background: #f4f3f0;
  padding: 0 0.3ch;
}

figure { margin: 2.2rem 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

figure img.pixel { image-rendering: pixelated; }

/* tall images: cap them so they don't dominate the column */
figure.narrow img {
  max-width: 380px;
  margin-left: 0;
}

a { color: var(--link); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0 1.5rem;
}

footer {
  color: var(--dim);
  font-size: 0.92rem;
}

footer a { color: var(--dim); }

.wip { margin-top: 2rem; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .page { padding: 2.5rem 1.2rem 4rem; }
  .masthead { margin-bottom: 2.2rem; }
  article h1 { font-size: 1.3rem; }
}

/* narrow phones: shrink the mark rather than let it wrap or clip */
@media (max-width: 400px) {
  .masthead .wordmark { font-size: 1.02rem; letter-spacing: 0.1em; }
}

@media (max-width: 345px) {
  .masthead .wordmark { font-size: 0.88rem; letter-spacing: 0.06em; }
}
