/* David Evans-Wood. Black and white, from the Home-BW design. */

:root {
  --ink: #141414;
  --text: #2b2a27;
  --muted: #4a4843;
  --rule: #c9c6c0;
  --light: #e9e7e3;
  --paper: #ffffff;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--sans); }
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.sheet {
  width: 100%;
  max-width: 1180px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 0 74px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.masthead {
  padding: 44px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
}
.masthead .name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}
.masthead nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Small caps labels */
.label, .kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.kicker { letter-spacing: 1.2px; }
.label-link { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-decoration: none; padding: 10px 0; text-transform: uppercase; }

/* Hero */
.hero {
  padding: 84px 40px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 58px;
  line-height: 1.12;
  max-width: 20ch;
}
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 18px; }
.button, .button-outline {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.button { background: var(--ink); color: var(--paper); }
.button:hover { background: var(--text); color: var(--paper); }
.button-outline { background: transparent; color: var(--ink); }

/* Page head for inner pages */
.pagehead {
  padding: 72px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 44em;
}
.pagehead h1 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.12;
}
.pagehead .lede { margin: 0; font-size: 20px; line-height: 1.55; max-width: 36em; color: var(--text); }

/* Bands */
.band { padding: 56px 0; border-top: 1px solid var(--rule); }
.band-tight { padding: 48px 0; border-top: 1px solid var(--rule); }

/* About */
.about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.about .side { display: flex; flex-direction: column; gap: 14px; }
.about .side .portrait { width: 100%; height: auto; display: block; margin-bottom: 10px; filter: grayscale(100%); }
.about .side .big { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 32px; line-height: 1.2; }
.about .side .feature { margin-top: 10px; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 1px; line-height: 1.6; color: var(--text); text-decoration: none; }
.about .body { grid-column: span 2; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; max-width: 36em; }
.about .body p { margin: 0; }
.dropcap { float: left; font-family: var(--display); font-weight: 700; font-size: 78px; line-height: 0.82; padding: 8px 10px 0 0; }

/* Photographs */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.photos figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; display: block; filter: grayscale(100%); transition: filter 400ms ease; }
.photos img.right { object-position: 78% center; }
.photos figure:hover img { filter: none; }
figure.wide { margin: 32px 0 0; max-width: 56em; display: flex; flex-direction: column; gap: 12px; }
figure.wide img { width: 100%; height: auto; display: block; filter: grayscale(100%); transition: filter 400ms ease; }
figure.wide:hover img { filter: none; }
figure.wide figcaption, .photos figcaption { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* For organizers */
.press { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start; }
.press-photo { display: flex; flex-direction: column; gap: 12px; }
.press-photo img { width: 100%; height: auto; display: block; filter: grayscale(100%); }
.press-photo .feature { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 1px; line-height: 1.6; color: var(--text); text-decoration: none; }
.press-bio { grid-column: span 3; }
.press-bio .small { font-size: 14px; color: var(--muted); }

/* Three cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 0 32px; border-right: 1px solid var(--rule); }
.card:first-child { padding-left: 0; }
.card:last-child { padding-right: 0; border-right: 0; }
.card .big { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 25px; line-height: 1.2; }
.card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.card a { text-decoration: none; }
.cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards.five .card { padding: 0 20px; }
.cards.five .card .big { font-size: 21px; }
.cards.five .card p { font-size: 15px; }

/* Listing rows */
.rowhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  align-items: baseline;
}
.row .when { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.row .when .written { font-weight: 500; font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 0; }
.row .what { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; }
.row .title { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1.2; }
.row .desc { font-size: 16px; line-height: 1.6; color: var(--text); }
.row .meta { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.row .meta a { text-decoration: none; }

/* Section blocks on the Writing page */
.section-block { padding: 40px 0 8px; }
.section-block .intro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 8px; }
.section-block .intro .big { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 25px; line-height: 1.2; grid-column: span 3; }
.section-block .intro .big a { text-decoration: none; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.series-card { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); }
.series-card h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 25px; line-height: 1.25; }
.series-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.series-card a { text-decoration: none; }

/* A piece */
.piece { padding: 64px 0 72px; display: flex; flex-direction: column; align-items: center; }
.piece > * { width: 100%; max-width: 68ch; }
.piece .head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.piece .head h1 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.15; }
.piece .head .byline { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.piece .head .byline a { text-decoration: none; }
.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 2.2em 0 0.9em; }
.prose h3 { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; margin: 1.8em 0 0.6em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--rule); font-style: italic; }
.prose.lookback > p:first-child { font-style: italic; color: var(--text); }
.prose .written { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 2.5em; }
.prose .colophon { font-size: 15px; line-height: 1.6; color: var(--text); border-top: 1px solid var(--rule); margin-top: 1.5em; padding-top: 1.2em; }
.prose .colophon h2 { margin-top: 0.4em; }
.prose.post p { white-space: pre-line; }
.piece .after { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.piece .after a { text-decoration: none; }
.pdfframe { width: 100%; height: 720px; border: 1px solid var(--rule); margin-top: 28px; }

/* Speaking */
.topics { display: flex; flex-direction: column; }
.topic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.topic .t { grid-column: span 2; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1.25; }
.topic p { grid-column: span 2; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.plain { max-width: 36em; font-size: 18px; line-height: 1.7; }
.plain p { margin: 0 0 1.2em; }

/* Contact form */
.form { max-width: 36em; display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.form input, .form select, .form textarea {
  font-family: var(--serif);
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form .note { font-size: 15px; font-style: italic; color: var(--text); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot {
  margin-top: auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.foot .place { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 1.2px; }
.foot .views { font-style: italic; font-size: 15px; color: var(--text); }
.foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.foot .links a { text-decoration: none; }

/* Smaller screens */
@media (max-width: 900px) {
  .sheet { padding: 0 32px; }
  .hero { padding: 56px 8px 44px; }
  .hero h1 { font-size: 40px; }
  .pagehead h1 { font-size: 36px; }
  .about, .cards, .cards.five, .series-grid, .press { grid-template-columns: 1fr; gap: 32px; }
  .press-bio { grid-column: span 1; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card, .cards.five .card { padding: 0; border-right: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .card:first-child { border-top: 0; padding-top: 0; }
  .about .body { grid-column: span 1; }
  .row, .topic, .section-block .intro { grid-template-columns: 1fr; gap: 10px; }
  .row .what, .topic .t, .topic p, .section-block .intro .big { grid-column: span 1; }
  .piece .head h1 { font-size: 32px; }
  .masthead nav { gap: 22px; }
}
@media (max-width: 520px) {
  .sheet { padding: 0 20px; }
  body { font-size: 17px; }
  .hero h1 { font-size: 32px; }
  .row .title { font-size: 22px; }
  .photos { grid-template-columns: 1fr; }
  .pdfframe { height: 480px; }
}
