@charset "UTF-8";
@font-face {
  font-family: 'Lora';
  src: url("/fonts/lora/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap; }

@font-face {
  font-family: 'Lora';
  src: url("/fonts/lora/Lora-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap; }

:root {
  /* Refined romantic palette — dark red & purple tones, AA contrast compliant */
  --color-primary: #4B1E28;
  /* Deep burgundy (main brand hue) */
  --color-primary-light: #7A2F3E;
  /* Medium wine red for accents */
  --color-primary-dark: #2C0F16;
  /* Nearly black-red, for headers & titles */
  --color-secondary: #6B244C;
  /* Plum rose tone — softer complement */
  --color-accent: #A35C7A;
  /* Mauve highlight color for links & subtle emphasis */
  --color-text: #2A1A1D;
  /* Dark neutral with red undertone */
  --color-text-light: #6A4C57;
  /* Muted rose-gray for secondary text */
  --color-background: #FFF9F9;
  /* Warm, romantic off-white background */
  --color-background-alt: #F7ECEE;
  /* Slight blush-tinted section background */
  --color-border: #8B5C6E;
  /* Muted plum border for subtle definition */
  --color-success: #7A946C;
  /* Sage green (gentle contrast to reds) */
  --color-warning: #C77947;
  /* Copper-orange warning, softer than harsh yellows */
  --color-error: #B23A48;
  /* Strong crimson for errors */
  --color-info: #7B6BBF;
  /* Muted violet for info highlights */
  /* Fonts */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* Typography & rhythm */
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --heading-line-height: 1.2;
  /* Spacing */
  --spacing-unit: 1rem;
  --spacing-xs: calc(var(--spacing-unit) * 0.25);
  --spacing-sm: calc(var(--spacing-unit) * 0.5);
  --spacing-md: var(--spacing-unit);
  --spacing-lg: calc(var(--spacing-unit) * 1.5);
  --spacing-xl: calc(var(--spacing-unit) * 2);
  --spacing-2xl: calc(var(--spacing-unit) * 3.5);
  --spacing-3xl: calc(var(--spacing-unit) * 4);
  /* Layout */
  --container-max-width: 1200px;
  --transition: all 0.2s ease-in-out;
  /* Type scale */
  --ratio: 1.20;
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));
  --s5: calc(var(--s4) * var(--ratio));
  /* Fluid heading sizes */
  --h1-min: 2rem;
  --h1-max: 2.75rem;
  --h2-min: 1.55rem;
  --h2-max: 2.15rem;
  --h3-min: 1.3rem;
  --h3-max: 1.7rem;
  --h4-min: 1.15rem;
  --h4-max: 1.35rem;
  --h5-min: 1.05rem;
  --h5-max: 1.15rem;
  --h6-min: 0.95rem;
  --h6-max: 1.05rem;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.25);
  /* Text shadow — softer romantic tone */
  --text-shadow-md: 0 3px 6px rgba(60, 0, 0, 0.35);
  /* Advisory colors */
  --color-advisory-bg: #fff4f6;
  --color-advisory-bg-alt: #fbe9ed;
  --color-advisory-border: #d8a7b1;
  --color-muted: #6A4C57;
  /* Developer tokens (left as-is for tooling consistency) */
  --dev-primary-600: #215ec0;
  --dev-primary-700: #1b4d9e;
  --dev-mark-bg: #ffec99;
  --dev-warn-bg: #fff6f6;
  --dev-warn-border: #ffd3d3;
  --dev-warn-text: #aa3333; }

@layer typetura {
  @property --property {
    syntax: "<integer>";
    initial-value: 1;
    inherits: false; }
  @property --container {
    syntax: "<length>";
    initial-value: 100vi;
    inherits: false; }
  @property --from {
    syntax: "<length>";
    initial-value: 0px;
    inherits: true; }
  @property --to {
    syntax: "<length>";
    initial-value: 0px;
    inherits: true; }
  * {
    --tt: 0;
    --on: unset;
    --container: var(--tt, 100cqi);
    animation-delay: var(--tt, calc(-1s * (var(--container) - var(--from)) / (var(--to) - var(--from))));
    animation-duration: var(--tt, calc(1s * var(--property)));
    animation-iteration-count: var(--tt, 1);
    animation-fill-mode: var(--tt, both);
    animation-play-state: var(--tt, paused); }
  @supports not (width: calc(1% / 1px * 1px)) {
    * {
      --CONTAINER: calc(tan(atan2(var(--container,100vi),1px)));
      --FROM: calc(tan(atan2(var(--from,0rem),1px)));
      --TO: calc(tan(atan2(var(--to,60rem),1px)));
      animation-delay: var(--tt, calc(-1s * var(--property) * (var(--CONTAINER) - var(--FROM)) / (var(--TO) - var(--FROM)))); } }
  .tt, .rtt, .typetura, html {
    --tt: var(--on); }
  :where(html) {
    --from: 0rem;
    --to: 60rem; }
  :where(.rtt) {
    --container: 100vi; }
  :where(.cq) {
    container-type: inline-size; } }

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 100%;
  height: 100%;
  --from: 20rem;
  --to: 90rem; }

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

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background); }

