/* Design tokens (user-facing) */
:root {
  /* Container */
  --container-max-width: 1500px;
  --container-padding-x: 1rem;
  --container-padding-x-mobile: 0.75rem;



  /* Header */
  --header-padding: 2rem;
  --header-gap: 0.5rem;
  --header-letter-spacing: 0.08em;
  --header-font-size-min: 1.1rem;
  --header-font-size-vw: 2.5vw;
  --header-font-size-max: 1.6rem;

  /* Footer */
  --footer-padding-y: 1.5rem;
  --footer-gap: 0.75rem;
  --footer-font-size: 0.8rem;
  --text-color-dark-muted: rgb(120, 120, 120);
  --font-size-footer-desktop: 14px;
  --font-size-footer-mobile: 12px;

  /* Colors */
  --page-background: rgb(255, 255, 255);
  --text-color: rgb(20, 20, 20);
  --rule-color: rgba(0, 0, 0, 0.12);
  --quote-text-color: rgba(0, 0, 0, 0.75);
  --prose-muted-color: rgba(0, 0, 0, 0.7);
  --selection-background: rgba(0, 0, 0, 0.08);
  --theme-sun-color: #ffff00;
  --theme-moon-color: #0000ff;

  /* Text blocks */
  --text-font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --text-font-size: 1rem;
  --text-line-height: 1.6;
  --text-measure: 65ch;

  /* Article prose */
  --prose-font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --prose-line-height: 1.7;
  --prose-measure: 75ch;
  --prose-heading-font: 'Archivo', system-ui, sans-serif;
  --prose-paragraph-spacing: 1.25em;
  --prose-heading-spacing-above: 2em;
  --prose-heading-spacing-below: 0.6em;

  /* Quote text parameters */
  --quote-max-width: 800px;
  --quote-margin-vertical: 64px;
  --quote-padding-horizontal: 60px;
  --quote-font-size-min: 24px;
  --quote-font-size-max: 32px;
  --quote-line-height: 1.6;
  --quote-mark-size-min: 70px;
  --quote-mark-size-max: 90px;
  --quote-mark-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="night"] {
  color-scheme: dark;
  --page-background: rgb(20, 20, 20);
  --text-color: rgb(235, 235, 228);
  --text-color-dark-muted: rgb(150, 150, 145);
  --rule-color: rgba(255, 255, 255, 0.18);
  --quote-text-color: rgba(235, 235, 228, 0.78);
  --prose-muted-color: rgba(235, 235, 228, 0.72);
  --selection-background: rgba(255, 255, 255, 0.18);
  --quote-mark-color: rgba(255, 255, 255, 0.28);
}

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

html,
body {
  background-color: var(--page-background);
  color: var(--text-color);
  overflow-x: hidden;
  margin: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  margin-bottom: 5rem;
}

/* Core image engine CSS: generic wrapper and crop utilities */

.coreImage {
  position: relative;
  width: 100%;
  line-height: 0;
  /* remove inline-gap around <picture>/<img> */
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease-in, transform 0.8s ease-in;
  will-change: opacity, transform;
  contain: paint;
  backface-visibility: hidden;
}

.coreImage picture,
.coreImage img {
  width: 100%;
  height: auto;
  display: block;
}

.coreImage.visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

/* Simple overlay to deter drag/save */
.coreImage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}




/* ============================================
   ARTICLE BODY (simplified linear layout)
   ============================================ */

/* Linear column container for article pages */
.articleBody {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 var(--container-padding-x);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  /* Inherit prose typography for all direct text children */
  font-family: var(--text-font-family);
  font-size: var(--prose-font-size);
  line-height: var(--prose-line-height);
  color: var(--text-color);
}

/* Constrain all text elements to prose reading width, centred */
.articleBody>p,
.articleBody>h2,
.articleBody>h3,
.articleBody>h4,
.articleBody>blockquote,
.articleBody>ul,
.articleBody>ol,
.articleBody>hr,
.articleBody>.article-header {
  max-width: var(--prose-measure);
  width: 100%;
  align-self: center;
  box-sizing: border-box;
}

/* Paragraph spacing */
.articleBody>p {
  margin: 0 0 var(--prose-paragraph-spacing) 0;
}

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

/* Headings */
.articleBody>h2 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: var(--prose-heading-spacing-above) 0 var(--prose-heading-spacing-below) 0;
  line-height: 1.3;
}

.articleBody>h3 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: 0.02em;
  margin: var(--prose-heading-spacing-above) 0 var(--prose-heading-spacing-below) 0;
  line-height: 1.35;
}

