/* glisic.xyz — single stylesheet, no dependencies */

:root {
  --text: #1c1c1c;
  --text-soft: #5a5a56;
  --bg: #fdfdfb;
  --rule: #e3e2dc;
  --accent: #2d5f5d;
  --accent-soft: #eef3f2;
}

/* Privacy Guardians palette for readers in dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #EDF1F8;
    --text-soft: #BFCCE8;
    --bg: #101A2C;
    --rule: #2C3D5C;
    --accent: #7BC89A;
    --accent-soft: #1B2A44;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  line-height: 1.65;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
}

header.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header.site a {
  color: var(--text-soft);
  text-decoration: none;
}

header.site a:hover { color: var(--accent); }

header.site .wordmark {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.05rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  margin: 3rem 0 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.25rem;
}

p { margin: 0.9rem 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

.lede {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-top: 0;
}

.meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0.1rem 0 0;
}

.pub {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}

.pub:last-of-type { border-bottom: 1px solid var(--rule); }

.pub h3 { margin: 0 0 0.2rem; }

.pub p { margin: 0.45rem 0 0; }

.pub .links {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

.pub .links a { margin-right: 1.1rem; }

.status {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  vertical-align: 0.1rem;
  margin-left: 0.4rem;
}

footer.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-soft);
}

footer.site a { color: var(--text-soft); }

/* Article pages */

article h1 { margin-top: 0; }

article .abstract {
  border-left: 3px solid var(--rule);
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 1.75rem 0;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* index page: just the links */

main.index {
  padding-top: min(26vh, 13rem);
}

.biglink {
  display: block;
  width: fit-content;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 1.4rem;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.biglink .ext {
  font-size: 1.3rem;
  color: var(--text-soft);
  margin-left: 0.15em;
}

figure {
  margin: 2.25rem 0;
}

figure img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