h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0;
  margin-block-end: 0.6em;
  font-weight: var(--font-weight-bold);
  line-height: var(--heading-line-height);
  color: var(--color-primary-dark); }

h1 {
  font-size: clamp(var(--h1-min), 4.5vw, var(--h1-max)); }

h2 {
  font-size: clamp(var(--h2-min), 3.6vw, var(--h2-max)); }

h3 {
  font-size: clamp(var(--h3-min), 3vw, var(--h3-max)); }

h4 {
  font-size: clamp(var(--h4-min), 2.4vw, var(--h4-max)); }

h5 {
  font-size: clamp(var(--h5-min), 1.8vw, var(--h5-max)); }

h6 {
  font-size: clamp(var(--h6-min), 1.4vw, var(--h6-max)); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition); }
  a:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px; }

hr {
  margin: 2em auto;
  border: none;
  border-top: 1px solid var(--color-border);
  overflow: visible;
  position: relative; }
  hr::after {
    content: '❖';
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--color-text-light);
    padding: 0 0.75em;
    background-color: var(--color-background); }

@media (max-width: 768px) {
  :root {
    --ratio: 1.2; } }

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

main {
  padding-block: var(--spacing-lg);
  padding-inline: var(--spacing-lg);
  inline-size: 100%;
  flex: 1 0 auto; }

/* Tablet refinement: tighten vertical rhythm & horizontal padding between phone and desktop */
@media (min-width: 700px) and (max-width: 1023px) {
  main {
    padding-block: var(--spacing-xl);
    padding-inline: clamp(var(--spacing-lg), 4vw, var(--spacing-2xl)); } }

main > * + * {
  margin-block-start: var(--spacing-lg); }

.container-wrapper {
  max-inline-size: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-md); }

@media (min-width: 700px) and (max-width: 1023px) {
  .container-wrapper {
    padding-inline: clamp(var(--spacing-lg), 4vw, var(--spacing-xl));
    max-inline-size: 1000px;
    /* prevent over-wide measure on medium screens */ } }

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
  text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; }
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important; } }

@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
    text-shadow: none !important; }
  a, a:visited {
    text-decoration: underline; }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal; }
  nav, footer, header {
    display: none; } }

.grid {
  display: grid;
  gap: var(--spacing-md); }

.grid-cols-1 {
  grid-template-columns: 1fr; }

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr); }

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr); }

.grid-rows-1 {
  grid-template-rows: 1fr; }

.grid-rows-2 {
  grid-template-rows: repeat(2, 1fr); }

.grid-rows-3 {
  grid-template-rows: repeat(3, 1fr); }

/* Unequal column splits */
.grid-cols-1-2 {
  grid-template-columns: 1fr 2fr; }

.grid-cols-2-1 {
  grid-template-columns: 2fr 1fr; }

.grid-cols-1-3 {
  grid-template-columns: 1fr 3fr; }

.grid-cols-3-1 {
  grid-template-columns: 3fr 1fr; }

/* Equal two-column split (explicit naming to mirror pattern) */
.grid-cols-1-1 {
  grid-template-columns: 1fr 1fr; }

