*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(14 165 233 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(14 165 233 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e4e4e7;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #a1a1aa;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #a1a1aa;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

:root {
  color-scheme: dark;
  --bg: #15171f;
  --bg-elev: #1c1f29;
  --bg-elev-2: #232734;
  --fg: #d2cec5;
  --fg-strong: #e6e1d6;
  --fg-muted: #8d8e97;
  --fg-subtle: #5f626c;
  --border: #272b35;
  --border-soft: #1c1f27;
  --accent: #e8a94a;
  --accent-soft: rgba(232, 169, 74, 0.16);
  --link: #ddc28a;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-color: var(--bg);
  background-image:
      radial-gradient(ellipse 1100px 700px at 50% -180px, rgba(125, 165, 220, 0.07), transparent 65%),
      radial-gradient(ellipse 900px 600px at 90% 110%, rgba(232, 169, 74, 0.03), transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'Newsreader', Georgia, ui-serif, serif;
  font-optical-sizing: auto;
  font-feature-settings: 'kern', 'liga', 'calt';
  font-size: 18px;
  line-height: 1.65;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Subtle film-grain texture — fixed so it doesn't shift on scroll */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

body > * {
  position: relative;
  z-index: 1;
}

::-moz-selection {
  background: var(--accent-soft);
  color: var(--fg-strong);
}

::selection {
  background: var(--accent-soft);
  color: var(--fg-strong);
}

::-moz-selection {
  background: var(--accent-soft);
  color: var(--fg-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--fg-strong);
  letter-spacing: -0.022em;
  line-height: 1.18;
  font-weight: 600;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.h-screen {
  height: 100vh;
}

.max-w-md {
  max-width: 28rem;
}

.grow {
  flex-grow: 1;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.whitespace-pre-line {
  white-space: pre-line;
}

.p-6 {
  padding: 1.5rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.opacity-30 {
  opacity: 0.3;
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ---------- Headings ---------- */

h1 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  line-height: 1.25;
  text-wrap: balance;
}

h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.4em;
  line-height: 1.3;
  text-wrap: balance;
}

/* The /etc brand mark on index + ls pages — monospaced for that
   command-line feel that matches the title. */

.brand,
body > div.text-center > h1:first-of-type,
body > div.flex h1 {
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--fg-strong);
}

/* ---------- Date / subtitle ---------- */

subtitle,
.post-date {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ---------- Long-form content ---------- */

.content {
  /* Fluid scale: 17px on the smallest phones → ~19.5px on wide screens */
  font-size: clamp(1.0625rem, 0.96rem + 0.42vw, 1.215rem);
  line-height: 1.7;
  color: var(--fg);
  /* Newsreader has lovely oldstyle figures that blend into prose;
     proportional widths suit running text */
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: 'kern', 'liga', 'calt', 'onum', 'pnum';
  /* Improves widow/orphan handling on the last line of paragraphs */
  text-wrap: pretty;
  /* Conservative hyphenation — only kicks in for long words to avoid
     ragged-edge gaps on narrow screens */
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 9 4 4;
}

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

.content > :last-child {
  margin-bottom: 0;
}

.content p {
  margin: 0 0 1.1em;
  /* Avoid orphans on the last line of a paragraph */
  orphans: 2;
  widows: 2;
}

/* A subtle "lede" treatment for the first paragraph — a touch brighter,
   not a shouting drop cap */

.content > p:first-of-type {
  color: var(--fg-strong);
}

.content em,
.content i {
  font-style: italic;
  /* Inherit color — Newsreader's italics carry the emphasis on shape alone */
}

.content strong,
.content b {
  font-weight: 600;
  color: var(--fg-strong);
}

.content ul,
.content ol {
  margin: 1.1em 0 1.5em;
  padding-left: 1.5em;
}

.content ul {
  list-style: disc;
}

.content ol {
  list-style: decimal;
}

.content li {
  margin-bottom: 0.45em;
  padding-left: 0.4em;
}

.content li::marker {
  color: var(--fg-subtle);
}

.content li > ul,
.content li > ol {
  margin: 0.45em 0 0.45em;
}

.content li > p {
  margin-bottom: 0.5em;
}

.content blockquote {
  margin: 1.75em 0;
  padding: 0.1em 0 0.1em 1.4em;
  border-left: 2px solid var(--accent);
  color: var(--fg-muted);
  font-style: italic;
  font-size: 1.02em;
  line-height: 1.6;
  /* Lets opening quote marks sit just outside the indent in supporting browsers */
  hanging-punctuation: first last;
}

.content blockquote p {
  margin-bottom: 0.75em;
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content blockquote em,
.content blockquote i {
  /* Already italic — switch to roman for double-emphasis */
  font-style: normal;
}

.content hr {
  border: 0;
  margin: 2.75em auto;
  width: 4rem;
  height: 1px;
  background: var(--border);
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft);
}

.content code {
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 0.12em 0.38em;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  color: var(--fg-strong);
}

.content pre {
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  background: var(--bg-elev);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.content pre code {
  background: transparent;
  padding: 0;
  border: 0;
  font-size: inherit;
}

/* Compatibility with original whitespace-pre-line inline blocks */

.content .whitespace-pre-line p {
  margin-bottom: 0;
}

/* ---------- Links ---------- */

a {
  color: var(--fg-strong);
  text-decoration: underline;
  text-decoration-color: var(--fg-subtle);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.content a {
  color: var(--link);
  text-decoration-color: rgba(245, 181, 68, 0.35);
}

.content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.link-list a {
  margin: 0 0.25rem;
}

.text-muted {
  color: var(--fg-subtle);
}

/* ---------- Post list (ls page) ---------- */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.post-list a {
  display: block;
  text-decoration: none;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  color: var(--fg);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.post-list a:hover {
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--fg-strong);
}

.post-list .post-list-title {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.post-list .post-list-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 0.2rem;
}

/* ---------- Article layout ---------- */

.post-article {
  /* ~62-70 char measure on desktop with the fluid base size */
  max-width: 36rem;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.post-title {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  /* Bigger on phones than the previous min — display titles want presence */
  font-size: clamp(2.05rem, 1.5rem + 2.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 0.55em;
  color: var(--fg-strong);
  /* Prevents lonely 1-word last lines on multi-line titles */
  text-wrap: balance;
}

.post-nav {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.post-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0.75rem;
}

.post-nav a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */

footer {
  color: var(--fg-subtle);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
}

/* ---------- CV / résumé page ---------- */

.cv {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 1rem;
  animation: cv-in 0.6s ease both;
}

@keyframes cv-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* intro */

.cv-intro-top {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 1.75rem);
}

.cv-avatar {
  flex: none;
  width: clamp(78px, 18vw, 104px);
  height: clamp(78px, 18vw, 104px);
  border-radius: 18px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.cv-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.7rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.cv-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: cv-pulse 2.8s ease infinite;
}

@keyframes cv-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 169, 74, 0.5);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(232, 169, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 169, 74, 0);
  }
}

.cv-name {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}

.cv-tagline {
  margin: 0.7rem 0 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--fg-muted);
}

/* contacts */

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block: 1.6rem;
}

.cv-reveal-group {
  display: inline-flex;
  align-items: center;
}

.cv-cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-elev);
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cv-cbtn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}

.cv-cbtn svg {
  width: 17px;
  height: 17px;
}

.cv-contact-value {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: 0.4rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-elev);
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
  animation: cv-slide 0.3s ease;
}

.cv-contact-value:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes cv-slide {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* section label */

.cv-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.75rem, 6vw, 4rem) 0 1.5rem;
}

