@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&family=Alegreya+SC:wght@400;500;700&display=swap");

/* Folio design system for makarandparigi.com.
   Tokens and type styles from Folio's tokens.json; layout and colour rules
   below are Folio's components/bundle.css, unchanged. */

:root {
  /* Colour (Paper theme) */
  --paper: #fcfcfc;
  --ink: #111111;
  --ink-soft: #585858;
  --ink-muted: #6f6f6f;
  --ink-faint: #aaaaaa;
  --rule-soft: #d4d4d4;
  --link: #003366;
  --link-hover: #eaf2fb;
  --accent: #660000;

  /* Type */
  --font-serif: Alegreya, Georgia, serif;
  --font-smallcaps: "Alegreya SC", Alegreya, Georgia, serif;

  /* Spacing */
  --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-12: 12px;
  --space-14: 14px; --space-18: 18px; --space-20: 20px; --space-22: 22px;
  --space-32: 32px; --space-34: 34px; --space-44: 44px; --space-48: 48px;
  --space-52: 52px; --space-56: 56px; --space-64: 64px;

  /* Layout */
  --page-max: 1080px;
  --measure: 640px;
  --column-basis: 520px;
  --note-basis: 240px;
  --note-max: 300px;
  --hairline: 1px;
  --quote-bar: 3px;
  --radius-link: 3px;

  /* Shadows */
  --shadow-paper: 0 1px 2px rgba(17, 17, 17, 0.06), 0 4px 14px rgba(17, 17, 17, 0.08);
  --shadow-lift: 0 2px 6px rgba(17, 17, 17, 0.06), 0 14px 36px rgba(17, 17, 17, 0.12);
  --shadow-offset: 3px 3px 0 #111111;
  --shadow-inset: inset 0 1px 3px rgba(17, 17, 17, 0.14);
}

/* Base */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #d8e8ff; color: #08111c; }

/* Type styles */
.wordmark { font-family: var(--font-serif); font-size: 44px; line-height: 1; font-weight: 500; }
.section-heading { font-family: var(--font-smallcaps); font-size: 25px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.2; }
.button-label { font-family: var(--font-smallcaps); font-size: 16px; font-weight: 400; letter-spacing: 0.6px; }
.body { font-family: var(--font-serif); font-size: 21px; line-height: 31px; font-weight: 440; text-wrap: pretty; }
.quote { font-family: var(--font-serif); font-size: 21px; line-height: 31px; font-weight: 440; font-style: italic; }
.sidenote { font-family: var(--font-serif); font-size: 16px; line-height: 23px; font-weight: 440; }
.more-link { font-family: var(--font-serif); font-size: 17px; font-weight: 440; }
.nav { font-family: var(--font-serif); font-size: 16px; font-weight: 440; }
.fine-print { font-family: var(--font-serif); font-size: 15px; font-weight: 440; }
.drop-cap { font-family: var(--font-serif); font-size: 74px; line-height: 60px; font-weight: 500; }
.section-mark { font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.note-ref { font-family: var(--font-serif); font-size: 13px; line-height: 0; font-weight: 440; }
.asterism { font-family: var(--font-serif); font-size: 22px; font-weight: 440; letter-spacing: 14px; }

/* Folio — layout and color for the type classes tokens.css defines (.wordmark, .body, .sidenote …). */

.fo-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 440;
}
.fo-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-64) var(--space-32) var(--space-48);
  box-sizing: border-box;
}

/* Links */
.fo-link { color: var(--link); text-decoration: none; }
.fo-link:hover, .fo-link:focus-visible { background: var(--link-hover); border-radius: var(--radius-link); }
.fo-link:focus-visible { outline: var(--hairline) solid var(--link); outline-offset: 2px; }
.fo-link--title { font-style: italic; }

/* Masthead */
.fo-masthead { text-align: left; margin-bottom: var(--space-56); color: var(--ink); }
.fo-fleuron { display: block; margin: 0 0 var(--space-20); color: var(--ink); }
.fo-masthead .wordmark { margin: 0; }

/* Section heading */
.fo-heading { margin: var(--space-34) 0 var(--space-14); text-transform: lowercase; color: var(--ink); }
.fo-heading .section-mark { color: var(--ink-faint); }

/* Text column + sidenote column */
.fo-row { display: flex; flex-wrap: wrap; column-gap: var(--space-56); row-gap: var(--space-8); }
.fo-main { flex: 999 1 var(--column-basis); min-width: 0; max-width: var(--measure); margin: 0; hyphens: auto; }
.fo-note { flex: 1 1 var(--note-basis); max-width: var(--note-max); }
.fo-note--drop { padding-top: var(--space-52); }

/* Drop cap and footnote marks */
.fo-dropcap { float: left; padding: 6px 10px 0 0; color: var(--accent); }
.fo-noteref { color: var(--accent); vertical-align: super; }
.fo-notenum { color: var(--accent); }

/* Entries */
.fo-entry { margin-bottom: var(--space-18); row-gap: var(--space-4); }
.fo-entry:last-child { margin-bottom: 0; }
.fo-log { margin-bottom: var(--space-6); }
.fo-log .fo-year { color: var(--ink-muted); }
.fo-log .fo-date { line-height: 31px; font-variant-numeric: oldstyle-nums; }
.fo-more { margin: var(--space-14) 0 0; }

/* Asterism */
.fo-asterism { text-align: center; max-width: var(--measure); margin: var(--space-44) 0 var(--space-6); color: var(--ink-muted); }

/* Block quote */
.fo-quote { margin: var(--space-22) 0 var(--space-44); padding: 2px 0 2px var(--space-20); max-width: var(--measure); box-sizing: border-box; border-left: var(--quote-bar) solid var(--rule-soft); }
.fo-quote p { margin: 0; color: var(--ink); }

/* Button: square, ink outline, small-caps label */
.fo-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; background: transparent; border: var(--hairline) solid var(--ink); border-radius: 0; color: var(--ink); text-transform: lowercase; cursor: pointer; transition: box-shadow 80ms, transform 80ms; }
.fo-button svg { flex: none; }
.fo-button .fo-play { fill: var(--accent); }
.fo-button:hover { box-shadow: var(--shadow-offset); transform: translate(-1px, -1px); }
.fo-button:active { box-shadow: var(--shadow-inset); transform: none; }
.fo-button:focus-visible { outline: var(--hairline) solid var(--link); outline-offset: 3px; }

/* Figure */
.fo-figure { margin: 0 0 var(--space-34); }
.fo-figure img, .fo-figure .fo-plate { display: block; width: 100%; box-shadow: var(--shadow-paper); border-radius: 0; }
.fo-figure figcaption { color: var(--ink); }

/* Footer */
.fo-footer { margin-top: var(--space-64); border-top: var(--hairline) solid var(--ink); padding-top: var(--space-14); max-width: var(--measure); }
.fo-nav { display: flex; flex-wrap: wrap; gap: var(--space-22); margin-bottom: var(--space-8); }
.fo-nav a { color: var(--ink); text-decoration: none; }
.fo-nav a:hover, .fo-nav a:focus-visible { background: var(--link-hover); border-radius: var(--radius-link); }
.fo-footer .fine-print { margin: 0; color: var(--ink-soft); }
