/* SuperGhost: the default SuperGhost blog theme.
   A layer on top of Ghost's Source theme. It keeps Source's templates and
   markup and loads after Source's screen.css. Fonts and the accent colour a
   writer picks in Ghost's design settings still win, because they arrive as
   --gh-font-heading, --gh-font-body and --ghost-accent-color. */

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Figtree", "Iowan Old Style", Georgia, serif;
  --font-serif-alt: var(--font-serif);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --slow-title: var(--gh-font-heading, var(--font-serif));
  --slow-ink: #2a1c13;
  --slow-ink-soft: #6b5c50;
  --slow-line: #ece6dd;
  --slow-line-strong: #d9d0c3;
  --slow-paper: #fff9ef;
  --slow-paper-line: #f4e7cf;
  --slow-sage: #5d9183;
  --slow-orange: #e1702f;
  --slow-marigold: #e8a935;
  --slow-marigold-wash: #fdf5e1;

  --color-darker-gray: var(--slow-ink);
  --color-primary-text: var(--slow-ink);
  --color-secondary-text: var(--slow-ink-soft);
  --color-border: var(--slow-line);
  --color-dark-border: #9c8f80;
  --color-lighter-gray: #f6f2eb;
  --container-width: 1120px;
}

/* Titles use Figtree unless the writer picked a heading font in Ghost. */
.has-sans-title:not([class*=" gh-font-heading"]):not([class^="gh-font-heading"]) :is(.is-title, .gh-content :is(h2, h3)) {
  font-family: var(--slow-title);
}
.is-title,
.gh-content :is(h1, h2, h3) {
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 560;
}

::selection {
  background: #fdeace;
}

