*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/CormorantSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/CormorantSC-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/CormorantSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="dark"] {
  --void: #140a0b;
  --steel-deep: #1c2b3f;
  --steel-mid: #243550;
  --steel-border: #2e4468;
  --steel-light: #7a93b8;
  --steel-pale: #bdd0e3;
  --ruby: #ad384c;
  --ruby-bright: #e2687c;
  --ruby-dim: #5c1e27;
  --text-primary: #f3eeee;
  --text-muted: #b79aa0;
  --font-display: "Cormorant SC", serif;
  --font-body: "Marcellus", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;

  --bulma-body-background-color: var(--void);
  --bulma-body-color: var(--text-primary);
  --bulma-body-family: var(--font-body);
  --bulma-body-overflow-y: auto;
  --bulma-family-primary: var(--font-body);
  --bulma-family-secondary: var(--font-body);
  --bulma-family-code: var(--font-mono);
  --bulma-scheme-main: var(--void);
  --bulma-scheme-main-bis: #1a0e10;
  --bulma-background: var(--steel-deep);
  --bulma-text: var(--text-primary);
  --bulma-text-strong: var(--text-primary);
  --bulma-strong-color: var(--text-primary);
  --bulma-title-color: var(--text-primary);
  --bulma-border: var(--steel-border);
  --bulma-border-weak: var(--steel-border);
  --bulma-radius: 0;
  --bulma-radius-small: 0;
  --bulma-link-text: var(--ruby-bright);
  --bulma-link-text-hover: var(--ruby-bright);
  --bulma-link-text-active: var(--ruby-bright);

  --bulma-navbar-height: 60px;
  --bulma-navbar-background-color: color-mix(
    in srgb,
    var(--void) 88%,
    transparent
  );
  --bulma-navbar-item-color: var(--steel-pale);
  --bulma-navbar-item-color-hover: var(--text-primary);
  --bulma-navbar-item-color-active: var(--text-primary);
  --bulma-navbar-item-hover-background-color: transparent;
  --bulma-navbar-item-active-background-color: transparent;
  --bulma-navbar-burger-color: var(--text-muted);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  /* Push the footer to the bottom of the viewport on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

/*
 * The glow is a fixed layer rather than `background-attachment: fixed`, which
 * repaints the viewport on every scroll frame. This paints below the in-flow
 * content, so `body` must not take a background of its own.
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 0%,
      color-mix(in srgb, var(--ruby) 28%, transparent) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 85% 100%,
      color-mix(in srgb, var(--ruby) 16%, transparent) 0%,
      transparent 60%
    ),
    var(--void);
}

:focus-visible {
  outline: 2px solid var(--ruby-bright);
  outline-offset: 2px;
}

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

.container {
  max-width: 900px;
  padding: 0 2rem;
}

.crystal-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 3rem auto;
  max-width: 520px;
}
.crystal-divider::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--steel-border));
}
.crystal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--steel-border));
}
.crystal-facet {
  flex-shrink: 0;
  opacity: 0.85;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 200;
  padding: 0.6rem 1.25rem;
  background: var(--ruby);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bulma-navbar-background-color);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-border);
  min-height: var(--bulma-navbar-height);
}

.navbar > .container {
  display: flex;
  align-items: stretch;
  max-width: 900px;
  padding: 0 2rem;
  min-height: var(--bulma-navbar-height);
}

.navbar > .container .navbar-brand {
  margin-inline-start: 0;
}
.navbar > .container .navbar-menu {
  margin-inline-end: 0;
}

.navbar-brand {
  align-items: center;
  min-height: var(--bulma-navbar-height);
  flex-shrink: 0;
}

.navbar-brand .brand-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.navbar-brand .brand-item:hover,
.navbar-brand .brand-item:focus {
  background: transparent;
  color: var(--text-primary);
}
.navbar-brand .brand-item img {
  width: 30px;
  height: 30px;
  max-height: none;
  border-radius: 50%;
}

.navbar-menu .navbar-item {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--steel-pale);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.navbar-menu .navbar-item:hover,
.navbar-menu .navbar-item:focus {
  background: transparent;
  color: var(--text-primary);
}

.navbar-menu .nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  max-height: none;
  fill: currentColor;
}

.navbar-burger {
  --bulma-burger-item-width: 22px;
  --bulma-burger-item-height: 2px;
  --bulma-burger-gap: 7px;
  --bulma-burger-border-radius: 0;
  display: none;
  color: var(--text-muted);
  margin-inline: 0;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
}
.navbar-burger span {
  background-color: var(--text-muted);
  border-radius: 1px;
}
.navbar-burger:hover,
.navbar-burger:active {
  background: none;
}

/* Desktop and tablet navigation (above the site's 600px breakpoint). */
@media (min-width: 601px) {
  .navbar > .container {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .navbar-menu {
    display: flex;
    flex-grow: 1;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .navbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 2rem;
  }

  .navbar-brand .navbar-item,
  .navbar-menu .navbar-item {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    border-bottom: none;
  }
}

.hero {
  background: none;
  padding: 8rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 45% at 50% 32%,
      color-mix(in srgb, var(--ruby) 22%, transparent) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 55% at 75% 75%,
      color-mix(in srgb, var(--steel-border) 16%, transparent) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.hero-body {
  padding: 0;
  width: 100%;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-logo {
  width: min(560px, 72vw, 58vh);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 2.25rem;
  filter: drop-shadow(0 0 32px rgba(139, 45, 58, 0.25));
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  gap: 1rem;
  margin-bottom: 0;
}
.hero-cta .button {
  width: 15rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  height: auto;
  padding: 0.75rem 1.75rem;
  line-height: 1.7;
  border-radius: 0;
}
.button.is-primary {
  background-color: var(--ruby);
  border-color: var(--ruby);
  color: #fff;
  font-weight: 400;
}
.button.is-primary:hover,
.button.is-primary:focus-visible {
  background-color: var(--ruby-bright);
  border-color: var(--ruby-bright);
  color: var(--void);
}
.button.is-link {
  background-color: #103a60;
  border-color: #103a60;
  color: #fff;
  font-weight: 400;
}
.button.is-link:hover,
.button.is-link:focus-visible {
  background-color: #164d7e;
  border-color: #164d7e;
  color: #fff;
}

.hero-stack {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-stack-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-stack-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel-light);
}
.hero-stack .tags {
  gap: 1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: #7d92ab;
  background-color: transparent;
  border: 1px solid var(--steel-border);
  border-radius: 0;
  padding: 0.25rem 0.65rem;
  letter-spacing: 0.05em;
  height: auto;
}

.section {
  padding: 5rem 0;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ruby);
  margin-bottom: 0.6rem;
  text-align: center;
}
.tools-eyebrow {
  margin-top: 2.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-body {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-body a {
  color: var(--ruby-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.section-body a:hover {
  text-decoration-thickness: 0.12em;
}
.section-body strong {
  color: var(--text-primary);
  font-weight: 400;
}

.tool-grid.columns {
  max-width: 540px;
  margin: 1rem auto 0;
  --bulma-column-gap: 0.375rem;
}
.tool-grid .column {
  flex: none;
  width: 50%;
  padding: 0.375rem;
}
.tool-grid .box {
  position: relative;
  margin-bottom: 0;
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  background: color-mix(in srgb, var(--steel-mid) 18%, transparent);
  border: 1px solid var(--steel-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tool-grid .box::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--ruby);
  border: 1px solid var(--steel-border);
  transform: translateX(-50%) rotate(45deg);
}
.tool-grid .box:hover {
  border-color: var(--ruby-dim);
  background: color-mix(in srgb, var(--ruby-dim) 22%, transparent);
}
.tool-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.tool-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.section-note {
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
  color: #927b80;
  margin-top: 1.5rem;
}

.footer {
  background: transparent;
  padding: 0 0 2.5rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-copy {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-link {
  color: var(--steel-light);
  text-decoration: underline;
  text-decoration-color: var(--steel-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.footer-link:hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

.blog-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.blog-list .crystal-divider {
  width: 100%;
  margin: 0 auto;
}
.blog-preview-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ruby-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.blog-preview-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.blog-preview-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-preview-title a:hover {
  color: var(--ruby-bright);
}
.blog-preview-excerpt {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}
.blog-preview-readmore {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 0.5rem;
}
.blog-preview-readmore:hover {
  color: var(--ruby-bright);
}
.blog-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
}

.post {
  padding: 7rem 0 3rem;
}
.post-header {
  text-align: center;
  margin-bottom: 3rem;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ruby-bright);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.post-author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}
.content.post-body {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.85;
}
.content.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.03em;
}
.content.post-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.04em;
}
.content.post-body p {
  margin-bottom: 1.25rem;
}
.content.post-body ul,
.content.post-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.content.post-body li {
  margin-bottom: 0.4rem;
}
.content.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--steel-deep);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--text-primary);
}
.content.post-body pre {
  background: var(--steel-deep);
  padding: 1.25rem;
  border: 1px solid var(--steel-border);
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.content.post-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.content.post-body a {
  color: var(--ruby-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.content.post-body a:hover {
  text-decoration-thickness: 0.12em;
}
.content.post-body hr {
  border: none;
  border-top: 1px solid var(--steel-border);
  margin: 2.5rem 0;
}
.post-back {
  text-align: center;
}
.post-back a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  text-decoration: none;
  transition: color 0.2s;
}
.post-back a:hover {
  color: var(--ruby-bright);
}

.lost .section-body a {
  color: var(--ruby-bright);
}

@media (max-width: 600px) {
  .navbar > .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
  }

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

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: color-mix(in srgb, var(--void) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--steel-border);
    padding: 0.5rem 2rem 1rem;
    box-shadow: none;
  }

  .navbar-menu.is-active {
    display: flex;
  }

  .navbar-end {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
  }

  .navbar-menu .navbar-item {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--steel-border);
  }
  .navbar-menu .navbar-item:last-child {
    border-bottom: none;
  }

  .tool-grid .column {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta .button {
    width: 100%;
    min-width: 0;
  }
}

/* Without JavaScript the mobile menu sits in the flow. */
@media (max-width: 600px) {
  html:not(.js) .navbar-burger {
    display: none;
  }

  html:not(.js) .navbar > .container {
    flex-wrap: wrap;
    height: auto;
    align-items: center;
  }

  html:not(.js) .navbar-menu {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
    padding: 0.5rem 0 1rem;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
