/* kevin.me rebuild draft. Values taken from the live site's computed styles, 12 Oct 2026. */

:root {
  --bg: #f9fafb;
  --text: #111111;
  --muted: #939fb4;
  --meta: #4a5568;
  --card: #ffffff;
  --rule: #4e6a9c;
  --pink: #ff4991;
  --pink-hover: #e83a7f;
  --input-border: #e3e3e3;
  --icon-bg: transparent;
  --icon-fg: #111111;
  --logo-filter: invert(1);
  --link: #303336;
  --link-rule: #111111;
  --quote: #4a5568;
  --box: #ffffff;
  --cta-box: #eff0f2;
  --cta-border: #eff0f2;
  --accordion: #eff0f2;
  --slider-btn: #f7f7f7;
  --slider-btn-fg: #686868;
  --slider-btn-border: #dfe2e6;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .06), 0 4px 6px -4px rgba(0, 0, 0, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #19242f;
    --text: #ffffff;
    --muted: #a3b1ca;
    --meta: #a3b1ca;
    --card: #25313d;
    --icon-bg: #ffffff;
    --icon-fg: #19242f;
    --logo-filter: none;
    --link: #f3fcff;
    --link-rule: #ff4991;
    --quote: #a3b1ca;
    --box: #25313d;
    --cta-box: #121922;
    --cta-border: #2b3440;
    --accordion: #121922;
    --slider-btn: #25313d;
    --slider-btn-fg: #ffffff;
    --slider-btn-border: #19242f;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #19242f;
  --text: #ffffff;
  --muted: #a3b1ca;
  --meta: #a3b1ca;
  --card: #25313d;
  --icon-bg: #ffffff;
  --icon-fg: #19242f;
  --logo-filter: none;
  --link: #f3fcff;
  --link-rule: #ff4991;
  --quote: #a3b1ca;
  --box: #25313d;
  --cta-box: #121922;
  --cta-border: #2b3440;
  --accordion: #121922;
  --slider-btn: #25313d;
  --slider-btn-fg: #ffffff;
  --slider-btn-border: #19242f;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  color-scheme: dark;
}

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

/* 62.5% so the live site's inline rem sizes (2rem = 20px) carry over. */
html { -webkit-text-size-adjust: 100%; font-size: 62.5%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
}

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

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

p { text-wrap: pretty; }

h1, h2, h3 { text-wrap: balance; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 84px;
  padding: 0 20px;
}

.logo {
  width: 150px;
  height: 75px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img { width: 150px; filter: var(--logo-filter); }

.nav { display: flex; gap: 5px; }

.nav > .nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 27px;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.nav-link svg { width: 10px; height: 10px; opacity: .6; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }

.dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 5px;
}