/* Small labels: dates, tags, section names */
.gh-container-title,
.gh-card-meta,
.gh-article-tag,
.gh-article-meta-content {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation ------------------------------------------------------------- */

.gh-navigation {
  height: 88px;
  font-weight: 500;
}
.gh-navigation-logo {
  font-family: var(--slow-title);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gh-navigation-menu .nav a {
  padding-block: 6px;
  color: var(--slow-ink-soft);
  border-bottom: 2px solid transparent;
}
.gh-navigation-menu .nav a:hover {
  opacity: 1;
  color: var(--slow-ink);
}
.gh-navigation-menu .nav .nav-current a {
  color: var(--slow-ink);
  border-bottom-color: var(--slow-orange);
}

/* Buttons and the subscribe form ------------------------------------------ */

.gh-button {
  font-weight: 560;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.gh-form {
  height: 60px;
  background-color: #fff;
  border: 1px solid var(--slow-line-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gh-form:hover {
  background-color: #fff;
  border-color: #b9ad9d;
}
.gh-form:focus-within {
  border-color: var(--slow-sage);
  box-shadow: 0 0 0 4px rgb(93 145 131 / 0.18);
}
.gh-form-input::placeholder {
  color: #9c8f80;
}
.gh-form .gh-button {
  right: 7px;
}

/* Home header -------------------------------------------------------------- */

.gh-header.is-classic {
  padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px);
}
.gh-header.is-classic .gh-header-inner {
  gap: 40px;
  max-width: 880px;
}
.gh-header.is-classic .gh-header-title {
  font-size: clamp(3.6rem, 3.6vw + 2rem, 6.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Post list ---------------------------------------------------------------- */

.gh-container {
  margin-top: 0;
}
.gh-container.is-list .gh-container-inner {
  display: block;
  max-width: 880px;
}
.gh-container-title {
  margin-bottom: 0;
  padding-bottom: 16px;
  color: var(--slow-ink-soft);
}
/* Three small lights: orange, marigold, sage */
.gh-container-title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 34px;
  vertical-align: 0.05em;
  border-radius: 50%;
  background: var(--slow-orange);
  box-shadow: 11px 0 0 var(--slow-marigold), 22px 0 0 var(--slow-sage);
}

.gh-container.is-list .gh-feed {
  gap: 0;
}
.gh-container.is-list .gh-card + .gh-card::before {
  display: none;
}
.gh-container.is-list .gh-card {
  border-bottom: 1px solid var(--slow-line);
}
.gh-container.is-list .gh-card-link,
.gh-container.is-list .no-image .gh-card-link {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding-block: 30px;
}
.gh-card-link:hover {
  opacity: 1;
}
.gh-container.is-list .gh-card-wrapper,
.gh-container.is-list .gh-card:not(.no-image) .gh-card-wrapper {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 24px;
  max-width: none;
}
.gh-container.is-list .gh-card-meta:not(:empty) {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 0.85em;
}
.gh-card-author {
  display: block;
}
.gh-card-author + .gh-card-date::before {
  content: none;
}
.gh-container.is-list .gh-card-title,
.gh-container.is-list .no-image .gh-card-title {
  grid-column: 2;
  font-size: 2.6rem;
  line-height: 1.16;
  letter-spacing: -0.022em;
  transition: color 0.2s ease;
}
.gh-card-link:hover .gh-card-title {
  opacity: 1;
  color: var(--ghost-accent-color);
}
.gh-container.is-list .gh-card-excerpt {
  grid-column: 2;
  margin-top: 8px;
  max-width: 54ch;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--slow-ink-soft);
}
.gh-container.is-list .gh-card-image {
  order: 2;
  width: 168px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slow-paper);
}

/* Post --------------------------------------------------------------------- */

.gh-article-header {
  margin-top: clamp(40px, 5vw, 80px);
}
.gh-article-tag {
  display: inline-block;
  margin-bottom: 18px;
}
.gh-article-title {
  font-size: clamp(3.8rem, 2.6vw + 2.6rem, 6rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
/* Four classes, to outrank Source's body-font rule for .is-body */
.gh-article .gh-article-header .gh-article-excerpt.is-body {
  margin-top: 20px;
  font-family: var(--slow-title);
  font-size: clamp(2rem, 0.5vw + 1.8rem, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--slow-ink-soft);
}
.gh-meta-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--slow-line);
}
.gh-article-author-image a {
  width: 48px;
  height: 48px;
  background-color: var(--color-lighter-gray);
}
.gh-article-author-name {
  font-size: 1.5rem;
  font-weight: 600;
}
.gh-button-share {
  border-color: var(--slow-line-strong);
  color: var(--slow-ink);
}
.gh-button-share:hover {
  border-color: var(--slow-ink);
}
.gh-article-image img {
  border-radius: 24px;
}

.gh-content {
  --content-font-size: 1.85rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
.gh-content h2 {
  font-size: 1.7em;
  line-height: 1.15;
  letter-spacing: -0.024em;
}
.gh-content h3 {
  line-height: 1.2;
}
.gh-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.gh-content :is(ul, ol) > li::marker {
  color: var(--slow-sage);
}
.gh-content blockquote:not([class]) {
  padding-left: 2.8rem;
  font-family: var(--slow-title);
  font-size: 1.3em;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.015em;
  border-left: 3px solid var(--slow-marigold);
}
.gh-content :not(pre) > code,
.gh-content pre {
  background: var(--slow-marigold-wash);
}

/* Read more ---------------------------------------------------------------- */

.post-template .gh-container.is-grid {
  margin-top: 96px;
}
.gh-container.is-grid .gh-container-title {
  margin-bottom: calc(var(--grid-gap) / 2);
}
.gh-container.is-grid .gh-card-title {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.gh-container.is-grid .gh-card-excerpt {
  color: var(--slow-ink-soft);
}
.gh-container.is-grid .gh-card-image {
  overflow: hidden;
  border-radius: 12px;
}

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

.gh-footer {
  margin-top: clamp(56px, 8vw, 96px);
}
.gh-footer-signup {
  margin-bottom: 72px;
  padding: clamp(48px, 7vw, 88px) 24px;
  background: var(--slow-paper);
  border: 1px solid var(--slow-paper-line);
  border-radius: 32px;
}
.gh-footer-signup-header {
  font-size: clamp(3rem, 2vw + 2.2rem, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.gh-footer-signup-subhead {
  opacity: 1;
  font-weight: 400;
  color: var(--slow-ink-soft);
}
.gh-footer-bar {
  margin-bottom: 0;
  padding-block: 28px 40px;
  font-weight: 500;
  border-bottom: 0;
}
.gh-footer-logo {
  font-family: var(--slow-title);
  font-size: 2rem;
  font-weight: 600;
}
.gh-footer-copyright {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35em;
  color: var(--slow-ink-soft);
}
.gh-footer-copyright::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 4px;
  background: url("../images/ghost.svg") center / contain no-repeat;
}

/* Small screens ------------------------------------------------------------ */

@media (max-width: 767px) {
  .gh-container.is-list .gh-card-link,
  .gh-container.is-list .no-image .gh-card-link {
    flex-direction: row;
    gap: 18px;
    padding-block: 24px;
  }
  .gh-container.is-list .gh-card-wrapper,
  .gh-container.is-list .gh-card:not(.no-image) .gh-card-wrapper {
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }
  .gh-container.is-list .gh-card-meta:not(:empty) {
    margin: 10px 0 0;
  }
  .gh-container.is-list .gh-card-title,
  .gh-container.is-list .no-image .gh-card-title {
    font-size: 2.2rem;
  }
  .gh-container.is-list .gh-card-image {
    width: 96px;
    border-radius: 10px;
  }
  .gh-footer-signup {
    border-radius: 24px;
  }
  .gh-footer-copyright {
    justify-content: center;
  }
}