/* Responsive grid columns */
@media (min-width: 700px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr); }
  /* Responsive unequal splits */
  .md\:grid-cols-1-2 {
    grid-template-columns: 1fr 2fr; }
  .md\:grid-cols-2-1 {
    grid-template-columns: 2fr 1fr; }
  .md\:grid-cols-1-3 {
    grid-template-columns: 1fr 3fr; }
  .md\:grid-cols-3-1 {
    grid-template-columns: 3fr 1fr; }
  /* Responsive equal split */
  .md\:grid-cols-1-1 {
    grid-template-columns: 1fr 1fr; } }

header {
  background-color: var(--color-background);
  color: var(--color-text);
  padding-block: var(--spacing-md);
  width: 100%; }
  header h1 {
    color: var(--color-primary-dark);
    text-align: center;
    letter-spacing: 0.05em; }
    header h1 a {
      text-decoration: none;
      color: inherit; }
    header h1 .title-char {
      text-shadow: var(--text-shadow-md); }

@media (min-width: 700px) and (max-width: 1023px) {
  header h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.3rem); } }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center; }

nav a {
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 4px;
  transition: var(--transition);
  display: inline-block;
  font-weight: var(--font-weight-bold); }
  nav a:hover, nav a:focus-visible, nav a[aria-current="page"] {
    background-color: var(--color-background-alt);
    color: var(--color-primary-dark);
    text-decoration: none; }
  nav a:focus-visible {
    outline-color: var(--color-info); }

@media (max-width: 640px) {
  nav ul {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch; }
  nav a {
    width: 100%;
    text-align: center; } }

/* Tablet refinement: keep horizontal layout but reduce gap & center better */
@media (min-width: 641px) and (max-width: 1023px) {
  nav ul {
    gap: var(--spacing-xs);
    justify-content: center; } }

/* ========================================================================== 
   Footer Styles
   ========================================================================== */
footer {
  background-color: var(--color-primary);
  color: white;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  margin-block-start: var(--spacing-lg);
  inline-size: 100%;
  flex-shrink: 0;
  font-size: var(--s0); }
  footer p {
    font-size: inherit;
    text-align: center; }
  footer a {
    color: white;
    text-decoration: none;
    /* remove underline */
    transition: var(--transition); }
    footer a:hover {
      text-decoration: none;
      /* no underline on hover */ }

/* Info Menu */
.info-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; }
  .info-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center; }
    .info-menu ul li a {
      display: inline-flex;
      align-items: center;
      gap: 0.4em;
      padding: var(--spacing-xs) var(--spacing-sm);
      border-radius: 4px;
      color: white;
      font-weight: normal;
      text-decoration: none;
      transition: background-color 0.2s ease, color 0.2s ease;
      /* Hover style */
      /* Active/current page style */ }
      .info-menu ul li a .icon svg {
        width: 1.2em;
        height: 1.2em;
        fill: currentColor;
        display: inline-block; }
      .info-menu ul li a:hover, .info-menu ul li a:focus-visible {
        background-color: var(--color-info);
        text-decoration: none; }
      .info-menu ul li a[aria-current="page"], .info-menu ul li a.current, .info-menu ul li a.active {
        background-color: var(--color-info);
        font-weight: bold;
        text-decoration: none; }

/* Responsive: stack menu on mobile */
@media (max-width: 600px) {
  .info-menu ul {
    flex-direction: column;
    gap: 0.25rem; }
  .info-menu ul li a {
    justify-content: flex-start; } }

/* Copyright */
.copyright {
  margin-top: 1em;
  text-align: center;
  font-size: 0.9em; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-background-alt);
  font-style: italic;
  color: var(--color-text); }
  blockquote p {
    margin-bottom: 0.5em; }
    blockquote p:last-of-type {
      margin-bottom: 0; }
  blockquote cite {
    display: block;
    margin-top: 1em;
    font-style: normal;
    font-size: 0.9em;
    text-align: right;
    color: var(--color-text-light); }

/* A simple CSS rule to style the citation */
blockquote footer {
  text-align: right;
  font-style: italic;
  color: var(--color-text);
  background-color: var(--color-background-alt); }

