/* modafinilpricewatch.com
   The watch log: gray paper, blue-black ink, one pen blue.
   Newsreader carries the record; Archivo carries the instrument. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e7e8e4;
  --ink: #23272b;
  --ink-soft: #59606a;
  --rule: #c9ccc6;
  --pen: #2b5a74;
  --pen-deep: #1d4358;
  --tint: #d3dee4;
  --measure: 33rem;
  --gutter: clamp(1.15rem, 4.5vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scrollbar-color: var(--rule) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

::selection {
  background: var(--tint);
}

p {
  margin: 0 0 0.85em;
}

a {
  color: var(--pen);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--pen-deep);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--pen-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 140ms ease, text-decoration-thickness 140ms ease;
  }
}

.skip {
  position: absolute;
  left: -100rem;
  top: 0.6rem;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.skip:focus {
  left: 0.6rem;
  z-index: 10;
}

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Masthead: wordmark, then the page index as one quiet row */

.masthead {
  padding-top: 1.7rem;
}

.wordmark {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem;
}

.wordmark:hover {
  color: var(--pen-deep);
}

.pagenav {
  margin-top: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.pagenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.45rem;
}

.pagenav a {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.38rem;
}

.pagenav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.pagenav a[aria-current="page"] {
  color: var(--pen-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* The entry: one bold opening, then a quiet ruled record */

main {
  padding-top: 3.1rem;
  padding-bottom: 0.5rem;
}

h1 {
  font-size: clamp(1.95rem, 5.4vw, 2.5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 1.45rem;
}

.entry-body {
  text-wrap: pretty;
}

.entry-body > p:first-child {
  font-size: 1.24rem;
  line-height: 1.45;
  font-weight: 500;
  max-width: 30rem;
  margin-bottom: 1.6rem;
}

h2 {
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 2.1em 0 0.55em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule);
}

.entry-body > h2:first-of-type {
  margin-top: 1.7em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--pen);
}

li p {
  margin: 0;
}

/* Footer */

footer {
  margin-top: 3.4rem;
  border-top: 1px solid var(--rule);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 1.05rem;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.foot-row p {
  margin: 0;
}

@media (max-width: 40rem) {
  main {
    padding-top: 2.4rem;
  }

  h1 {
    margin-bottom: 1.2rem;
  }

  .entry-body > p:first-child {
    font-size: 1.13rem;
    line-height: 1.47;
  }
}
