/* blessingchiduuro.com. One stylesheet, no framework, no build step.
   Design: a lit screen at night. Deep-navy sky, sign-yellow light, condensed signage type for display,
   a plain grotesque for reading. One bold element (the screen); everything else quiet.
   Fonts are self-hosted in /assets/fonts/ (SIL Open Font License). */

@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }

:root {
  --night: #0f1a2b;        /* the sky behind a lit billboard */
  --night-2: #16243a;      /* a raised surface on night */
  --on-night: #ffffff;
  --on-night-soft: rgba(255, 255, 255, .78);
  --signal: #ffc53d;       /* illuminated-sign yellow: a light source, used sparingly */
  --paper: #ffffff;
  --primer: #eef1f5;       /* the painted back of a panel */
  --ink: #15202f;
  --ink-soft: #33415a;
  --muted: #5c6878;
  --line: #d5dbe3;
  --measure: 44rem;
  --wide: 74rem;
  --gutter: 16px;
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1322; --primer: #121d30; --ink: #edf0f5; --ink-soft: #c9d1dd; --muted: #98a2b3; --line: #263245;
    --night: #16243a; --night-2: #1d2e48;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 1rem; top: 1rem; background: var(--signal); color: #0f1a2b; padding: .5rem .75rem; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: 0; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: .96; margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; margin: 3rem 0 .8rem; }
h3 { font-size: 1.6rem; font-weight: 700; margin: 1.8rem 0 .4rem; }
p, ul, ol { margin: 0 0 1.15rem; }
p, li { max-width: var(--measure); }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); }
.meta { color: var(--muted); font-size: .92rem; }
.meta a { text-decoration-thickness: 1px; }

/* Frame */
.frame { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--gutter) .9rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: flex-end; justify-content: space-between; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-decoration: none; }
.brand small { display: block; font-family: var(--text); font-weight: 500; font-size: .82rem; line-height: 1.3; color: var(--muted); margin-top: .35rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
nav a { text-decoration: none; font-weight: 500; padding: .3rem 0 .15rem; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--signal); }

body.home header.site { background: var(--night); color: var(--on-night); border-bottom: 0; }
body.home .brand small { color: var(--on-night-soft); }

/* Layout */
main { flex: 1 0 auto; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 2.75rem var(--gutter) 5rem; }
main.home { max-width: none; padding: 0 0 5rem; }
main.home section.frame { padding-top: 3.5rem; }

/* The screen: the one bold element on the site */
.screen { background: var(--night); color: var(--on-night); border-bottom: 4px solid var(--signal); }
.screen .frame { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.screen h1 { margin: 0; }
.screen .name { display: block; font-size: clamp(5.2rem, 14vw, 11rem); line-height: .86; text-transform: uppercase; letter-spacing: .005em; color: var(--signal); }
.screen .line { display: block; font-family: var(--text); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.25; margin-top: 1.4rem; max-width: 24ch; }
.screen .lede { color: var(--on-night-soft); margin: 1.75rem 0 0; max-width: 36rem; font-size: 1.2rem; }
.screen .links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
/* Wide screens: the wordmark on the left, the copy set against its baseline on the right (poster layout). */
@media (min-width: 1024px) {
  .screen .frame { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; column-gap: 4rem; align-items: end; }
  .screen h1 { grid-column: 1 / -1; grid-row: 1 / span 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; align-items: end; }
  .screen .name { grid-column: 1; grid-row: 1 / span 3; }
  .screen .line { grid-column: 2; grid-row: 1; margin-top: 0; }
  .screen .lede { grid-column: 2; grid-row: 2; }
  .screen .links { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .screen .name, .screen .line, .screen .lede, .screen .links { animation: switch-on .7s ease-out both; }
  .screen .line { animation-delay: .08s; } .screen .lede { animation-delay: .16s; } .screen .links { animation-delay: .24s; }
  @keyframes switch-on { from { opacity: 0; } 45% { opacity: .35; } 55% { opacity: .2; } to { opacity: 1; } }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; line-height: 1.1; padding: .62rem 1.05rem .52rem; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--signal); border-color: var(--signal); color: #0f1a2b; }
.screen .btn { border-color: rgba(255, 255, 255, .55); color: var(--on-night); }
.screen .btn.primary { background: var(--signal); border-color: var(--signal); color: #0f1a2b; }
.screen .btn:hover { background: var(--on-night); border-color: var(--on-night); color: #0f1a2b; }

/* Section headings on the home page */
main.home h2 { margin-top: 0; }

/* Post lists (home, blog index) */
.posts { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.posts li { max-width: none; padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .3rem 2rem; }
.posts time { grid-column: 1; grid-row: 1 / span 2; color: var(--muted); font-size: .95rem; font-weight: 500; padding-top: .35rem; }
.posts h3 { grid-column: 2; margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: .98; }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.posts p { grid-column: 2; margin: 0; color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 640px) {
  .posts li { grid-template-columns: 1fr; }
  .posts time { grid-column: 1; grid-row: auto; padding-top: 0; }
  .posts h3, .posts p { grid-column: 1; }
}

/* Where I work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 3rem; border-top: 3px solid var(--ink); padding-top: 1.4rem; }
.work h3 { margin: 0 0 .35rem; font-size: 1.9rem; }
.work h3 a { text-decoration: none; }
.work h3 a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.work p { margin: 0; color: var(--ink-soft); }

/* Articles */
article h1 { margin-top: .25rem; }
article .meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-bottom: 1.6rem; }
article .figure, .about-figure { margin: 2rem 0; }
article .figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night-2); }
.about-figure { max-width: 26rem; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--night-2); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .55rem; }
blockquote { border-left: 4px solid var(--signal); margin: 1.5rem 0; padding: .25rem 1.25rem; color: var(--ink-soft); font-size: 1.15rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.25rem 0; }
th { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; text-align: left; background: var(--night); color: var(--on-night); padding: .6rem .75rem; }
td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--primer); }

.faq { margin: 1rem 0 2rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; padding: .95rem 2.4rem .95rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.8rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; }

.author { display: flex; gap: 1.1rem; align-items: center; margin-top: 3rem; padding: 1.25rem 0 0; border-top: 3px solid var(--ink); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; flex: none; background: var(--night-2); }
.author strong { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.share { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.share .btn { font-size: 1.05rem; padding: .45rem .8rem .4rem; }

/* About and contact lists */
.cv { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 3px solid var(--ink); }
.cv li { max-width: none; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.cv strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; margin-bottom: .2rem; }
.cv span { color: var(--muted); font-size: .92rem; }
.elsewhere { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.contact { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 3px solid var(--ink); }
.contact li { max-width: none; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.contact li a { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--ink); text-decoration-thickness: 3px; overflow-wrap: anywhere; }

/* Footer: the screen again, small */
footer.site { background: var(--night); color: var(--on-night-soft); margin-top: 2rem; border-top: 4px solid var(--signal); }
footer .inner { max-width: var(--wide); margin: 0 auto; padding: 2rem var(--gutter) 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; font-size: .92rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
footer a { color: var(--on-night); }