blockquote footer a {
  color: var(--color-text);
  background-color: var(--color-background-alt); }

.prose-container {
  max-inline-size: 95ch;
  margin-inline: auto;
  padding-inline: var(--spacing-lg); }

.prose-container .credits {
  display: block;
  margin-bottom: .5rem;
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.9rem; }

.prose-container .post-author::after {
  content: '❖';
  display: inline-block;
  font-size: 1rem;
  color: var(--color-accent);
  margin: 0 0.75em;
  font-style: normal;
  transform: translateY(0.05em); }

.chapter-summary {
  margin-block: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--color-background-alt);
  border-left: 3px solid var(--color-accent); }

.summary-label {
  display: block;
  font-family: var(--font-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
  font-style: normal; }

/* css/components/_images.scss */
figure {
  margin-block: var(--spacing-lg);
  margin-inline: 0;
  display: block; }

picture, img {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
  height: auto; }

figcaption {
  margin-top: var(--spacing-sm);
  font-size: var(--s-1);
  color: var(--color-text-light);
  text-align: center;
  font-style: italic; }

.gallery-list,
.pswp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-block: var(--spacing-xl); }

.gallery-list-item,
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm); }

.gallery-list-item h2,
.gallery-item h2 {
  font-size: var(--s1);
  margin: 0;
  height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center; }
  .gallery-list-item h2 a,
  .gallery-item h2 a {
    text-decoration: none;
    color: var(--color-primary-dark);
    display: block;
    width: 100%;
    line-height: 1.2; }
    .gallery-list-item h2 a:hover,
    .gallery-item h2 a:hover {
      text-decoration: underline; }

.gallery-list-item img,
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease-in-out;
  display: block; }

.gallery-item img:hover,
.gallery-list-item img:hover {
  transform: scale(1.02); }

.gallery-item {
  text-decoration: none; }

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-block: var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 4px; }
  .table-responsive-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem; }
  .table-responsive-wrapper th,
  .table-responsive-wrapper td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap; }
  .table-responsive-wrapper thead th {
    background-color: var(--color-background-alt);
    color: var(--color-primary-dark);
    font-weight: var(--font-weight-bold);
    position: sticky;
    left: 0;
    z-index: 1; }
  .table-responsive-wrapper tbody tr:last-child td {
    border-bottom: 0; }
  .table-responsive-wrapper tbody tr:nth-of-type(even) {
    background-color: var(--color-background-alt); }

.contact-form {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 15px 35px rgba(0, 34, 68, 0.08); }
  .contact-form h3 {
    margin-top: 0;
    font-size: clamp(1.4rem, 2vw, 1.75rem); }
  .contact-form p.description {
    margin-bottom: 1.75rem;
    color: rgba(16, 24, 40, 0.75); }
  .contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem; }
    .contact-form .form-field.recaptcha {
      margin-top: 1.5rem;
      margin-bottom: 1.5rem; }
      .contact-form .form-field.recaptcha p.helper {
        margin: 0.35rem 0 0;
        font-size: 0.9rem;
        color: rgba(16, 24, 40, 0.7); }
  .contact-form label {
    font-weight: 600;
    letter-spacing: 0.01em; }
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(13, 27, 42, 0.18);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.92); }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: rgba(51, 136, 204, 0.85);
    box-shadow: 0 0 0 3px rgba(51, 136, 204, 0.15);
    outline: none; }
  .contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #f8fbff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .contact-form button[type="submit"]:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 22px rgba(13, 27, 42, 0.18); }

.contact-feedback {
  display: none;
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 136, 204, 0.25);
  background: rgba(227, 242, 253, 0.75);
  color: #102840; }

#thank-you:target {
  display: block; }

.honeypot {
  position: absolute;
  left: -9999px; }

@media (min-width: 45rem) {
  .contact-form {
    padding: 2.5rem 3rem; } }

.sidebar {
  padding: var(--spacing-lg);
  border-left: 1px solid var(--color-border);
  margin-left: var(--spacing-lg); }

