@font-face { font-family: 'Abril Fatface'; src: url(/assets/fonts/abril-fatface.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #111013;
  --foot: #141414;
  --paper: #f7f4f9;
  --mute: #5f5866;
  --line: #e2dbe8;
  --purple: #9c59d1;
  --purple-text: #8a45c8;
  --lilac: #b794e6;
  --display: 'Abril Fatface', Georgia, serif;
  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: #fff; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-transform: capitalize; }

.wrap { width: min(1200px, 100% - 60px); margin-inline: auto; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 10; background: var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 90px; padding: 0 70px 0 88px; }
.logo { font: 400 26px/1 var(--display); color: #fff; display: inline-flex; align-items: flex-start; }
.spark { margin-left: 3px; font: 400 12px/1 var(--sans); color: var(--lilac); animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 70%, 100% { opacity: 1; transform: scale(1) rotate(0); } 80% { opacity: .35; transform: scale(.6) rotate(45deg); } 90% { opacity: 1; transform: scale(1.25) rotate(90deg); } }
.sep { margin: 0 8px; font-size: 9px; color: var(--purple); vertical-align: 1px; }
.top nav { display: flex; gap: 40px; }
.top nav a {
  position: relative;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; padding: 6px 0;
}
.top nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--purple); transform: scaleX(0); transition: transform .2s;
}
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }

.label, .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-text);
}
.label {
  display: inline-block; padding: 6px 12px 5px;
  border: 1px solid var(--ink); border-radius: 999px; line-height: 1;
  transition: background .15s, color .15s;
}
.label:hover { background: var(--ink); color: #fff; }
.kicker a:hover { text-decoration: underline; }
.kicker { margin: 0 0 14px; }

.author { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.author:hover { color: var(--purple-text); }

.dek { font-size: 18px; line-height: 1.55; margin: 0; }

.ph { aspect-ratio: 3 / 2; background: #e6dfec; }

.lead {
  display: grid; grid-template-columns: 710px 1fr; gap: 50px; align-items: start;
  padding: 60px 0 20px;
}
.lead-img img, .lead-img .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 4px; }
.lead h2 { font-size: 40px; }
.lead h2 a:hover, .card h3 a:hover { color: var(--purple-text); }

.block { padding: 60px 0 90px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 20px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.card-img { display: block; width: 100%; margin-bottom: 6px; overflow: hidden; }
.card-img img, .card-img .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card h3 { font-size: 22px; }
.empty { color: var(--mute); }

.page-head { padding: 70px 0 0; }
.page-head h1 { font-size: 56px; }
.page-head .dek { margin-top: 14px; max-width: 640px; }
.page-head + .block { padding-top: 44px; }

.post-head { width: min(900px, 100% - 60px); margin: 0 auto; padding: 60px 0 30px; }
.post-head h1 { font-size: 50px; }
.post-by { display: flex; align-items: baseline; margin: 18px 0 0; font-size: 13px; color: #000; }
.post-img { width: min(900px, 100% - 60px); margin: 0 auto 60px; }
.post-img img { width: 100%; max-height: 620px; object-fit: cover; }

.prose { width: min(620px, 100% - 60px); margin: 0 auto; padding-bottom: 40px; font-size: 18px; line-height: 1.75; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; margin-top: 1.8em; }
.prose h3 { font-size: 24px; margin-top: 1.6em; }
.prose a { color: var(--purple-text); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding-left: 22px; border-left: 3px solid var(--purple); font-family: var(--display); font-size: 26px; line-height: 1.35; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose figure { margin: 2.2em 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }

.more-posts { border-top: 1px solid var(--line); }
.more-posts h2 { font-size: 32px; margin-bottom: 30px; }

.about { width: min(760px, 100% - 60px); margin: 0 auto; padding: 60px 0 90px; text-align: center; }
.about .kicker { margin-bottom: 28px; }
.portrait { width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 32px; }
.about h1 { font-size: 44px; margin-bottom: 32px; }
.about-body > * { margin: 0; }
.about-body > * + * { margin-top: 1.2em; }
.about-body { font-size: 18px; }

.foot { position: relative; isolation: isolate; background: var(--foot); color: #fff; padding: 50px 0 30px; }
.foot::before, .foot::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.foot::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cpath d='M59.7 27.2L60.5 29.2L62.4 29.9L60.5 30.7L59.7 32.7L58.9 30.7L57.0 29.9L58.9 29.2Z' fill='%23ffffff'/%3E%3Cpath d='M66.9 11.3L67.6 13.2L69.5 14.0L67.6 14.7L66.9 16.6L66.2 14.7L64.3 14.0L66.2 13.2Z' fill='%23ffffff'/%3E%3Cpath d='M16.0 16.8L16.8 18.8L18.8 19.6L16.8 20.4L16.0 22.4L15.2 20.4L13.2 19.6L15.2 18.8Z' fill='%23d9c6f5'/%3E%3Ccircle cx='167.0' cy='112.5' r='0.84' fill='%23ffffff'/%3E%3Ccircle cx='171.9' cy='12.0' r='0.69' fill='%23ffffff'/%3E%3Cpath d='M24.3 54.3L25.0 56.3L27.0 57.1L25.0 57.8L24.3 59.8L23.5 57.8L21.5 57.1L23.5 56.3Z' fill='%23ffffff'/%3E%3Ccircle cx='36.3' cy='20.8' r='0.97' fill='%23ffffff'/%3E%3Ccircle cx='89.4' cy='95.5' r='1.15' fill='%23b794e6'/%3E%3Ccircle cx='66.2' cy='46.7' r='0.75' fill='%23ffffff'/%3E%3Ccircle cx='102.8' cy='94.3' r='0.77' fill='%23b794e6'/%3E%3Cpath d='M172.6 21.8L173.3 23.6L175.1 24.3L173.3 25.0L172.6 26.8L171.9 25.0L170.0 24.3L171.9 23.6Z' fill='%23d9c6f5'/%3E%3Ccircle cx='164.5' cy='76.5' r='0.94' fill='%23ffffff'/%3E%3Ccircle cx='154.6' cy='58.0' r='0.95' fill='%23b794e6'/%3E%3Ccircle cx='82.5' cy='148.5' r='1.00' fill='%23b794e6'/%3E%3C/svg%3E"); opacity: .3; animation: glint 5s ease-in-out infinite; }
.foot::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Ccircle cx='120.5' cy='139.0' r='0.84' fill='%23ffffff'/%3E%3Ccircle cx='175.5' cy='53.8' r='0.66' fill='%23ffffff'/%3E%3Ccircle cx='74.8' cy='170.5' r='1.14' fill='%23ffffff'/%3E%3Ccircle cx='7.9' cy='110.2' r='0.67' fill='%23ffffff'/%3E%3Ccircle cx='82.4' cy='153.0' r='0.85' fill='%23ffffff'/%3E%3Ccircle cx='21.1' cy='129.2' r='1.19' fill='%23d9c6f5'/%3E%3Ccircle cx='102.2' cy='90.4' r='1.17' fill='%23ffffff'/%3E%3Ccircle cx='44.0' cy='97.8' r='0.83' fill='%23ffffff'/%3E%3Ccircle cx='27.8' cy='111.7' r='0.87' fill='%23ffffff'/%3E%3Ccircle cx='168.6' cy='159.8' r='1.09' fill='%23ffffff'/%3E%3Ccircle cx='89.0' cy='77.7' r='0.75' fill='%23ffffff'/%3E%3Ccircle cx='8.5' cy='68.8' r='0.99' fill='%23ffffff'/%3E%3C/svg%3E"); background-position: 90px 60px; opacity: .15; animation: glint 5s ease-in-out -2.5s infinite; }
@keyframes glint { 0%, 100% { opacity: .15; } 50% { opacity: .45; } }
.foot-in { display: grid; grid-template-columns: 300px 1fr 280px; gap: 40px; }
.foot h4 { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.foot h4.gap { margin-top: 28px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 10px; }
.foot li a { font-size: 14px; font-weight: 500; }
.foot li a:hover { color: var(--lilac); }

.sub { display: flex; flex-wrap: wrap; max-width: 420px; }
.sub input[type=email] {
  flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 16px;
  border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.sub input[type=email]:focus { outline: 2px solid var(--purple); outline-offset: 0; }
.sub button {
  height: 48px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--purple); color: #fff;
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.sub button:hover { background: #8a45c8; }
.sub button:disabled { opacity: .6; cursor: default; }
.sub-ok, .sub-err { flex-basis: 100%; margin: 12px 0 0; font-size: 14px; }
.sub-ok { color: var(--lilac); }
.sub-err { color: #f3c0d2; }

.fine { margin-top: 50px; padding-top: 20px; border-top: 1px solid #2a1f35; font-size: 13px; color: #8f8698; }

@media (prefers-reduced-motion: reduce) {
  .spark, .foot::before, .foot::after { animation: none; }
}

@media (max-width: 1100px) {
  .lead { grid-template-columns: 1.3fr 1fr; gap: 36px; }
  .top-in { padding: 0 30px; }
}

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .lead h2 { font-size: 34px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  #newsletter { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .top-in { height: 70px; padding: 0 20px; }
  .logo { font-size: 22px; }
  .top nav { gap: 20px; }
  .top nav a { font-size: 11px; letter-spacing: .12em; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .page-head { padding-top: 44px; }
  .page-head h1 { font-size: 42px; }
  .post-head, .post-img, .prose { width: calc(100% - 40px); }
  .post-head { padding-top: 40px; }
  .post-head h1 { font-size: 36px; }
  .post-img { margin-bottom: 40px; }
  .prose { font-size: 17px; }
  .about h1 { font-size: 34px; }
  .portrait { width: 150px; }
}
