/*
 * Freelance Desk for Ghost, by Peachfin Themes (https://peachfinthemes.com/).
 * A writer's front page set like a magazine: the name across the top as a
 * masthead, a fee table, a drop cap, footnotes, pull quotes and a writing index.
 *
 * Font: Newsreader, bundled in assets/fonts/newsreader and licensed under the
 * SIL Open Font License 1.1 (OFL.txt beside the files). No font service and no
 * remote font request. Body text uses the reader's system sans-serif unless
 * "Body font" is set to Serif. Each Newsreader style is split by Unicode range;
 * a browser downloads a file only when a page uses one of its characters.
 */

@font-face{
  font-family:"Newsreader";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-normal-latin-ext.woff2) format("woff2");
  unicode-range:U+00A1-00A2,U+00A4-00A8,U+00AA-00AD,U+00AF-024F,U+0259,U+02B9-02DD,U+0300-0335,U+1E80-1EF9,U+20AC}
@font-face{
  font-family:"Newsreader";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-normal-latin-basic-extra.woff2) format("woff2");
  unicode-range:U+00A0,U+00A3,U+00A9,U+00AE,U+014D}
@font-face{
  font-family:"Newsreader";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-normal-latin-basic-core.woff2) format("woff2");
  unicode-range:U+0020-007E,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026,U+20AC,U+2122}
@font-face{
  font-family:"Newsreader";
  font-style:italic;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-italic-latin-ext.woff2) format("woff2");
  unicode-range:U+00A1-00A2,U+00A4-00A8,U+00AA-00AD,U+00AF-024F,U+0259,U+02B9-02DD,U+0300-0335,U+1E80-1EF9,U+20AC}
@font-face{
  font-family:"Newsreader";
  font-style:italic;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-italic-latin-basic-extra.woff2) format("woff2");
  unicode-range:U+00A0,U+00A3,U+00A9,U+00AE,U+014D}
@font-face{
  font-family:"Newsreader";
  font-style:italic;
  font-weight:200 800;
  font-display:swap;
  src:url(../fonts/newsreader/newsreader-italic-latin-basic-core.woff2) format("woff2");
  unicode-range:U+0020-007E,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026,U+20AC,U+2122}

/* ==========================================================================
   Tokens. The eight palettes come from the Astro edition and are each checked
   for WCAG AA (4.5:1) on every text pair. Switches from the theme settings
   arrive as data-* attributes on <html> (see default.hbs).
   ========================================================================== */