.site-title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-weight-bold);
  font-style: italic;
  color: var(--color-primary-dark);
  line-height: var(--heading-line-height);
  text-align: center;
  letter-spacing: 0.05em;
  margin-block-start: 0;
  margin-block-end: 0.6em;
  text-shadow: 0 3px 6px rgba(60, 0, 0, 0.35); }

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

.intro {
  font-style: italic;
  color: var(--color-text);
  background-color: var(--color-background-alt);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  border-left: 5px solid var(--color-border);
  line-height: var(--line-height-base);
  font-family: var(--font-serif); }

.intro ul {
  margin-top: var(--spacing-md);
  margin-left: var(--spacing-lg); }

.intro li {
  margin-bottom: var(--spacing-sm); }

h1 {
  /* inherit responsive size */
  color: var(--color-primary-dark); }

h2 {
  /* inherit responsive size */
  color: var(--color-secondary); }

h3 {
  /* inherit responsive size */
  color: var(--color-secondary); }

.footnotes a {
  text-decoration: none; }

@media (min-width: 768px) {
  .float-right-md {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    max-width: 50%; } }

img {
  max-width: 100%;
  height: auto;
  display: block; }

.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: start;
  margin-block: var(--spacing-xl); }

.image-container__image {
  flex: 1 1 300px;
  min-width: 0; }
  .image-container__image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg); }

.image-container__text {
  flex: 2 1 400px;
  min-width: 0; }

.image-container--reverse {
  flex-direction: row-reverse; }

@media (max-width: 768px) {
  .image-container {
    flex-direction: column; } }

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg, 1rem);
  align-items: start;
  /* text column remains default styling */
  /* Center caption / figcaption underneath the media */ }
  .home-hero .hero-media {
    order: 2; }
  .home-hero .hero-media picture,
  .home-hero .hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px; }
  .home-hero .hero-media figcaption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text, #222);
    opacity: 0.95; }
  @media (min-width: 768px) {
    .home-hero {
      grid-template-columns: minmax(0, 1fr) 360px;
      align-items: center; }
      .home-hero .hero-media {
        order: 0; } }
/* Style for the AI disclaimer blockquote */
.ai-disclaimer {
  background-color: var(--color-background-alt);
  /* Approximated from #f0f7fd */
  border-left: 5px solid var(--color-info);
  /* A nice blue left border */
  padding: 15px;
  margin: 20px 0;
  font-size: 0.9em;
  color: var(--color-text); }

.ai-disclaimer p {
  margin: 0;
  /* Remove default paragraph margin inside the blockquote */ }

.ai-disclaimer a {
  font-weight: bold; }

.content-advisory {
  border: 1px solid var(--color-advisory-border);
  background: var(--color-advisory-bg);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 6px; }

.content-advisory strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem; }

.content-advisory p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4; }

.advisory-badge {
  display: inline-block;
  background-color: var(--color-advisory-bg-alt);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  /* Added for tooltip hover */
  cursor: help;
  position: relative; }

/* Tooltip styling */
/* Using native title tooltip; no custom ::after tooltip */
/* ========================================
   Accessibility / Visually-hidden utility
   ======================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  /* Modern & preferred replacement for clip */
  white-space: nowrap;
  border: 0; }

/*
  Show the element again when it's focused by a keyboard user.
  This is essential for the "Skip to main content" link.
*/
.visually-hidden.focusable:focus,
.visually-hidden.focusable:active {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  /* Make it visible again */
  white-space: normal;
  /* Optional: Add some basic styling so it looks like a button/link */
  z-index: 1000;
  padding: 0.75rem 1rem;
  background-color: var(--color-primary-dark);
  color: var(--color-background);
  text-decoration: none;
  border-radius: 3px;
  line-height: 1; }