.dropdown a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--icon-bg);
  color: var(--icon-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-sun { display: none; }
.icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.button {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 27px;
  padding: 11px 20px 10px;
  border-radius: 5px;
  transition: background .15s;
}

.button:hover { background: var(--pink-hover); }

.menu-toggle { display: none; }

/* Subscribe form */

.subscribe {
  display: flex;
  gap: 19px;
  justify-content: center;
  margin: 40px auto 0;
  max-width: 622px;
}

.subscribe input {
  flex: 1 1 343px;
  min-width: 0;
  height: 56px;
  padding: 12px;
  font: 16px var(--font);
  color: #000;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.subscribe input::placeholder { color: #8a8f98; }

.subscribe button {
  flex: 0 0 260px;
  height: 56px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font: 700 15px var(--font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}

.subscribe button:hover { background: var(--pink-hover); }

.form-note {
  margin: 30px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form-note strong { font-weight: 700; }

/* Home hero */

.hero {
  text-align: center;
  padding: 50px 20px 20px;
  max-width: 1065px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.5px;
  max-width: 1025px;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.65;
}

.hero-sub strong { font-weight: 700; }

/* Section labels */

.eyebrow {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Email archive */

.archive {
  max-width: 715px;
  margin: 70px auto 0;
  padding: 0 20px;
}

.archive ol { list-style: none; margin: 0; padding: 0; }

.archive li {
  display: grid;
  grid-template-columns: 147px 1fr;
  gap: 0;
  padding: 8px 0;
  max-width: 622px;
  margin: 0 auto;
}

.archive time {
  font-size: 16px;
  line-height: 29.7px;
  color: var(--muted);
}

.archive li span a {
  font-size: 18px;
  line-height: 29.7px;
  border-bottom: 2px solid var(--rule);
  transition: border-color .15s;
}

.archive li span a:hover { border-color: var(--pink); }

.read-more {
  text-align: center;
  margin: 40px 0 0;
}

.read-more a,
.text-link {
  font-weight: 700;
  border-bottom: 2px solid var(--pink);
}

/* Explore cards */

.explore {
  max-width: 940px;
  margin: 100px auto 0;
  padding: 0 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--card);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.card-art {
  height: 200px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-art img { max-height: 200px; width: auto; }

.art-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art-dark { display: block; }
  :root:not([data-theme="light"]) .art-light { display: none; }
}
:root[data-theme="dark"] .art-dark { display: block; }
:root[data-theme="dark"] .art-light { display: none; }

.card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.card p {
  margin: 0 auto 20px;
  max-width: 230px;
  font-size: 17px;
  line-height: 1.6;
}

.card .text-link { font-size: 17px; }

/* Post */

.post {
  max-width: 665px;
  margin: 0 auto;
  padding: 60px 20px 0;
}

.post-date {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--meta);
  margin-bottom: 10px;
}

.post h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  text-wrap: pretty;
}

main { overflow-x: clip; }

.entry-content p { margin: 20px 0; line-height: 1.6; }

.entry-content h2 {
  margin: 30px 0 20px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.entry-content h3 {
  margin: 30px 0 16px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.entry-content h4, .entry-content h5, .entry-content h6 {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.entry-content h1 { font-size: 40px; line-height: 1.15; font-weight: 900; margin: 0 0 20px; text-wrap: pretty; }

.entry-content ol, .entry-content ul { margin: 20px 0; padding-left: 25px; }

.entry-content li { margin: 0; line-height: 1.6; }

.entry-content a:not(.button) {
  color: var(--link);
  border-bottom: 2px solid var(--link-rule);
  transition: color .15s, border-color .15s;
}

.entry-content a:not(.button):hover { border-color: var(--rule); }

.entry-content strong, .entry-content b { font-weight: 700; }

.entry-content img { height: auto; border-radius: 4px; }

.entry-content hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--muted) 40%, transparent); margin: 40px 0; }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; }
.entry-content td, .entry-content th { border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); padding: 8px 10px; text-align: left; vertical-align: top; }

.entry-content blockquote {
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid #639ffd;
  color: var(--quote);
  font-style: normal;
}

.entry-content blockquote[style*="border-color"] {
  border-width: 2px;
  border-style: solid;
  padding: 12px 20px;
}

.entry-content blockquote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote p:first-child { margin-top: 0; }
.entry-content blockquote a:not(.button) { color: var(--quote); border-color: var(--quote); }

.entry-content .tweet { margin: 30px 0; color: var(--text); }
.entry-content .tweet a:not(.button) { color: var(--text); border-color: var(--link-rule); }

.entry-content .embed,
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="loom"] { width: 100%; }

.entry-content .embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 20px 0 30px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.entry-content .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.entry-content audio { width: 100%; margin: 10px 0; }

.alignleft { float: left; margin: 6px 30px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 30px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.highlight { box-shadow: inset 0 -6px 0 #ffea9a; font-style: normal; display: inline; }

.entry-content p.intro { font-size: 23px; line-height: 1.5; font-weight: 400; margin-top: 0; }

.entry-content .h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; font-weight: 900; }

.entry-content .h5 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.entry-content .hero-internal {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1;
  font-weight: 900;
}

.entry-content .hero-home {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 20px;
}

.entry-content .button,
.entry-content a.button {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 5px;
}

.entry-content .button:hover { background: var(--pink-hover); }

.entry-content .button.full-width { display: block; width: 100%; text-align: center; }

/* Full-bleed sections */

.wide-width-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 0 20px;
}

