/* Joshua Craft — minimal, text-first, fast. */

* {
  box-sizing: border-box;
}

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #111;
  background: #fffefb;
}

header {
  margin-bottom: 2.5em;
}

header h1 {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.3em 0;
}

header h1 a {
  color: #111;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

nav a {
  margin-right: 14px;
  font-size: 0.95em;
  white-space: nowrap;
}

h2 {
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25em;
}

h2 a {
  color: #111;
}

h3 {
  font-size: 1em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: #1a4fd6;
  text-decoration: underline;
}

a:visited {
  color: #4b3f99;
}

ul, ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.5em;
}

em, .tagline {
  color: #444;
}

.date {
  color: #888;
  font-size: 0.9em;
  white-space: nowrap;
}

blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid #ddd;
  color: #444;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5em 0;
}

/* forms */

form {
  margin-top: 1em;
}

label {
  display: block;
  font-size: 0.95em;
  margin-bottom: 1em;
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3em;
  padding: 0.5em;
  font-family: inherit;
  font-size: 1em;
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
}

textarea {
  resize: vertical;
}

button {
  font-family: inherit;
  font-size: 1em;
  padding: 0.5em 1.4em;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

button:hover {
  background: #333;
}

.note {
  font-size: 0.85em;
  color: #888;
}

/* photos */

figure {
  margin: 1.5em 0;
}

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

figure.centered {
  text-align: center;
}

figure.centered img {
  max-width: 300px;
  margin: 0 auto;
}

figcaption {
  font-size: 0.85em;
  color: #888;
  margin-top: 0.4em;
}