/* Simple callout component */
.callout {
  border-left: 4px solid var(--color-accent, #0a66c2);
  background: rgba(10, 102, 194, 0.06);
  padding: .75rem 1rem;
  margin: 1rem 0;
  border-radius: .25rem; }

.callout strong {
  display: inline-block;
  margin-bottom: .25rem; }

.callout ul {
  margin: .25rem 0 .5rem 1.25rem; }

.callout p {
  margin: 0; }

/* Variant hook (if needed later) */
.callout--summary {
  border-left-color: var(--color-success, #2da44e);
  background: rgba(45, 164, 78, 0.06); }

.callout--summary p {
  margin-bottom: 2em; }

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

S
.contact-intro img {
  vertical-align: middle; }

/* --- Breadcrumbs Styling --- */
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  /* A light background color */
  border-radius: 4px; }

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center; }

.breadcrumbs li {
  display: inline; }

/* Add a separator (like '>') between items */
.breadcrumbs li + li::before {
  content: '›';
  /* You can use '>', '/', or any other character */
  margin: 0 0.5em;
  color: #6c757d;
  /* A muted color for the separator */ }

.breadcrumbs a {
  text-decoration: none;
  color: #0056b3;
  /* A standard link color */ }

.breadcrumbs a:hover {
  text-decoration: underline; }

/* Style for the current page (the last item) */
.breadcrumbs .current {
  color: #343a40;
  /* A darker color for the active page */
  font-weight: bold; }

/* Small-screen: wrap/stack breadcrumbs vertically for narrow viewports */
@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem; }
  .breadcrumbs ol {
    display: flex;
    flex-direction: column;
    /* stack items vertically */
    align-items: flex-start; }
  .breadcrumbs li {
    display: block;
    margin: 0.25rem 0;
    /* small vertical spacing between items */ }
  /* Remove inline separators when stacked */
  .breadcrumbs li + li::before {
    content: ''; }
  .breadcrumbs a {
    display: inline-block; }
  .breadcrumbs .current {
    font-weight: bold; } }

@media (prefers-reduced-motion: reduce) {
  /* Generic: limit transitions to color/opacity where essential */
  .btn, a, button, [role="button"], .nav, .footer, .header {
    transition: none !important; }
  /* Any element using the site-wide --transition token */
  [style*="--transition"], .uses-transition {
    transition: none !important; }
  /* Remove potential decorative text shadows that can contribute to perceived flicker */
  .site-title .title-char, h1, h2, h3, h4, h5, h6 {
    text-shadow: none !important; }
  /* Pagefind search focus glow simplification */
  /* Pagefind removed: previously simplified focus styles were here. */ }

.thank-you {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  text-align: center;
  margin: 2rem auto;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  word-break: break-word;
  padding: 0 1rem; }

.thank-you span {
  display: inline-block;
  font-size: clamp(2rem, 8vw, 5rem);
  padding: 0 .05em;
  transition: transform .2s ease-in-out;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); }

.thank-you span:hover {
  transform: scale(1.1); }

@media (max-width: 480px) {
  .thank-you {
    margin-top: 1rem; } }

.ty-c0 {
  color: #003366; }

.ty-c1 {
  color: #004080; }

.ty-c2 {
  color: #0077cc; }

.ty-c3 {
  color: #33ccff; }

.ty-c4 {
  color: #0077cc; }

.ty-c5 {
  color: #004080; }

.ty-c6 {
  color: #003366; }

.ty-c7 {
  color: #002244; }

.ty-c8 {
  color: #001122; }

.error-container {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 600px;
  margin: 0 auto;
  font-family: system-ui, sans-serif; }

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-error); }

.error-message {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--color-text); }

.error-links {
  margin-top: 2rem; }

.error-links a {
  text-decoration: none;
  padding: .75rem 1.25rem;
  margin: .25rem;
  background: var(--color-primary-light);
  color: var(--color-background);
  border-radius: 5px;
  display: inline-block;
  transition: background .2s ease-in-out; }

.error-links a:hover {
  background: var(--color-primary-dark); }

.error-illustration {
  margin-top: 3rem;
  max-width: 100%;
  height: auto; }

/* ========================================================================== 
   Writing Section Layout - Grid & Sidebar 
   ========================================================================== */
/* Main grid container for two-column layout: main content + sidebar */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl); }

@media (min-width: 900px) {
  .layout-grid {
    grid-template-columns: 3fr minmax(250px, 1fr); } }

/* ================= Sidebar ================= */
.sidebar {
  padding: var(--spacing-lg);
  background-color: var(--color-background-alt);
  border-radius: 8px;
  align-self: start;
  /* Prevent vertical stretching */
  position: sticky;
  /* Sticky sidebar */
  top: var(--spacing-lg);
  /* Sticky offset from top */
  box-shadow: var(--shadow-md);
  /* Section title inside sidebar */
  /* Section spacing */
  /* Lists */
  /* Unified link style for sidebar items */
  /* Optional nav container if you use <nav> */ }
  .sidebar .sidebar-title {
    font-size: var(--s1);
    font-weight: bold;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem; }
  .sidebar .sidebar-section {
    margin-bottom: 2rem; }
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; }
  .sidebar ul li ul {
    padding-left: 0.5rem;
    /* nested items indent */
    margin-top: 0.25rem; }
  .sidebar li {
    margin: 0;
    padding: 0; }
  .sidebar .sidebar-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--s0);
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; }
    .sidebar .sidebar-link:hover {
      background-color: var(--color-border);
      color: var(--color-primary-dark); }
    .sidebar .sidebar-link.active {
      background-color: var(--color-accent);
      color: var(--color-background);
      font-weight: 500; }
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 1rem; }

