﻿/* Self-hosted copies of the Google Fonts the site uses (latin subsets; the Devanagari
   face only covers Devanagari text). font-display: swap, as before. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans and Fraunces are single variable files declared at the same fixed weights
   Google Fonts declared (400/500/700 and 400/500/600), so a request for an in-between
   weight such as 600 resolves to the same face, and renders the same, as before. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-devanagari-700-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

/* Latin part of the Devanagari face, as Google Fonts declared it. The Devanagari words
   contain no Latin letters, so this file is rarely downloaded, but declaring it keeps
   those lines exactly as tall as before (line height comes from the first face that
   covers the space character). */
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/noto-sans-devanagari-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The site has one fixed palette. "only light" opts the page out of browser
   auto-dark/force-dark rendering, which otherwise recolours the sections and
   inverts background images on devices set to dark mode. */
:root {
  color-scheme: only light;
  --forest: #04200F;
  --cream: #FFFBD0;
  --river-blue: #1C3FA6;
  --river-deep: #0F2566;
  --walnut: #A8622A;
  --walnut-dark: #6E3B16;
  --sand: #F3EBD3;
  --ink: #0B1A10;
  --white: #FFFFFF;

  --bg: var(--forest);
  --bg-soft: var(--walnut-dark);
  --panel: rgba(4, 32, 15, 0.88);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: var(--cream);
  --muted: rgba(255, 251, 208, 0.8);
  --muted-2: rgba(255, 251, 208, 0.62);
  --line: rgba(255, 251, 208, 0.16);
  --accent: var(--walnut);
  --accent-strong: var(--cream);
  --accent-earth: var(--walnut-dark);
  --surface-warm: var(--sand);
  --surface-warm-raised: var(--sand);
  --surface-card: var(--cream);
  --surface-image: var(--walnut);
  --text-dark: var(--ink);
  --text-dark-muted: rgba(11, 26, 16, 0.76);
  --line-dark: rgba(11, 26, 16, 0.16);
  --shadow-card: rgba(18, 29, 26, 0.14);
  --shadow: rgba(1, 9, 8, 0.35);
  --container: min(1300px, calc(100% - 32px));

  --font-display: "Anton", Impact, sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
  --font-devanagari: "Noto Sans Devanagari", sans-serif;
  --type-h1: clamp(3.2rem, 6vw, 6.5rem);
  --type-h2: clamp(2.2rem, 5.5vw, 4.75rem);
  --type-h3: clamp(1.35rem, 3vw, 2.25rem);
  --type-body: clamp(1rem, 1.1vw, 1.125rem);
  --type-small: clamp(0.75rem, 0.9vw, 0.875rem);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset, 73px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 760px; }

:focus-visible {
  outline: 2px solid var(--river-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--cream);
}