.wide-width-wrap > .wrap { max-width: 1000px; margin: 0 auto; }

.section-margin:not(:first-child) { margin-top: 40px; }
.section-margin:not(:last-child) { margin-bottom: 40px; }

/* Boxes */

.content-box, .cta-box {
  margin: 40px -40px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-box { background: var(--box); }
.cta-box { background: var(--cta-box); border: 1px solid var(--cta-border); }

.content-box > :first-child, .cta-box > :first-child { margin-top: 0 !important; }
.content-box > :last-child, .cta-box > :last-child { margin-bottom: 0; }

ul.custom-list { padding-left: 0; }
ul.custom-list li { position: relative; padding-left: 30px; list-style: none; }
ul.custom-list li:not(:last-child) { margin-bottom: 16px; }
ul.pointer-list li::before { content: "👉"; position: absolute; left: 0; top: 0; font-size: 16px; }

/* Accordions */

.accordion {
  background: var(--accordion);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1), 0 8px 8px rgba(0, 0, 0, .2);
  margin: 30px auto;
  overflow: hidden;
}

.accordion .toggle {
  position: relative;
  margin: 0;
  padding: 25px 55px 25px 25px;
  font-size: 17px;
  font-weight: 700;
  line-height: 30px;
  cursor: pointer;
}

.accordion .toggle::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}

.accordion.active .toggle::after { transform: translateY(-25%) rotate(-135deg); }

.accordion .content { display: none; padding: 0 25px 28px; font-size: 17px; }
.accordion.active .content { display: block; }
.accordion .content img { margin-bottom: 16px; }
.accordion .content p:first-child { margin-top: 0; }
.accordion .content p:last-child { margin-bottom: 0; }

/* Screenshot slider */

.gallery-slider-block { max-width: 1000px; margin: 0 auto 25px; border-radius: 8px; overflow: hidden; }

.gallery-slider-block .owl-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-slider-block .owl-carousel::-webkit-scrollbar { display: none; }

.gallery-slider-block .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; padding-top: 56.25%; }

.gallery-slider-block .slide .image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slider-nav { display: flex; }