:root {
  --paper: #f7f7f5;
  --ink: #1b1b1b;
  --muted: #575757;
  --accent: #a1271d;
  --on-accent: #ffffff;
  --band: #f1e8e6;
  --soft: #ececea;
  --line: #d8d8d6;

  --display: var(--gh-font-heading, "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: var(--gh-font-body, var(--sans));

  --wide: 73.75rem;
  --measure: 42.5rem;
  --gutter: clamp(1.25rem, 4.4vw, 3.5rem);
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --space: clamp(4rem, 7.5vw, 7rem);
  --rule-strong: 3px double;

  --t-body: 1.0625rem;
  --t-lead: clamp(1.1875rem, 1.5vw, 1.3125rem);
  --t-h3: clamp(1.3125rem, 1.8vw, 1.5rem);
  --t-h2: clamp(1.875rem, 3.1vw, 2.625rem);
  color-scheme: light;
}

:root[data-palette="harbour"] { --paper: #f4f6f8; --ink: #18212b; --muted: #4f5b67; --accent: #1d5f75; --on-accent: #ffffff; --band: #e5ebef; --soft: #e9ebee; --line: #d5d8db; }
:root[data-palette="slate"] { --paper: #eceff3; --ink: #161b24; --muted: #4a5260; --accent: #3a4cad; --on-accent: #ffffff; --band: #e0e4ee; --soft: #e1e4e9; --line: #ced1d6; }
:root[data-palette="fern"] { --paper: #ffffff; --ink: #1a1f1b; --muted: #555c57; --accent: #3d6b2c; --on-accent: #ffffff; --band: #f1f5f0; --soft: #f4f4f4; --line: #dfe0df; }
:root[data-palette="indigo"] { --paper: #1d2d73; --ink: #ffffff; --muted: #d9def5; --accent: #ffcf5c; --on-accent: #141414; --band: #192763; --soft: #28387a; --line: #3d4a87; }
:root[data-palette="oxblood"] { --paper: #5b1a22; --ink: #fff6f2; --muted: #efcfcf; --accent: #f4c27a; --on-accent: #2a0d10; --band: #6a2b2b; --soft: #63252c; --line: #72393f; }
:root[data-palette="midnight"] { --paper: #0f1520; --ink: #eef1f6; --muted: #a9b3c2; --accent: #f2b35b; --on-accent: #0f1520; --band: #262526; --soft: #1a202b; --line: #2e343e; }
:root[data-palette="carbon"] { --paper: #1b1b1d; --ink: #f2f1ee; --muted: #aeaeb0; --accent: #c9f24a; --on-accent: #1b1b1d; --band: #2c3022; --soft: #262627; --line: #39393a; }
:root[data-tone="dark"] { color-scheme: dark; }

/* Site accent colour in place of the palette accent. Its lightness is clamped
   so links and button text keep at least 4.5:1 on the palette. Browsers
   without relative colour syntax keep the palette accent. */
@supports (color: oklch(from red l c h)) {
  :root[data-accent="site"] {
    --accent: oklch(from var(--ghost-accent-color, #a1271d) min(l, 0.5) c h);
    --on-accent: #ffffff;
  }

  :root[data-accent="site"][data-tone="dark"] {
    --accent: oklch(from var(--ghost-accent-color, #f2b35b) max(l, 0.8) min(c, 0.16) h);
    --on-accent: #141414;
  }
}

:root[data-rules="single"] { --rule-strong: 1px solid; }
:root[data-body="serif"] { --body: var(--gh-font-body, var(--serif)); }

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-body) / 1.6 var(--body);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-wrap: break-word;
}

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

img {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

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

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

code,
pre,
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.fd-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fd-skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.fd-skip:focus {
  transform: none;
  color: var(--paper);
}

.fd-main:focus {
  outline: none;
}

.fd-kicker {
  margin: 0 0 0.75rem;
  font: italic 400 0.9375rem / 1.4 var(--serif);
  color: var(--muted);
}

.fd-access {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line);
  font: 600 0.75rem / 1.5 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

.fd-empty {
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: var(--t-lead);
}

/* Buttons, links and inputs */
.fd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem / 1.25 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
}

.fd-button:hover {
  background: color-mix(in srgb, var(--accent) 84%, var(--ink));
  color: var(--on-accent);
}

.fd-button:active {
  transform: translateY(1px);
}

.fd-button--small {
  min-height: 44px;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
}

.fd-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.5rem 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font: italic 400 1.3125rem / 1.3 var(--serif);
  text-decoration: none;
}

.fd-action::after {
  content: "→";
  font-style: normal;
  transition: transform 0.2s;
}

.fd-action:hover {
  color: var(--accent);
}

.fd-action:hover::after {
  transform: translateX(4px);
}

.fd-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 1rem / 1.3 var(--sans);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  text-underline-offset: 0.32em;
}

.fd-more:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.fd-input {
  min-width: 0;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.3 var(--sans);
}

.fd-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.fd-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.fd-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  min-height: 80px;
  margin: auto;
  padding: 0 var(--gutter);
}

.fd-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: min(52%, 420px);
  margin-right: auto;
  font: 500 1.3125rem / 1.1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.fd-brand:hover {
  color: var(--ink);
}

.fd-brand__logo {
  width: auto;
  max-width: 220px;
  max-height: 44px;
  object-fit: contain;
}

.fd-nav ul,
.fd-actions,
.fd-menu__panel ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-nav ul {
  gap: 1.75rem;
  font: 400 0.9375rem / 1.3 var(--sans);
}

.fd-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  text-underline-offset: 0.5em;
}

.fd-nav a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.fd-nav .nav-current a,
.fd-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.fd-actions {
  gap: 0.75rem;
  font: 400 0.9375rem / 1.3 var(--sans);
}

.fd-search {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.fd-search:hover {
  color: var(--accent);
}

.fd-actions__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.fd-actions__link:hover {
  text-decoration: underline;
}

.fd-menu {
  display: none;
}

.fd-menu summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  list-style: none;
  font: 400 0.9375rem / 1 var(--sans);
  cursor: pointer;
}

.fd-menu summary::-webkit-details-marker {
  display: none;
}

.fd-menu summary::after {
  content: "";
  width: 14px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.fd-menu[open] summary::after {
  height: 0;
  border-bottom: 0;
}

.fd-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px color-mix(in srgb, var(--ink) 10%, transparent);
}

.fd-menu__panel ul {
  display: grid;
  align-items: stretch;
}

.fd-menu__panel a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  text-decoration: none;
}

.fd-menu__panel .nav-current a {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Sections and the home page
   ========================================================================== */

.fd-section,
.fd-mast,
.fd-pagehead,
.fd-posthead,
.fd-next,
.fd-page__split,
.fd-cover,
.fd-postfoot {
  padding-inline: var(--edge);
}

.fd-section {
  padding-block: var(--space);
}

.fd-section--flush {
  padding-top: 0;
}

.fd-section h2,
.fd-head h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
  padding-top: 0.875rem;
  border-top: var(--rule-strong) var(--ink);
}

.fd-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-style: italic;
}

/* Masthead */
.fd-mast {
  padding-block: clamp(1.75rem, 3vw, 2.75rem) var(--space);
}

.fd-mast__name {
  padding-bottom: clamp(1.25rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(3.25rem, 9.4vw, 8.5rem);
  font-weight: 380;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.fd-mast--compact .fd-mast__name {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  letter-spacing: -0.03em;
}

.fd-mast__body {
  display: grid;
  grid-template-columns: minmax(0, 47.5rem);
  gap: 2rem clamp(2.25rem, 5vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.fd-mast__body--photo {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.fd-deck {
  max-width: 22ch;
  font: italic 400 clamp(1.5rem, 2.3vw, 2rem) / 1.25 var(--serif);
  letter-spacing: -0.01em;
}

.fd-mast--name .fd-deck,
.fd-mast--compact .fd-deck {
  max-width: 30ch;
}

.fd-standfirst {
  max-width: 40ch;
  margin-top: 1.25rem;
  font: 400 clamp(1.125rem, 1.4vw, 1.25rem) / 1.6 var(--serif);
}

.fd-mast__action {
  margin-top: 1.75rem;
}

.fd-mast__figure {
  margin: 0;
}

.fd-mast__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--soft);
}

.fd-mast__figure figcaption,
.fd-cover figcaption,
.fd-page__photo figcaption {
  margin-top: 0.625rem;
  font: italic 400 0.9375rem / 1.4 var(--serif);
  color: var(--muted);
}

/* Fee table: any table in a page or post. The first column is the service,
   the last the fee; columns between are set small and right-aligned. */
.gh-content table {
  width: 100%;
  margin-block: 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.gh-content thead th {
  padding: 0 0 0.625rem;
  border-bottom: 1px solid var(--ink);
  font: italic 400 0.875rem / 1.3 var(--serif);
  color: var(--muted);
  text-align: right;
}

.gh-content thead th:first-child,
.gh-content thead th:nth-child(2) {
  text-align: left;
}

.gh-content tbody td,
.gh-content tbody th {
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
  text-align: left;
}

.gh-content tbody td:first-child,
.gh-content tbody th:first-child {
  width: 28%;
  padding-right: 2rem;
  font: 500 clamp(1.3125rem, 1.8vw, 1.5625rem) / 1.25 var(--display);
  letter-spacing: -0.01em;
}

.gh-content tbody td:nth-child(2) {
  max-width: 56ch;
  padding-right: 2.5rem;
  color: var(--muted);
}

.gh-content tbody td:nth-child(n + 3) {
  padding-left: 1.5rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.gh-content tbody td:last-child:nth-child(n + 2) {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.gh-content tbody tr {
  transition: background-color 0.2s;
}

.gh-content tbody tr:hover {
  background: var(--soft);
}

.fd-rates {
  padding-top: 0;
}

.fd-rates__tables > :not(table) {
  display: none;
}

.fd-rates__tables > table + table {
  margin-top: 2.5rem;
}

/* About: the About page's first paragraph with a drop cap, its photo, and its
   first numbered list as credentials numbered like footnotes. */
.fd-about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  grid-template-areas: "lead notes" "more notes";
  gap: 1rem clamp(2.25rem, 5vw, 4.5rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.fd-about--portrait {
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  grid-template-areas: "photo lead notes" "photo more notes";
}

.fd-about__portrait {
  grid-area: photo;
  margin: 0;
}

.fd-about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(0.15);
}

.fd-about__text {
  display: contents;
}

.fd-about__text > :not(p:first-of-type, ol:first-of-type) {
  display: none;
}

.fd-about__text > p:first-of-type {
  grid-area: lead;
  max-width: 62ch;
  font: 400 clamp(1.1875rem, 1.5vw, 1.3125rem) / 1.65 var(--serif);
}

.fd-about__text > p:first-of-type::first-letter,
:root[data-dropcap="on"] .fd-prose > p:first-of-type::first-letter,
.fd-prose--page > p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.1em 0 0;
  font-family: var(--serif);
  font-size: 4.1em;
  font-weight: 500;
  line-height: 0.82;
  color: var(--accent);
}

.fd-about__text > ol:first-of-type {
  grid-area: notes;
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 3rem 0 0 1.4em;
  background: linear-gradient(var(--ink), var(--ink)) 0 0.75rem / min(100%, 11.25rem) 1px no-repeat;
  font: 400 0.875rem / 1.55 var(--sans);
  color: var(--muted);
  position: relative;
}

.fd-about__text > ol:first-of-type::before {
  content: var(--fd-notes-label, "Experience");
  position: absolute;
  top: 1.25rem;
  left: 0;
  font: italic 400 1rem / 1.4 var(--serif);
  color: var(--ink);
}

.fd-about__text > ol:first-of-type li::marker {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.fd-about__more {
  grid-area: more;
}

/* Pull quotes on the home page: the About page's quotes, the first set large. */
.fd-quotes {
  border-top: 1px solid var(--line);
}

.fd-quotes__list {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 5fr));
  gap: clamp(2.25rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem);
}

.fd-quotes__list > :not(blockquote) {
  display: none;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote {
  grid-column: span 1;
  margin: 0;
  padding: 0;
  border: 0;
  font: 400 var(--t-lead) / 1.55 var(--serif);
  max-width: 44ch;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote:nth-of-type(2) {
  grid-column: 2;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote:first-of-type {
  grid-column: 2 / -1;
  max-width: 26ch;
  font: italic 400 clamp(1.875rem, 3.6vw, 3.125rem) / 1.18 var(--serif);
  letter-spacing: -0.02em;
  text-indent: -0.4em;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote:first-of-type::before {
  content: "“";
  color: var(--accent);
}

.fd-quotes .gh-content.fd-quotes__list > blockquote p {
  margin: 0;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote.kg-blockquote-alt {
  text-align: left;
}

.fd-quotes .gh-content.fd-quotes__list > blockquote.kg-blockquote-alt::before {
  content: none;
}

/* Quote attribution: a line break, then the name in bold and the detail in italics. */
.gh-content blockquote strong,
.gh-content blockquote strong ~ em {
  display: inline;
  font: 600 0.9375rem / 1.45 var(--sans);
  letter-spacing: 0;
  text-indent: 0;
  font-style: normal;
}

.gh-content blockquote strong ~ em {
  font-weight: 400;
  color: var(--muted);
}

.gh-content blockquote strong {
  display: inline-block;
  margin-top: 1.125rem;
  margin-right: 0.5rem;
}

/* Writing index */
.fd-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-index__item {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.fd-index__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  font: italic 400 0.875rem / 1.4 var(--serif);
  color: var(--muted);
}

.fd-index__section {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.fd-index__section:hover {
  text-decoration: underline;
}

.fd-index__title {
  margin: 0.375rem 0 0.5rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.fd-index__title a {
  text-decoration: none;
}

.fd-index__title a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.fd-index__desc {
  max-width: 56ch;
  color: var(--muted);
}

.fd-writing {
  padding-top: var(--space);
}

/* Signup */
.fd-signup {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2.25rem, 5vw, 5rem);
  align-items: end;
}

.fd-signup--home {
  border-top: var(--rule-strong) var(--ink);
  background: var(--band);
}

.fd-signup__title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-style: italic;
  line-height: 1.1;
}

.fd-signup__lede {
  margin-top: 0.75rem;
  max-width: 44ch;
  color: var(--muted);
}

.fd-signup__row {
  display: flex;
  gap: 0.625rem;
}

.fd-signup__row .fd-input {
  flex: 1 1 14rem;
}

.fd-signup__busy,
.fd-signup__msg {
  display: none;
}

.fd-signup__form.loading .fd-signup__label {
  display: none;
}

.fd-signup__form.loading .fd-signup__busy {
  display: inline;
}

.fd-signup__form.success .fd-signup__msg--success,
.fd-signup__form.error .fd-signup__msg--error {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.fd-signup__form.success .fd-signup__row {
  display: none;
}

/* Contact */
.fd-contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2.25rem, 5vw, 5rem);
  border-top: var(--rule-strong) var(--ink);
}

.fd-contact h2 {
  font-size: clamp(2.125rem, 3.6vw, 3.125rem);
  font-style: italic;
  line-height: 1.05;
}

.fd-contact__body {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.fd-contact__big {
  font: 400 clamp(1.25rem, 1.8vw, 1.5rem) / 1.35 var(--display);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

.fd-contact__note {
  color: var(--muted);
}

/* ==========================================================================
   Page heads, pages, archive, sections, pagination
   ========================================================================== */

.fd-pagehead {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 6rem) clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--ink);
}

.fd-pagehead__title {
  max-width: 20ch;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.035em;
}

.fd-pagehead__lede {
  max-width: 52ch;
  margin-top: 1.25rem;
  font: italic 400 clamp(1.3125rem, 1.9vw, 1.625rem) / 1.35 var(--serif);
}

.fd-pagehead--image {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
}

.fd-pagehead--image > :not(img) {
  grid-column: 1;
}

.fd-pagehead__image {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fd-pagehead--author {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.fd-author__photo {
  flex: 0 0 auto;
  width: clamp(5rem, 9vw, 7.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.fd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.fd-page__split {
  display: grid;
  grid-template-columns: minmax(0, 47.5rem);
  gap: 2.5rem clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  padding-bottom: var(--space);
}

.fd-page__split--photo {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.fd-page__photo {
  position: sticky;
  top: 1.5rem;
  margin: 0;
}

.fd-page__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--soft);
}

.fd-page--rates .fd-prose {
  padding-inline: var(--edge);
  padding-bottom: var(--space);
}

.fd-prose.gh-content.fd-prose--rates > table {
  max-width: none;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fd-archive__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-archive__item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
}

.fd-archive__list--grouped .fd-archive__item--first {
  margin-top: 1.5rem;
  border-top: var(--rule-strong) var(--ink);
}

.fd-archive__list--grouped .fd-archive__item--first:first-child {
  margin-top: 0;
}

.fd-archive__list--grouped .fd-archive__item--same .fd-archive__year {
  visibility: hidden;
}

.fd-archive__year {
  font: italic 400 clamp(1.5rem, 2.4vw, 2rem) / 1.1 var(--serif);
}

.fd-archive__title {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.fd-archive__title a {
  text-decoration: none;
}

.fd-archive__title a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.fd-archive__meta {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.fd-sections {
  border-top: 0;
}

.fd-sectionlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-sectionlinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9375rem;
}

.fd-sectionlinks a:hover {
  border-color: var(--accent);
}

.fd-sectionlinks__count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fd-pages {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fd-pages__count {
  font: italic 400 1rem / 1.3 var(--serif);
  color: var(--muted);
}

.fd-pages__step {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.fd-pages__step:hover {
  text-decoration: underline;
}

.fd-pages__step--next {
  justify-self: end;
}

.fd-errors {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Closing band and footer
   ========================================================================== */

.fd-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title action" "line action";
  gap: 0.625rem 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: var(--rule-strong) var(--ink);
}

.fd-next__title {
  grid-area: title;
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fd-next__line {
  grid-area: line;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  color: var(--muted);
}

.fd-next__action {
  grid-area: action;
}

.fd-footer {
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
}

.fd-footer__inner,
.fd-footer__base {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: auto;
  padding-inline: var(--gutter);
}

.fd-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2rem 3rem;
  padding-block: 3.5rem 2.5rem;
}

.fd-footer__name {
  margin-bottom: 0.5rem;
  font: 500 1.5rem / 1.15 var(--display);
}

.fd-footer__name a {
  text-decoration: none;
}

.fd-footer__note {
  max-width: 40ch;
  color: var(--muted);
}

.fd-footer__nav ul,
.fd-footer__contact {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-footer__nav a,
.fd-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}

.fd-footer__nav a:hover,
.fd-footer__contact a:hover {
  text-decoration: underline;
}

.fd-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.fd-footer__base a {
  color: var(--ink);
}

.fd-error-page .fd-header__inner {
  min-height: 64px;
}

/* ==========================================================================
   Posts
   ========================================================================== */

.fd-posthead {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.fd-posthead > * {
  max-width: var(--measure);
  margin-inline: auto;
}

.fd-posthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
  font: italic 400 0.9375rem / 1.4 var(--serif);
  color: var(--muted);
}

.fd-posthead__section {
  font: 400 0.8125rem / 1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.fd-posthead__title {
  font-size: clamp(2.125rem, 4.4vw, 3.625rem);
  font-weight: 360;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.fd-posthead__lede {
  margin-top: 1.125rem;
  font: italic 400 var(--t-lead) / 1.45 var(--serif);
  color: var(--muted);
}

.fd-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.fd-byline__photo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.fd-byline__photo + .fd-byline__photo {
  margin-left: -0.875rem;
  box-shadow: 0 0 0 2px var(--paper);
}

.fd-byline a {
  text-decoration-color: var(--line);
}

.fd-cover {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.fd-cover img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  background: var(--soft);
}

.fd-prose {
  padding-inline: var(--gutter);
  padding-block: clamp(2rem, 4vw, 3rem) 0;
  font-size: 1.125rem;
  line-height: 1.72;
}

.fd-page__split .fd-prose {
  padding-inline: 0;
  padding-top: 0;
}

.fd-page--rates .fd-prose.fd-prose--rates {
  padding-inline: var(--edge);
  padding-top: 0;
}

.fd-prose.gh-content > :not(.kg-width-wide, .kg-width-full) {
  max-width: var(--measure);
  margin-inline: auto;
}

.fd-page__split .fd-prose.gh-content > :not(.kg-width-wide, .kg-width-full),
.fd-prose.gh-content.fd-prose--rates > :not(.kg-width-wide, .kg-width-full) {
  margin-inline: 0;
}

.fd-prose--page > p {
  font: 400 1.1875rem / 1.7 var(--body);
}

.gh-content > * + * {
  margin-top: 1.4em;
}

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

.gh-content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.5625rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.gh-content h3 {
  margin-top: 1.6em;
  font-size: 1.375rem;
  line-height: 1.3;
}

.gh-content h4 {
  margin-top: 1.5em;
  font: 600 1.0625rem / 1.4 var(--body);
}

.gh-content h2 + *,
.gh-content h3 + *,
.gh-content h4 + * {
  margin-top: 0.6em;
}

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

.gh-content ul,
.gh-content ol {
  padding-left: 1.3em;
}

.gh-content li + li {
  margin-top: 0.4em;
}

.gh-content hr {
  width: 100%;
  height: 0;
  margin-block: 2.5em;
  border: 0;
  border-top: var(--rule-strong) var(--ink);
}

.gh-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.55;
}

.gh-content :not(pre) > code {
  padding: 0.1em 0.3em;
  background: var(--soft);
}

.gh-content figure {
  margin-inline: auto;
}

.gh-content figcaption {
  margin-top: 0.625rem;
  font: italic 400 0.9375rem / 1.45 var(--serif);
  color: var(--muted);
  text-align: left;
}

.gh-content img {
  height: auto;
}

/* Pull quotes: a quote is set in large italic Newsreader with an accent mark;
   the alternative quote style is set larger still, centred between rules. */
.gh-content blockquote:not(.kg-blockquote-alt) {
  position: relative;
  margin-block: 2em;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent);
  font: italic 400 clamp(1.375rem, 2.2vw, 1.75rem) / 1.35 var(--serif);
  letter-spacing: -0.01em;
}

.gh-content blockquote.kg-blockquote-alt {
  margin-block: 2.25em;
  padding: 1.5rem 0;
  border-block: 1px solid var(--ink);
  font: italic 400 clamp(1.625rem, 3vw, 2.375rem) / 1.2 var(--serif);
  letter-spacing: -0.02em;
  text-align: center;
}

.gh-content blockquote.kg-blockquote-alt::before {
  content: "“";
  display: block;
  margin-bottom: 0.25rem;
  font-size: 2.5em;
  line-height: 0.5;
  color: var(--accent);
}

.gh-content blockquote p {
  margin: 0;
}

/* Footnotes from the Markdown card ([^1]): numbered references and a short-ruled list. */
.gh-content .footnote-ref a,
.gh-content sup a {
  padding: 0 0.1em;
  color: var(--accent);
  font: 600 0.75em / 1 var(--sans);
  text-decoration: none;
}

.gh-content .footnotes-sep {
  display: none;
}

.gh-content .footnotes {
  margin-top: 3em;
  padding-top: 1rem;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / min(100%, 11.25rem) 1px no-repeat;
  font: 400 0.9375rem / 1.55 var(--sans);
  color: var(--muted);
}

.gh-content .footnotes::before {
  content: var(--fd-notes-title, "Notes");
  display: block;
  margin-bottom: 0.5rem;
  font: italic 400 1rem / 1.4 var(--serif);
  color: var(--ink);
}

.gh-content .footnotes ol {
  margin: 0;
  padding-left: 1.4em;
}

.gh-content .footnotes li::marker {
  color: var(--ink);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.gh-content .footnotes p {
  margin: 0;
}

.gh-content .footnote-backref {
  margin-left: 0.25em;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--sans);
}

.gh-content li:target,
.gh-content .footnote-ref:target {
  background: var(--band);
}

/* Post footer */
.fd-postfoot {
  padding-top: 2.5rem;
}

.fd-postfoot > * {
  max-width: var(--measure);
  margin-inline: auto;
}

.fd-postfoot > * + * {
  margin-top: 2.5rem;
}

.fd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.fd-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.875rem;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  text-decoration: none;
}

.fd-tags a:hover {
  border-color: var(--accent);
}

.fd-signup--post {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: var(--rule-strong) var(--ink);
  background: var(--band);
}

.fd-comments {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

/* Ghost's comments, Portal and search frames are light-scheme documents.
   On a dark page a frame whose colour scheme differs from its document is
   painted on an opaque white canvas, so the frames are set to the scheme of
   the document inside them and stay transparent. Each app takes its own
   light or dark look from the theme (comments mode, accent colour). */
#ghost-comments-root iframe,
#ghost-portal-root iframe,
#sodo-search-root iframe {
  color-scheme: light;
}

.fd-postnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}

.fd-postnav:not(:has(a)) {
  display: none;
}

.fd-postnav a {
  font: 400 1.25rem / 1.3 var(--display);
  text-decoration: none;
}

.fd-postnav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

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

.fd-postnav__label {
  display: block;
  margin-bottom: 0.25rem;
  font: italic 400 0.875rem / 1.3 var(--serif);
  color: var(--muted);
}

.fd-more-writing {
  padding-top: var(--space);
}

/* Members-only and paid posts: the locked part's call to action (partials/content-cta.hbs) */
.fd-paywall {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: var(--rule-strong) var(--ink);
  background: var(--band);
  text-align: left;
}

.fd-paywall__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.15;
}

.fd-paywall p + p {
  margin-top: 0.875rem;
}

.fd-paywall__signin {
  color: var(--muted);
}

.fd-paywall__signin a {
  color: var(--ink);
}


/* ==========================================================================
   Koenig editor cards. Ghost's own card CSS and scripts load with
   card_assets; the rules below set Freelance Desk's type, colours and widths.
   ========================================================================== */

/* Ghost's cards read --ghost-accent-color; inside content it is the theme's
   contrast-safe accent, and text on it uses --on-accent. */
.gh-content {
  --ghost-accent-color: var(--accent);
  --content-wide: 60rem;
}

.gh-content .kg-callout-card.kg-callout-card-accent,
.gh-content .kg-button-card a.kg-btn-accent,
.gh-content .kg-product-card a.kg-product-card-btn-accent,
.gh-content a.kg-cta-button.kg-style-accent {
  color: var(--on-accent);
}

.gh-content .kg-audio-card .kg-audio-time,
.gh-content .kg-audio-card .kg-audio-playback-rate {
  color: var(--muted);
}

.gh-content .kg-width-wide,
.gh-content .kg-width-full {
  position: relative;
}

.gh-content .kg-width-wide {
  width: min(var(--content-wide), calc(100vw - 2 * var(--gutter)));
  max-width: none;
  margin-left: calc(50% - min(var(--content-wide), calc(100vw - 2 * var(--gutter))) / 2);
}

.gh-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  width: 100%;
}

.gh-content .kg-width-full img,
.gh-content .kg-width-full .kg-image {
  border-radius: 0;
}

.gh-content .kg-width-full figcaption {
  padding-inline: var(--gutter);
}

.gh-content .kg-image-card img {
  margin-inline: auto;
}

.gh-content .kg-card figcaption {
  text-align: left;
}

.gh-content .kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gh-content .kg-embed-card > * {
  max-width: 100%;
}

/* Gallery */
.gh-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gh-content .kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
}

.gh-content .kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.gh-content .kg-gallery-row:not(:first-of-type),
.gh-content .kg-gallery-image:not(:first-of-type) {
  margin: 0;
}

/* Bookmark */
.gh-content .kg-bookmark-card,
.gh-content .kg-bookmark-card * {
  box-sizing: border-box;
}

.gh-content .kg-bookmark-card a.kg-bookmark-container,
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover {
  display: flex;
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.gh-content .kg-bookmark-container:hover .kg-bookmark-title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.gh-content .kg-bookmark-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.25rem;
}

.gh-content .kg-bookmark-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.gh-content .kg-bookmark-description {
  display: -webkit-box;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gh-content .kg-bookmark-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.gh-content .kg-bookmark-icon {
  width: 20px;
  height: 20px;
}

.gh-content .kg-bookmark-author,
.gh-content .kg-bookmark-publisher {
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gh-content .kg-bookmark-thumbnail {
  position: relative;
  flex: 0 0 33%;
  min-width: 33%;
  max-height: 100%;
}

.gh-content .kg-bookmark-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Callout: an editor's note, a band box with an accent rule */
.gh-content .kg-callout-card {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--band);
  color: var(--ink);
}

.gh-content .kg-callout-card-grey,
.gh-content .kg-callout-card-white { background: var(--band); }

.gh-content .kg-callout-card-blue { background: color-mix(in srgb, #3b82f6 12%, var(--paper)); }

.gh-content .kg-callout-card-green { background: color-mix(in srgb, #22c55e 13%, var(--paper)); }

.gh-content .kg-callout-card-yellow { background: color-mix(in srgb, #eab308 15%, var(--paper)); }

.gh-content .kg-callout-card-red { background: color-mix(in srgb, #ef4444 12%, var(--paper)); }

.gh-content .kg-callout-card-pink { background: color-mix(in srgb, #ec4899 12%, var(--paper)); }

.gh-content .kg-callout-card-purple { background: color-mix(in srgb, #8b5cf6 13%, var(--paper)); }

.gh-content .kg-callout-card-accent { background: var(--accent); color: var(--on-accent); border-left-color: var(--ink); }

.gh-content .kg-callout-card-accent a { color: inherit; }

.gh-content .kg-callout-emoji {
  font-size: 1.25rem;
  line-height: 1.5;
}

.gh-content .kg-callout-text {
  font-size: 1.125rem;
  line-height: 1.6;
}

.gh-content .kg-callout-text > strong:first-child,
.gh-content .kg-callout-text > b:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Toggle */
.gh-content .kg-toggle-card {
  padding: 1rem 0;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gh-content .kg-toggle-card + .kg-toggle-card {
  margin-top: 0;
  border-top: 0;
}

.gh-content .kg-toggle-card .kg-toggle-heading-text {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

.gh-content .kg-toggle-card-icon {
  color: var(--accent);
}

.gh-content .kg-toggle-card-icon svg {
  color: var(--accent);
}

.gh-content .kg-toggle-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Button */
.gh-content .kg-button-card {
  display: flex;
}

.gh-content .kg-button-card.kg-align-center {
  justify-content: center;
}

.gh-content .kg-btn,
.gh-content .kg-btn-accent,
.gh-content .kg-product-card-button,
.gh-content .kg-header-card-button,
.gh-content .kg-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.gh-content .kg-btn-accent,
.gh-content .kg-product-card-btn-accent,
.gh-content .kg-header-card-button.kg-style-accent,
.gh-content .kg-cta-button.kg-style-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.gh-content .kg-btn-accent:hover,
.gh-content .kg-product-card-btn-accent:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Product */
.gh-content .kg-product-card-container {
  max-width: 34rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.gh-content .kg-product-card-image {
  border-radius: 0;
}

.gh-content .kg-product-card-title {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--ink);
}

.gh-content .kg-product-card-description {
  color: var(--muted);
}

.gh-content .kg-product-card-rating-active svg {
  fill: var(--accent);
}

/* Video */
.gh-content .kg-video-card video,
.gh-content .kg-video-container {
  border-radius: 0;
}

.gh-content .kg-video-card .kg-video-player button {
  color: #fff;
}

/* Audio */
.gh-content .kg-audio-card,
.gh-content .kg-audio-player-container,
.gh-content .kg-audio-player {
  min-width: 0;
  max-width: 100%;
}

.gh-content .kg-audio-card {
  min-height: 6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.gh-content .kg-audio-thumbnail {
  border-radius: 0;
}

.gh-content .kg-audio-thumbnail.placeholder {
  background: var(--band);
}

.gh-content .kg-audio-thumbnail.placeholder svg {
  color: var(--accent);
}

.gh-content .kg-audio-title {
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--ink);
}

.gh-content .kg-audio-player,
.gh-content .kg-audio-current-time,
.gh-content .kg-audio-duration,
.gh-content .kg-audio-playback-rate {
  font-family: var(--sans);
  color: var(--ink);
}

.gh-content .kg-audio-play-icon svg,
.gh-content .kg-audio-pause-icon svg,
.gh-content .kg-audio-mute-icon svg,
.gh-content .kg-audio-unmute-icon svg {
  color: var(--accent);
}

.gh-content .kg-audio-seek-slider,
.gh-content .kg-audio-volume-slider {
  accent-color: var(--accent);
}

/* File */
.gh-content .kg-file-card a.kg-file-card-container,
.gh-content .kg-file-card a.kg-file-card-container:hover {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  text-decoration: none;
}

.gh-content .kg-file-card-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
}

.gh-content .kg-file-card-caption,
.gh-content .kg-file-card-metadata {
  font-size: 0.9375rem;
  color: var(--muted);
}

.gh-content .kg-file-card-filesize {
  font-family: var(--sans);
}

.gh-content .kg-file-card-icon {
  color: var(--accent);
}

.gh-content .kg-file-card-icon::before {
  background: var(--accent);
  opacity: 0.12;
  border-radius: 0;
}

/* Header (v1 and v2) */
.gh-content .kg-header-card {
  font-family: var(--sans);
}

.gh-content .kg-header-card h2,
.gh-content .kg-header-card .kg-header-card-heading,
.gh-content .kg-header-card .kg-header-card-header {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.gh-content .kg-header-card .kg-header-card-subheading,
.gh-content .kg-header-card .kg-header-card-subheader {
  font-family: var(--sans);
}

.gh-content .kg-header-card.kg-width-wide,
.gh-content .kg-header-card.kg-width-full {
  border-radius: 0;
}

/* Signup card */
.gh-content .kg-signup-card {
  font-family: var(--sans);
}

.gh-content .kg-signup-card .kg-signup-card-heading {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.gh-content .kg-signup-card-input {
  border-radius: 0;
  font-family: var(--sans);
}

.gh-content .kg-signup-card-button {
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 700;
}

.gh-content .kg-signup-card-disclaimer {
  font-size: 0.9375rem;
}

/* Call to action (Ghost 6) */
.gh-content .kg-cta-card {
  border-radius: 0;
  font-family: var(--sans);
}

.gh-content .kg-cta-card.kg-cta-bg-none,
.gh-content .kg-cta-card.kg-cta-bg-white {
  border: 1px solid var(--line);
}

.gh-content .kg-cta-sponsor-label,
.gh-content .kg-cta-sponsor-label span {
  font-family: var(--sans);
  letter-spacing: 0.06em;
}

.gh-content .kg-cta-image {
  border-radius: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 63.75rem) {
  .fd-about--portrait {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "photo lead" "photo more" "photo notes";
  }

  .fd-quotes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-quotes .gh-content.fd-quotes__list > blockquote:first-of-type {
    grid-column: 1 / -1;
  }

  .fd-quotes .gh-content.fd-quotes__list > blockquote:nth-of-type(2) {
    grid-column: 1;
  }

  .fd-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-footer__id {
    grid-column: 1 / -1;
  }
}

@media (max-width: 56rem) {
  .fd-nav,
  .fd-actions__member {
    display: none;
  }

  .fd-menu {
    display: block;
  }

  .fd-header__inner {
    gap: 0.5rem;
  }
}

@media (max-width: 47.5rem) {
  :root {
    --gutter: 1.25rem;
    --t-body: 1rem;
    --space: clamp(3.25rem, 14vw, 4.5rem);
  }

  .fd-header__inner {
    min-height: 64px;
  }

  .fd-brand {
    max-width: calc(100% - 130px);
    font-size: 1.25rem;
  }

  .fd-mast__name {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .fd-mast--compact .fd-mast__name {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .fd-mast__body--photo,
  .fd-contact,
  .fd-signup,
  .fd-about,
  .fd-about--portrait,
  .fd-pagehead--image,
  .fd-page__split--photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-about,
  .fd-about--portrait {
    grid-template-areas: "photo" "lead" "more" "notes";
  }

  .fd-about__portrait {
    max-width: 220px;
  }

  .fd-mast__figure {
    order: -1;
  }

  .fd-pagehead__image {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.5rem;
  }

  .fd-page__photo {
    position: static;
    grid-row: 1;
    max-width: 320px;
  }

  .fd-quotes__list,
  .fd-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-quotes .gh-content.fd-quotes__list > blockquote:first-of-type,
  .fd-quotes .gh-content.fd-quotes__list > blockquote:nth-of-type(2) {
    grid-column: 1;
  }

  .fd-signup__row {
    flex-wrap: wrap;
  }

  .fd-signup__row .fd-button {
    flex: 1 1 auto;
  }

  .gh-content table,
  .gh-content tbody,
  .gh-content tr,
  .gh-content td,
  .gh-content tbody th {
    display: block;
    width: auto !important;
  }

  .gh-content thead {
    display: none;
  }

  .gh-content tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.375rem 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
  }

  .gh-content tbody tr:first-child {
    border-top: 1px solid var(--ink);
  }

  .gh-content tbody td,
  .gh-content tbody th {
    padding: 0 !important;
    border: 0;
    white-space: normal !important;
  }

  .gh-content tbody td:first-child,
  .gh-content tbody td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .gh-content tbody td:nth-child(n + 3) {
    text-align: left;
  }

  .fd-next {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "line" "action";
  }

  .fd-archive__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-archive__list--grouped .fd-archive__item--same .fd-archive__year {
    display: none;
  }

  .fd-pagehead--author {
    flex-direction: column;
  }

  .fd-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 2.5rem 1.75rem;
  }

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

  .gh-content .kg-bookmark-container {
    flex-direction: column-reverse;
  }

  .gh-content .kg-bookmark-thumbnail {
    flex-basis: auto;
    width: 100%;
    min-height: 10rem;
  }
}

@media (max-width: 30rem) {
  .gh-content .kg-audio-thumbnail,
  .gh-content .kg-audio-volume-slider {
    display: none;
  }

  .gh-content .kg-audio-player-container {
    padding-inline: 0.75rem;
  }

  .fd-pages {
    grid-template-columns: 1fr 1fr;
  }

  .fd-pages__count {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .fd-header,
  .fd-footer,
  .fd-postnav,
  .fd-signup,
  .fd-next,
  .fd-skip,
  .fd-comments,
  .fd-more-writing {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