/* ================= Citation / Works Cited ================= */
.works-cited {
  font-family: 'Times New Roman', serif;
  margin: 2em 0; }
  .works-cited ul {
    list-style: none;
    padding-left: 0; }
  .works-cited li {
    padding-left: 0.75em;
    text-indent: -0.75em;
    margin-bottom: 0.75em; }
  .works-cited a {
    text-decoration: none; }

/* ================= Writing Section ================= */
.writing a {
  text-decoration: none; }

.writing .subtitle {
  color: var(--color-secondary);
  text-indent: 0.5em; }

.writing h1 {
  color: var(--color-primary);
  text-shadow: 2.5px 2.5px 5px rgba(0, 0, 0, 0.45); }

.writing h2 {
  color: var(--color-secondary); }

.writing h3 {
  color: var(--color-secondary); }

.writing h2,
.writing h3,
.writing h4 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }

/* ================= Writing Series ================= */
.series-list h3 {
  color: var(--color-primary-dark); }

.series-article-links li {
  list-style: none;
  padding: 0;
  margin: 0; }
  .series-article-links li a {
    font-weight: 700; }

/* ================= Writing Section ================= */
.writing .section h3 {
  color: var(--color-primary-dark);
  font-size: clamp(var(--h4-min), 2.4vw, var(--h4-max)); }

.home img {
  border-radius: 8px;
  filter: drop-shadow(2.5px 2.5px 5px black); }

.home figcaption {
  margin-top: var(--spacing-sm);
  font-size: var(--s2);
  color: var(--color-text-light);
  text-align: center; }

.hunger img {
  border-radius: 8px;
  filter: drop-shadow(2.5px 2.5px 5px black); }

.passion img {
  border-radius: 8px;
  filter: drop-shadow(2.5px 2.5px 5px black); }

.desire img {
  border-radius: 8px;
  filter: drop-shadow(2.5px 2.5px 5px black); }

/* ================= Page Navigation ================= */
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em; }

.page-navigation .prev,
.page-navigation .next {
  text-decoration: none;
  font-weight: var(--font-weight-normal);
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-size: var(--s0);
  line-height: 1.4; }

/* Previous link styles */
.page-navigation .prev {
  color: var(--color-background);
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  margin-right: auto;
  box-shadow: var(--shadow-sm); }

.page-navigation .prev:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-advisory-bg);
  border-color: var(--color-accent); }

.page-navigation .next:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-advisory-bg);
  border-color: var(--color-accent); }

/* Next link styles */
.page-navigation .next {
  color: var(--color-background);
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  margin-left: auto;
  box-shadow: var(--shadow-sm); }

/* Responsive adjustments */
@media (max-width: 640px) {
  .page-navigation {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch; }
  .page-navigation .prev,
  .page-navigation .next {
    width: 100%;
    text-align: center;
    margin: 0; }
  .page-navigation .prev {
    order: 2; }
  .page-navigation .next {
    order: 1; } }