.cv-section-label span {
  flex: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.cv-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* work entries */

.cv-work {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cv-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  padding: clamp(1.2rem, 3.2vw, 1.6rem) clamp(1.1rem, 3vw, 1.5rem);
}

.cv-item-title {
  margin: 0 0 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

/* title + date row (employment entries) */

.cv-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}

.cv-item-head .cv-item-title {
  margin: 0;
  padding: 0;
  border: 0;
}

.cv-date {
  flex: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  white-space: nowrap;
}

.cv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
}

.cv-stack,
.cv-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cv-stack span {
  padding: 0.26rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.cv-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.26rem 0.6rem;
  border: 1px solid rgba(232, 169, 74, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cv-links a::after {
  content: '↗';
  font-size: 0.9em;
  opacity: 0.7;
}

.cv-links a:hover {
  color: var(--fg-strong);
  border-color: var(--accent);
  background: rgba(232, 169, 74, 0.24);
}

.cv-img {
  display: block;
  width: 100%;
  max-height: 22rem;
  margin: 0.1rem 0 1.2rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.8);
}

.cv-prose {
  color: var(--fg);
  font-family: 'Newsreader', Georgia, ui-serif, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

.cv-prose p {
  margin: 0 0 1rem;
}

.cv-prose p:last-child {
  margin-bottom: 0;
}

.cv-prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(232, 169, 74, 0.35);
  text-underline-offset: 0.18em;
}

.cv-prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .cv {
    animation: none;
  }

  .cv-dot {
    animation: none;
  }
}

.hover\:opacity-60:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
