/* Adrian Howell, static rebuild of the Squarespace site */
:root {
  --bg: #fffcf2;
  --ink: rgba(0, 0, 0, 0.72);
  --ink-strong: #111;
  --ink-soft: rgba(0, 0, 0, 0.5);
  --rule: rgba(0, 0, 0, 0.22);
  --col: 900px;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-strong); }

/* Header */
.site-header {
  text-align: center;
  padding: 34px 16px 26px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.site-header.over-hero {
  position: absolute; inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.15);
}
.site-title {
  font-size: 32px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--ink-strong); text-decoration: none;
}
.site-nav { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 48px; }
.site-nav a { font-size: 17px; text-decoration: none; color: var(--ink-strong); padding-bottom: 4px; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink-strong); }

/* Hero */
.hero {
  min-height: 100vh;
  background: #e9dccb center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center;
  padding: 38vh 16px 0; text-align: center;
}
.hero p { font-size: 22px; color: rgba(0, 0, 0, 0.55); }
.hero p.sub { font-size: 16px; font-style: italic; margin-top: 18px; }

/* Layout */
.col { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.section { padding: 110px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.page-title { text-align: center; font-weight: 400; font-size: 36px; color: var(--ink-strong); padding-top: 70px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 28px; }
.label-row h2 { font-size: 20px; font-weight: 400; }
.label-row em { font-size: 20px; color: var(--ink-soft); }
h2.small { font-size: 20px; font-weight: 400; margin-bottom: 28px; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #0a0b10; overflow: hidden; }
.video iframe, .video video, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .todo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.55); font-size: 16px; font-style: italic; text-align: center; padding: 16px;
}
.full-bleed { width: 100%; }
.caption { font-size: 16px; color: var(--ink-soft); padding-top: 22px; }

/* Film entries */
.film h3 { font-size: 28px; font-weight: 400; color: var(--ink-strong); margin-top: 32px; }
.film .logline { margin-top: 14px; }
.film .dash { margin: 18px 0; color: var(--ink-soft); }
.film .status { font-style: italic; margin-bottom: 14px; }
.film .credits { font-size: 16px; color: var(--ink-soft); line-height: 2; }

/* Writing */
.essay { padding: 90px 0; }
.essay h2 { text-align: center; font-weight: 400; font-size: 32px; color: var(--ink-strong); margin-bottom: 40px; }
.essay .row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.essay .thumb { aspect-ratio: 1; overflow: hidden; background: #ece6da; }
.essay .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.essay .thumb:hover img { opacity: .85; }
.essay .pull { font-size: 23px; text-align: center; color: var(--ink-strong); line-height: 1.5; }
.essay .excerpt { font-size: 16px; margin-top: 28px; line-height: 1.8; }
.essay .more { font-size: 15px; font-style: italic; text-align: center; margin-top: 22px; }

/* Grischun */
.series-head { text-align: center; padding: 70px 0 40px; }
.series-head h1 { font-weight: 400; font-size: 36px; color: var(--ink-strong); }
.series-head .meta { font-size: 16px; margin-top: 10px; }
.series-intro { text-align: center; font-size: 16px; line-height: 1.8; max-width: 860px; margin: 0 auto 50px; }
.series-intro p + p { margin-top: 12px; }
.part { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.part h2 { font-weight: 400; font-size: 32px; margin-bottom: 26px; }
.part dl { font-size: 18px; }
.part dt { display: inline; font-weight: 600; }
.part dd { display: inline; margin: 0; }
.part dl div { margin-bottom: 26px; }
.part .logline { font-style: italic; }
.part .stack { display: grid; gap: 34px; }
.part .stack img { width: 100%; aspect-ratio: 2.44 / 1; object-fit: cover; }
.dev { text-align: left; font-weight: 400; font-size: 32px; padding: 50px 0; border-bottom: 1px solid var(--rule); }

/* About / contact */
.prose { max-width: 720px; margin: 0 auto; padding: 90px 16px 110px; }
.prose h1 { font-weight: 400; font-size: 30px; color: var(--ink-strong); margin-bottom: 30px; }
.prose p + p { margin-top: 18px; }
form { margin-top: 40px; display: grid; gap: 22px; }
label { display: grid; gap: 6px; font-size: 16px; }
input, textarea {
  font: inherit; font-size: 18px; color: var(--ink-strong);
  background: transparent; border: 1px solid var(--rule); padding: 10px 12px;
}
textarea { min-height: 180px; resize: vertical; }
button {
  justify-self: start; font: inherit; font-size: 17px; cursor: pointer;
  background: var(--ink-strong); color: var(--bg); border: 0; padding: 10px 30px;
}

/* Footer */
.site-footer { text-align: center; padding: 70px 16px; border-top: 1px solid var(--rule); font-size: 16px; }
.site-footer nav { display: flex; justify-content: center; gap: 28px; margin: 14px 0; }
.site-footer small { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 19px; }
  .site-nav { gap: 6px 24px; }
  .section { padding: 70px 0; }
  .essay .row, .part { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 34vh; }
  .hero p { font-size: 19px; }
}