.articleBody>h4 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 1.5em 0 0.5em 0;
  line-height: 1.4;
}

.articleBody>h2:first-child,
.articleBody>h3:first-child,
.articleBody>h4:first-child {
  margin-top: 0;
}

/* Blockquotes */
.articleBody>blockquote {
  margin: 1.5em auto;
  padding: 0.25em 0 0.25em 1.5em;
  border-left: 3px solid var(--rule-color);
  font-style: italic;
  color: var(--prose-muted-color);
}

.articleBody>blockquote p {
  margin-bottom: 0.5em;
}

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

/* Horizontal rules / section breaks */
.articleBody>hr {
  border: none;
  border-top: 1px solid var(--rule-color);
  margin: 2.5em auto;
  max-width: 6rem;
}

/* Links */
.articleBody a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.articleBody a:hover {
  opacity: 0.6;
}

/* Lists */
.articleBody>ul,
.articleBody>ol {
  margin: 0 0 var(--prose-paragraph-spacing) 0;
  padding-left: 1.5em;
}

.articleBody li {
  margin-bottom: 0.35em;
}

.articleBody li:last-child {
  margin-bottom: 0;
}

/* Strong and emphasis */
.articleBody strong {
  font-weight: 600;
}

.articleBody em {
  font-style: italic;
}

/* Default image block — full width of the article container */
.articleImage {
  margin: 0;
  width: 100%;
}

/* Full-bleed: escape the container to span full viewport width */
.articleImage.fullBleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Header */
.siteHeader {
  width: 100%;
  margin: 0 auto;
  padding: 30px 0 40px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.siteHeader h1 {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-title-link {
  color: inherit;
  text-decoration: none;
}

.site-title-link:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.siteHeader p {
  margin: 16px 0 0 0;
  padding: 0;
  line-height: 1.2;
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header-left {
  flex: 1;
  min-width: 0;
}

.header-right {
  flex-shrink: 0;
  text-align: right;
  overflow: hidden;
}

.photographer-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color);
  font-style: normal;
  letter-spacing: 0.5px;
  margin-right: 10px;
  margin-top: -2px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  outline: none;
  user-select: none;
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.photographer-name:hover {
  opacity: 0.7;
}

.photographer-name:focus {
  opacity: 0.7;
}

.photographer-name .name-icon {
  font-size: 16px;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.8;
}

/* ============================================
   SITE NAVIGATION
   ============================================ */

.siteNav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 15px;
  margin-top: 6px;
}

.siteNav-link {
  font-family: var(--text-font-family);
  font-size: 1.44rem;
  letter-spacing: var(--header-letter-spacing);
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.siteNav-link:hover,
.siteNav-link.is-active {
  opacity: 1;
}

.themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 1.45rem;
  margin-top: 0.35rem;
  margin-right: 15px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.themeToggle:hover,
.themeToggle:focus-visible,
.themeToggle[aria-pressed="true"] {
  opacity: 1;
}

.themeToggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.themeToggle-track {
  position: relative;
  display: block;
  width: 2.15rem;
  height: 0.7rem;
}

.themeToggle-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(0, -50%);
  transition: transform 0.25s ease;
}

.themeToggle[aria-pressed="true"] .themeToggle-thumb {
  transform: translate(1.45rem, -50%);
}

.themeToggle-mobile {
  display: none;
}

.themeToggle-icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  color: currentColor;
  opacity: 0.45;
  transform: translateY(-50%);
}

.themeToggle-iconSun {
  left: 0.02rem;
  background: currentColor;
  border-radius: 50%;
  color: var(--theme-sun-color);
}

.themeToggle-iconSun::before,
.themeToggle-iconSun::after {
  content: '';
  position: absolute;
  inset: -0.18rem;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 0.14rem no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 1px 0.14rem no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 0.14rem 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 0.14rem 1px no-repeat;
}

.themeToggle-iconSun::after {
  transform: rotate(45deg);
}

.themeToggle-iconMoon {
  right: 0.02rem;
  border-radius: 50%;
  box-shadow: inset 0.18rem 0 0 currentColor;
  color: var(--theme-moon-color);
}

/* Burger button — hidden on desktop */
.siteNav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 201;
}

.siteNav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-color);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Burger → ✕ animation when open */
.siteNav-burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.siteNav-burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.siteNav-burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   ARTICLE GRID (Homepage)
   ============================================ */

.articleGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto 5rem;
  padding: 0 var(--container-padding-x);
}

