@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/roboto-700.woff2") format("woff2");
}

/* Display all site text lowercase (design choice); exclude form inputs so typed
   values (e.g. email) aren't forced lowercase. Display-only — underlying text,
   titles, meta, and RSS keep original casing. */
body { text-transform: lowercase; }
input, textarea, select { text-transform: none; }

html {
  box-sizing: border-box;
}

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

html {
  /* warm palette, pulled from Nivi's paintings */
  --paper: #F8F1E2;
  --ink: #2A231E;
  --red: #C63B2C;
  --blue: #28558A;
  --teal: #1F8E82;
  --green: #4B9A55;
  --hairline: #E4D9C1;
  --fig-accent: #C63B2C;

  --link-text-color: #6E5F49;
  --emphasis-color: var(--ink);
  --main-background-color: var(--paper);
  --main-text-color: var(--ink);
  --secondary-text-color: #8C7F6C;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Roboto";
  background-color: var(--main-background-color);
  color: var(--main-text-color);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  max-width: 675px;
  padding: 1.5em;
  padding-top: 4em;
}

.archive {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.archive li {
  text-transform: lowercase;
}

h1 {
  width: 100%;
  font-size: 2em;
  font-weight: 500;
  color: var(--emphasis-color);
  margin-bottom: 0;
}

h2 {
  width: 100%;
  font-size: 1.3em;
  font-weight: 500;
  color: var(--emphasis-color);
}

h3 {
  width: 100%;
  font-style: italic;
  font-size: 1em;
  font-weight: 500;
  color: var(--emphasis-color);
}

a {
  color: var(--link-text-color);
  border-bottom: 1px dashed var(--link-text-color);
  text-decoration: none;
  -webkit-transition: all .3s linear;
  -moz-transition: all .3s linear;
  -ms-transition: all .3s linear;
  -o-transition: all .3s linear;
  transition: all .3s linear;
}

a:hover {
  color: var(--main-background-color);
  background: var(--red);
  border-bottom: 1px solid var(--red);
}

blockquote {
  margin: 1.6em 0;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--red);
}
blockquote p:first-child { margin-top: 0; }
blockquote p:last-child { margin-bottom: 0; }

.header {
  position: fixed;
  width: 100%;
  padding: 20px;
  z-index: 3;
  text-transform: lowercase;
  display: flex;
  justify-content: center;
  background: var(--main-background-color);
}

.header a {
  border-bottom: 0px;
}

.post-title {
  margin-bottom: 0;
}

p {
  width: 100%;
}

article p {
  color: var(--main-text-color);
}

.text {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

.meta {
  margin-right: 10px;
  color: var(--secondary-text-color);
  width: 90px;
}

img.center {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

 /* 48em = 768px */

 @media (min-width: 48em) {
   .header li {
     float: left;
   }
   .header li a {
     padding: 20px 30px;
   }
   .header .menu {
     clear: none;
     float: right;
     max-height: none;
   }
   .header .menu-icon {
     display: none;
   }

   .main {
     margin: auto;
   }
 }

@media (prefers-color-scheme: dark) {
  html {
    /* warm-dark: espresso paper, warm cream ink; accents unchanged */
    --main-background-color: #241E1A;
    --main-text-color: #EDE3CF;
    --emphasis-color: #F5ECD9;
    --link-text-color: #C9B79A;
    --secondary-text-color: #A99C86;
    --hairline: #3B332C;
  }
}

/* Post body content (stories and essays) keeps its original capitalization for
   legibility. Titles, meta, nav, listings, and page copy stay lowercase. */
.keep-case { text-transform: none; }

/* Subscribe form (Buttondown). Button uses text/background vars so it stays
   legible in both light and dark themes. */
.subscribe {
  align-self: stretch;
  margin: 64px 0 0;
  padding: 28px 20px 8px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.subscribe p { margin: 0 0 14px; color: var(--secondary-text-color); font-style: italic; }
.subscribe form { display: flex; gap: 8px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 240px; max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--secondary-text-color);
  border-radius: 4px;
  background: var(--main-background-color);
  color: var(--main-text-color);
  font-family: inherit; font-size: 1em;
}
.subscribe button {
  padding: 10px 20px;
  border: none; border-radius: 4px;
  background: var(--red);
  color: var(--paper);
  font-family: inherit; font-size: 1em; cursor: pointer;
}
.subscribe button:hover { opacity: 0.85; }
