/* hunterorrell.com styles: quiet type, one photo, a ledger for the record */

@font-face {
  font-family: 'Instrument Sans';
  src: url(/fonts/instrument-sans.woff2) format('woff2-variations'), url(/fonts/instrument-sans.woff2) format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url(/fonts/source-serif.woff2) format('woff2-variations'), url(/fonts/source-serif.woff2) format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url(/fonts/source-serif-italic.woff2) format('woff2-variations'), url(/fonts/source-serif-italic.woff2) format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f6f4;
  --ink: #16181b;
  --soft: #696d74;
  --faint: #9a9da3;
  --rule: #e2e2de;
  --rule-strong: #c9c9c4;
  --wash: #ececea;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif', Georgia, 'Times New Roman', serif;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #121315;
    --ink: #ebe9e5;
    --soft: #94979d;
    --faint: #6b6e74;
    --rule: #25272a;
    --rule-strong: #3a3d41;
    --wash: #1b1c1f;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #121315;
  --ink: #ebe9e5;
  --soft: #94979d;
  --faint: #6b6e74;
  --rule: #25272a;
  --rule-strong: #3a3d41;
  --wash: #1b1c1f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; overscroll-behavior-x: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 120ms ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

/* subpage bar */
.bar { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0; font-size: 15px; }
.bar a { text-decoration: none; color: var(--soft); }
.bar a:hover { color: var(--ink); }
.bar .bar-name { color: var(--ink); font-weight: 600; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: end;
  padding-top: 40px;
}
.portrait { display: block; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--wash);
}
.name {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.role { margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: var(--ink); max-width: 30em; }
.place { margin-top: 6px; font-size: 14px; color: var(--soft); }

.intro { margin-top: 32px; font-size: 17px; line-height: 1.6; max-width: 36em; }
.intro p + p { margin-top: 0.85em; }
.intro p:last-child { color: var(--soft); }

/* sections: label column + body on wide screens */
.sec { margin-top: 48px; }
.sec h2 { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; color: var(--soft); letter-spacing: 0; }

/* now */
.now li { padding: 12px 0; border-top: 1px solid var(--rule); }
.now li:first-child { border-top: 0; padding-top: 0; }
.now-name { font-size: 17px; font-weight: 600; }
.now-name a { text-decoration: none; }
.now-name a:hover { text-decoration: underline; }
.now-role { font-size: 14.5px; color: var(--soft); }
.now-text { margin-top: 2px; font-size: 15.5px; }

/* the record, set as a ledger */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger li {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 12px;
  padding: 9px 0;
  font-size: 15.5px;
  line-height: 1.5;
}
.ledger li.y { border-top: 1px solid var(--rule); }
.ledger li.y:first-child { border-top: 0; }
.ledger-year { color: var(--soft); font-feature-settings: 'tnum' 1; }
.ledger-text a { text-decoration-color: var(--rule); }
.ledger-text a:hover { text-decoration-color: currentColor; }

/* investments */
.inv { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule-strong); }
.inv li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
}
.inv a { font-weight: 550; text-decoration: none; }
.inv a:hover { text-decoration: underline; }
.inv span { color: var(--soft); font-size: 14.5px; text-align: right; }

/* beliefs, in the serif voice */
.beliefs li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  padding: 7px 0;
}
.beliefs li:first-child { padding-top: 0; }

/* writing */
.posts { border-top: 1px solid var(--rule-strong); }
.posts li { border-bottom: 1px solid var(--rule); }
.post {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 11px 0;
  text-decoration: none;
}
.post-title { font-size: 16.5px; font-weight: 550; }
.post:hover .post-title { text-decoration: underline; text-underline-offset: 0.22em; }
.post-outlet { display: block; margin-top: 1px; font-size: 14.5px; font-weight: 400; color: var(--soft); }
.post:hover .post-outlet { text-decoration: none; }
.post-date { color: var(--soft); font-size: 14.5px; font-feature-settings: 'tnum' 1; white-space: nowrap; }
.post-desc { flex-basis: 100%; color: var(--soft); font-size: 15px; max-width: 36em; }
.more { margin-top: 12px; font-size: 15px; }

.outside { font-size: 16.5px; line-height: 1.6; max-width: 34em; border-top: 1px solid var(--rule-strong); padding-top: 10px; }
.outside p + p { margin-top: 0.8em; }

/* contact */
.accounts { border-top: 1px solid var(--rule-strong); }
.accounts li {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
}
.accounts .k { color: var(--soft); }
.accounts a { overflow-wrap: anywhere; }
.safety { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--soft); max-width: 36em; }

/* footer */
.foot {
  margin-top: 72px;
  padding: 18px 0 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--soft);
}
.foot-links { display: flex; gap: 18px; }
.theme-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.22em;
}
.theme-toggle:hover { text-decoration-color: currentColor; }

/* writing index and articles */
.page-title { margin: 32px 0 28px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.posts-page .post-title { font-size: 18px; }
.article-head { margin-top: 32px; max-width: 34em; }
.article-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 8.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.article-meta { margin-top: 14px; color: var(--soft); font-size: 14.5px; }
.prose {
  margin-top: 32px;
  max-width: 34em;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.68;
}
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--sans); font-weight: 600; line-height: 1.2; margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 19px; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--rule-strong); color: var(--soft); }
.prose img { max-width: 100%; height: auto; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.article-end {
  max-width: 34em;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14.5px;
}
.draft-flag { margin: 28px 0 0; padding: 10px 14px; background: var(--wash); font-size: 14px; color: var(--soft); max-width: 34em; }
.notfound { font-size: 17px; margin-bottom: 80px; }

/* wider screens: label column on the left, content on the right */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { grid-template-columns: 168px 1fr; gap: 32px; padding-top: 96px; }
  .name { font-size: 40px; }
  .role { font-size: 17px; }
  .intro, .sec, .foot { margin-left: 200px; }
  .intro { margin-top: 40px; font-size: 18px; }
  .sec {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 32px;
    margin-left: 0;
    margin-top: 64px;
  }
  .sec h2 { margin: 0; padding-top: 10px; text-align: left; }
  .foot { margin-left: 200px; }
  .prose { font-size: 20px; }
  .article-head, .prose, .article-end, .page-title, .posts-page { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