.articleCard {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.articleCard:hover {
  opacity: 0.8;
}

.articleCard-image {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.articleCard-image .coreImage {
  width: 100%;
}

.articleCard-image .coreImage img {
  width: 100%;
  height: auto;
  display: block;
}

.articleCard-title {
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0 0;
  letter-spacing: 0.5px;
}

/* ============================================
   ARTICLE PAGE TITLE
   ============================================ */

.article-page-header {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3.5rem var(--container-padding-x) 2.5rem;
}

.article-page-title {
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text-color);
  text-align: center;
}

/* Title + tagline wrapper — sits as one flex item in articleBody */
.article-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.article-tagline {
  font-family: var(--text-font-family);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contactBlock {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(18rem, 45vh, 32rem);
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}

.contactReveal {
  color: var(--text-color);
  cursor: pointer;
  font-family: var(--text-font-family);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  max-width: 100%;
  padding: 0;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.contactReveal:hover,
.contactReveal:focus-visible {
  opacity: 0.65;
}

.contactReveal:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  margin-top: auto;
  min-height: 140px;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  color: var(--text-color-dark-muted);
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--font-size-footer-desktop);
  font-weight: normal;
  overflow: hidden;
}

.footer-badge img,
.footer-badge picture {
  height: 80px;
  width: auto;
  display: block;
}

/* Text block styling */
.textBlock {
  font-family: var(--text-font-family);
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
}



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

.textBlock.centered>* {
  margin-left: auto;
  margin-right: auto;
}

.textBlock>* {
  max-width: var(--text-measure);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.textBlock p+p {
  margin-top: 0.75em;
}


.textBlock h2 {
  font-family: var(--text-font-family);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.25em 0;
}

.textBlock h3 {
  font-family: var(--text-font-family);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.25em 0;
}

.textBlock h4 {
  font-family: var(--text-font-family);
  font-weight: 400;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
}

.textBlock blockquote {
  font-style: italic;
  opacity: 0.9;
}

/* ============================================
   ARTICLE PROSE (long-form text)
   ============================================ */

.articleProse {
  font-family: var(--text-font-family);
  font-size: var(--prose-font-size);
  line-height: var(--prose-line-height);
  color: var(--text-color);
  max-width: var(--prose-measure);
  margin-left: auto;
  margin-right: auto;
}

/* Paragraphs */
.articleProse p {
  margin: 0 0 var(--prose-paragraph-spacing) 0;
}

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



/* Headings */
.articleProse h2 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: var(--prose-heading-spacing-above) 0 var(--prose-heading-spacing-below) 0;
  line-height: 1.3;
}

.articleProse h3 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: 0.02em;
  margin: var(--prose-heading-spacing-above) 0 var(--prose-heading-spacing-below) 0;
  line-height: 1.35;
}

.articleProse h4 {
  font-family: var(--prose-heading-font);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 1.5em 0 0.5em 0;
  line-height: 1.4;
}

/* Remove top margin from first heading if it leads the prose block */
.articleProse>h2:first-child,
.articleProse>h3:first-child,
.articleProse>h4:first-child {
  margin-top: 0;
}

/* Blockquotes */
.articleProse blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.5em;
  border-left: 3px solid var(--rule-color);
  font-style: italic;
  color: var(--prose-muted-color);
}

.articleProse blockquote p {
  margin-bottom: 0.5em;
}

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

/* Horizontal rules / section breaks */
.articleProse hr {
  border: none;
  border-top: 1px solid var(--rule-color);
  margin: 2.5em auto;
  max-width: 6rem;
}

/* Links */
.articleProse a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.articleProse a:hover {
  opacity: 0.6;
}

/* Lists */
.articleProse ul,
.articleProse ol {
  margin: 0 0 var(--prose-paragraph-spacing) 0;
  padding-left: 1.5em;
}

.articleProse li {
  margin-bottom: 0.35em;
}

.articleProse li:last-child {
  margin-bottom: 0;
}

/* Strong and emphasis */
.articleProse strong {
  font-weight: 600;
}

.articleProse em {
  font-style: italic;
}

/* Selection */
.articleProse ::selection {
  background: var(--selection-background);
}

/* Quote text block */
.quote-text {
  position: relative;
  max-width: var(--quote-max-width);
  margin: var(--quote-margin-vertical) auto;
  padding: 0 var(--quote-padding-horizontal);
  color: var(--quote-text-color);
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(var(--quote-font-size-min), 2.4vw, var(--quote-font-size-max));
  line-height: var(--quote-line-height);
}