.slider-nav button {
  flex: 1;
  height: 50px;
  border: 1px solid var(--slider-btn-border);
  background: var(--slider-btn);
  color: var(--slider-btn-fg);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.slider-nav button:hover { background: #1368ec; color: #fff; }
.slider-nav svg { width: 18px; height: 18px; }

/* Contact form */

.contact-form label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-form label span { font-weight: 400; font-size: 14px; opacity: .8; }
.contact-form p { margin: 0 0 18px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  font: 16px var(--font);
  color: #000;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.contact-form textarea { max-width: 100%; min-height: 600px; resize: vertical; }

.contact-form button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font: 700 15px var(--font);
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover { background: var(--pink-hover); }

.entry-content .subscribe { margin: 30px auto 16px; }

.post-sign { margin-top: 30px; }


.post-ps .subscribe { margin-top: 24px; }

.post-ps .form-note { text-align: left; }

.post-end {
  position: relative;
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.post-end .post-ps { max-width: 625px; margin: 0 auto; }

.adjacent {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .7;
  transition: opacity .15s, color .15s;
}

.adjacent:hover { opacity: 1; color: var(--text); }

.adjacent small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.adjacent svg { width: 14px; height: 14px; flex-shrink: 0; }

.adjacent.prev { left: 30px; }
.adjacent.next { right: 30px; text-align: right; flex-direction: row-reverse; }

/* Kevin's headshot wherever a photo of him appears */

.entry-content img.kevin-photo {
  border-radius: 50% !important;
  aspect-ratio: 1;
  object-fit: cover;
  width: 220px;
  max-width: 45% !important;
  padding: 0 !important;
  margin: 6px 0 16px 28px;
  shape-outside: circle(50%);
}

/* Pages */

.page {
  max-width: 665px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.page .entry-title {
  margin: 0 0 30px;
  font-size: clamp(30px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.page .entry-content > :first-child { margin-top: 0; }

.page-hero {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.page-hero img { max-height: 230px; width: auto; max-width: 100%; }

.page-hero + .page { padding-top: 30px; }

/* Light and dark artwork set inline as --bg-light / --bg-dark */

.thematic-image {
  background-image: var(--bg-light) !important;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thematic-image { background-image: var(--bg-dark) !important; }
}
:root[data-theme="dark"] .thematic-image { background-image: var(--bg-dark) !important; }

/* Unpublished drafts (src/drafts, never deployed) */

.draft-banner {
  margin: 0 0 30px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #ffea9a;
  color: #111;
  font-size: 16px;
  line-height: 1.5;
}

.archive li small { color: var(--muted); font-size: 14px; margin-left: 6px; }

/* Personal home concept (src/concepts/personal-home.html): text-only, left-aligned */

.concept-banner {
  max-width: 665px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: #ffea9a;
  color: #111;
  font-size: 16px;
  line-height: 1.5;
}

.letter {
  max-width: 665px;
  margin: 0 auto;
  padding: 50px 20px 0;
}

.letter-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 0 28px;
}

.letter h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.letter .letter-lead { font-size: 24px; line-height: 1.5; margin: 0 0 20px; }

.letter p { margin: 0 0 20px; line-height: 1.65; text-wrap: pretty; }

.letter h2 {
  margin: 50px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.letter p a {
  color: var(--link);
  border-bottom: 2px solid var(--link-rule);
}

.letter p a:hover { border-color: var(--rule); }

.letter-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px !important; }
.letter-links a { font-size: 17px; font-weight: 700; }

/* Minimal one-page concept (src/concepts/minimal-home.html, layout-minimal.html) */

.mini-header {
  max-width: 665px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-header .logo, .mini-header .logo img { width: 130px; height: auto; }

.mini {
  max-width: 665px;
  margin: 0 auto;
  padding: 64px 20px 0;
}

.mini-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 0 26px;
}

.mini h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1.05;
  font-weight: 900;
}

.mini-role { margin: 8px 0 30px; font-size: 19px; color: var(--muted); }
.mini h1 + p:not(.mini-role) { margin-top: 24px; }

.mini .mini-lead { font-size: 23px; line-height: 1.5; }

.mini p { margin: 0 0 18px; line-height: 1.65; text-wrap: pretty; }

.mini h2 {
  margin: 46px 0 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}

.mini p a { color: var(--link); border-bottom: 2px solid var(--link-rule); }
.mini p a:hover { border-color: var(--rule); }

.mini-footer {
  max-width: 665px;
  margin: 80px auto 0;
  padding: 0 20px 60px;
  font-size: 15px;
  color: var(--muted);
}

/* Newsletter block on the one-pager */

.mini-news {
  margin: 34px 0 10px;
  padding: 24px 26px 22px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.mini-news h2 { margin-top: 0 !important; }
.mini-news p { margin: 0 0 14px; }
.mini .mini-subscribe { margin: 0; max-width: none; gap: 12px; }
.mini .mini-subscribe input { height: 50px; }
.mini .mini-subscribe button { flex: 0 0 150px; height: 50px; }
.mini .mini-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

/* Contact pop-up */

.mini-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px !important; }
.mini-actions .button { border: 0; cursor: pointer; font-family: inherit; }
.mini-actions span { color: var(--muted); font-size: 17px; }

.contact-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 34px 32px 30px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

.contact-dialog::backdrop { background: rgba(10, 16, 22, .6); backdrop-filter: blur(2px); }

.contact-dialog h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; font-weight: 900; }
.dialog-intro { margin: 0 0 22px; color: var(--muted); font-size: 17px; }

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dialog-close:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.dialog-close svg { width: 20px; height: 20px; }

.contact-popup p { margin: 0 0 16px; }
.contact-popup label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-popup label span { font-weight: 400; color: var(--muted); }

.contact-popup input, .contact-popup textarea {
  width: 100%;
  padding: 11px 12px;
  font: 17px var(--font);
  color: #000;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 5px;
}

.contact-popup textarea { resize: vertical; min-height: 120px; }
.contact-popup .button { width: 100%; border: 0; cursor: pointer; font: 700 16px var(--font); padding: 14px 20px; }
.contact-popup .hp { position: absolute; left: -9999px; }
.dialog-thanks h2 { margin-top: 10px; }
.dialog-thanks p { margin: 8px 0 6px; font-size: 18px; }

/* Blog archive */

.blog-archive { margin-top: 40px; }

.blog-archive .year { font-size: 30px; font-weight: 900; line-height: 1.2; margin: 40px auto 6px; max-width: 622px; }
.blog-archive .month { font-size: 24px; font-weight: 900; line-height: 1.2; margin: 18px auto 10px; max-width: 622px; }
.blog-archive .year:first-of-type { margin-top: 0; }

/* Search */

.search-panel {
  position: fixed;
  inset: 84px 0 auto 0;
  z-index: 55;
  background: var(--bg);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4);
  padding: 20px 20px 30px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}

.search-inner { max-width: 622px; margin: 0 auto; }

.search-panel input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font: 18px var(--font);
  color: #000;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.search-results { list-style: none; margin: 16px 0 0; padding: 0; }
.search-results li { display: grid; grid-template-columns: 130px 1fr; padding: 7px 0; font-size: 17px; }
.search-results time { color: var(--muted); font-size: 15px; }
.search-results a { border-bottom: 2px solid var(--rule); }
.search-results .empty { display: block; color: var(--muted); }

/* Footer */

.site-footer {
  margin-top: 110px;
  padding: 50px 20px 60px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer .mascot { width: 200px; margin: 0 auto 20px; content: url("img/mascot-light.png"); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer .mascot { content: url("img/mascot-dark.png"); }
}
:root[data-theme="dark"] .site-footer .mascot { content: url("img/mascot-dark.png"); }

.site-footer p { margin: 8px 0; }

.site-footer a { border-bottom: 1px solid currentColor; }

.site-footer .fine { color: var(--muted); }

/* Draft banner */

.draft-pill {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: .85;
}

/* Responsive */

@media (max-width: 1180px) {
  .post-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; max-width: 665px; }
  .post-end .post-ps { flex: 1 1 100%; order: -1; }
  .adjacent { position: static; transform: none; width: auto; flex: 1 1 0; opacity: 1; }
}

@media (max-width: 900px) {
  .header-inner { display: flex; justify-content: space-between; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 10px 20px 24px;
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .3);
  }
  .nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    padding: 0 0 0 12px;
  }
  .cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .logo, .logo img { width: 112px; }
  .header-actions { gap: 8px; }
  .header-actions .button { padding: 7px 14px; font-size: 15px; }
  .icon-btn { width: 32px; height: 32px; }
  [data-search] { display: none; }
  .hero { padding: 36px 16px 10px; }
  .hero-sub { font-size: 19px; }
  .subscribe { flex-direction: column; gap: 12px; }
  .subscribe input, .subscribe button { flex: none; width: 100%; }
  .archive { padding: 0 16px; margin-top: 56px; }
  .archive li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .explore { padding: 0 16px; margin-top: 80px; }
  .post { padding: 40px 16px 0; }
  .post-end { padding: 0 16px; }
  .concept-banner { margin: 16px 16px 0; }
  .mini-header { padding: 20px 16px 0; }
  .mini { padding: 44px 16px 0; }
  .mini .mini-lead { font-size: 21px; }
  .mini-footer { padding: 0 16px 50px; }
  .mini .mini-subscribe button { flex: none; height: 50px; }
  .mini-news { padding: 20px 18px 18px; }
  .letter { padding: 36px 16px 0; }
  .letter .letter-lead { font-size: 21px; }
  .entry-content h2 { font-size: 26px; }
  .page { padding: 30px 16px 0; }
  .wide-width-wrap { padding: 0 16px; }
  .content-box, .cta-box { padding: 24px 20px; margin-left: 0; margin-right: 0; }
  .alignleft, .alignright { float: none; margin: 10px auto 20px; display: block; }
  .entry-content img[style*="float"] { float: none !important; margin: 0 auto 16px; }
  .search-results li { grid-template-columns: 1fr; }
  .search-panel { inset: 84px 0 auto 0; }
}