.quote-text::before {
  content: '\201C';
  position: absolute;
  left: 10px;
  top: -10px;
  font-size: clamp(var(--quote-mark-size-min), 7vw, var(--quote-mark-size-max));
  color: var(--quote-mark-color);
  font-family: Georgia, serif;
  font-style: normal;
  line-height: 1;
}

.quote-text::after {
  content: '\201D';
  position: absolute;
  right: 10px;
  bottom: -30px;
  font-size: clamp(var(--quote-mark-size-min), 7vw, var(--quote-mark-size-max));
  color: var(--quote-mark-color);
  font-family: Georgia, serif;
  font-style: normal;
  line-height: 1;
}


/* About page container spacing */
.about-container {
  margin-top: 8rem;
}

/* Text alignment helpers */
.textBlock.ta-center {
  text-align: center;
}

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

.textBlock.ta-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Image captions */
.imageCaption {
  font-family: var(--text-font-family);
  font-size: 0.7rem;
  text-align: right;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* Centred introductory tagline — use <p class="tagline"> in Markdown */
.tagline {
  text-align: center;
  font-style: italic;
  opacity: 0.65;
  font-size: 0.95em;
}

/* Article grid: 2 columns on medium screens */
@media (max-width: 1024px) {
  .articleGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Article grid: 1 column on small screens */
@media (max-width: 640px) {
  .articleGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 var(--container-padding-x-mobile);
  }
}

/* Desktop/Tablet: Portrait mode constraint */
@media (min-width: 768px) {

  .portrait-mode.coreImage picture,
  .portrait-mode.coreImage img {
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
  }
}

/* Mobile: collapse to full width, ignore horizontal placement and overlaps */
@media (max-width: 767px) {

  /* Header: stay horizontal on mobile, burger on right */
  .siteHeader {
    align-items: center;
    padding-bottom: 20px;
  }

  /* Mobile nav — full-screen overlay */
  .siteNav {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--page-background);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .siteNav .themeToggle-mobile {
    position: absolute;
    bottom: clamp(2rem, 9vh, 4rem);
    left: 50%;
    display: inline-flex;
    transform: translateX(-50%);
  }

  .siteNav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .siteNav-link {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
  }

  .siteNav-link:hover,
  .siteNav-link.is-active {
    opacity: 1;
  }

  .siteNav-burger {
    display: flex;
    margin-right: 0;
  }

  .themeToggle-desktop {
    display: none;
  }

  .themeToggle-mobile {
    width: 2.8rem;
    height: 1.35rem;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    z-index: 201;
  }

  .themeToggle-mobile .themeToggle-track {
    width: 1.95rem;
    height: 0.65rem;
  }

  .themeToggle-mobile .themeToggle-thumb {
    width: 0.65rem;
    height: 0.65rem;
  }

  .themeToggle-mobile[aria-pressed="true"] .themeToggle-thumb {
    transform: translate(1.3rem, -50%);
  }

  .themeToggle-mobile .themeToggle-icon {
    width: 0.58rem;
    height: 0.58rem;
  }

  /* Article body mobile adjustments */
  .articleBody {
    padding-left: var(--container-padding-x-mobile);
    padding-right: var(--container-padding-x-mobile);
    gap: 2rem;
  }

  .articleImage.fullBleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Keep subtitle close to preceding title on mobile */
  .textBlock.subtitle {
    margin-top: -0.5rem;
  }

  /* Add gap above portfolio title on mobile */
  .textBlock h3 {
    margin-top: 1.5rem;
  }

  /* Smaller paragraph text on mobile */
  .textBlock {
    font-size: 0.9rem;
  }

  /* Mobile text alignment overrides */
  .textBlock.ta-mobile-justify {
    text-align: justify;
  }

  .textBlock.ta-mobile-center {
    text-align: center;
  }

  .textBlock.ta-mobile-left {
    text-align: left;
  }

  /* Smaller captions on mobile */
  .imageCaption {
    font-size: 0.65rem;
    margin-top: 0.35rem;
  }



  /* About container spacing on mobile */
  .about-container {
    margin-top: 2rem;
  }

  /* Footer */
  .site-footer {
    font-size: var(--font-size-footer-mobile);
    padding: 1.5rem 1rem;
  }

  .footer-badge img,
  .footer-badge picture {
    height: 50px;
  }

  /* Article prose mobile adjustments */
  .articleProse {
    font-size: 1rem;
    line-height: 1.65;
  }


}

/* Page specific overrides */
.page-about .headerCenter {
  visibility: hidden;
}