/* Ohio Teacher Grants. Printed-bulletin look: paper, ink, hairline rules.
   One accent (oxblood) and it means one thing: the deadline is within 30 days. */
:root {
  --paper: #fbfaf6;
  --ink: #1c1b19;
  --muted: #5d5a53;
  --rule: #d9d4c7;
  --soon: #9a2a1c;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* masthead */
.mast { border-bottom: 3px double var(--ink); padding: 1.1rem 0 0.7rem; }
.mast .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.3rem 1rem; flex-wrap: wrap; }
.name { font: 700 1.15rem/1 var(--serif); letter-spacing: 0.01em; text-decoration: none; }
.edition { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* intro */
h1 { font: 700 clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem)/1.1 var(--serif); margin: 2rem 0 0.9rem; letter-spacing: -0.01em; }
.lede { font-size: 1.08rem; max-width: 36rem; margin: 0 0 0.6rem; }
.note { font-size: 0.9rem; color: var(--muted); max-width: 36rem; margin: 0 0 0.4rem; }
.note b { color: var(--soon); font-weight: 600; }

/* filters */
.filters { margin: 1.8rem 0 0; padding: 0.5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.15rem 0.2rem; align-items: center; }
.filters span { color: var(--muted); margin-right: 0.3rem; }
.filters button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0.45rem 0.5rem; min-height: 2.5rem;
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.25em; }
.filters button:hover { text-decoration-color: var(--ink); }
.filters button[aria-pressed="true"] { font-weight: 700; text-decoration: none; background: var(--ink); color: var(--paper); }

/* the sheet */
h2 { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  margin: 2.4rem 0 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--ink); }
ol.sheet { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 1.1rem; padding: 1.05rem 0 1.15rem; border-bottom: 1px solid var(--rule); }
.date { margin: 0; font-family: var(--serif); line-height: 1; }
.date .m { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.date .d { display: block; font-size: 2.1rem; font-weight: 700; font-variant-numeric: lining-nums; margin: 0.1rem 0 0.2rem; }
.date .wd { display: block; font: 0.78rem/1.3 var(--sans); color: var(--muted); }
.date .any { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.row.soon .date, .row.soon .date .wd { color: var(--soon); }
.funder { margin: 0; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.row h3 { font: 700 1.2rem/1.25 var(--serif); margin: 0.15rem 0 0.35rem; }
.row h3 a { text-decoration-color: var(--rule); }
.row h3 a:hover { text-decoration-color: var(--ink); }
.amount { margin: 0 0 0.25rem; font-weight: 600; }
.amount .effort { font-weight: 400; color: var(--muted); }
.elig { margin: 0 0 0.35rem; }
.check { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* offers: set like a notice in the bulletin, not a card */
.offer { margin: 3rem 0 0; padding-top: 1.2rem; border-top: 3px double var(--ink); }
.offer h2 { border: 0; margin: 0 0 0.5rem; padding: 0; }
.offer h3 { font: 700 1.5rem/1.2 var(--serif); margin: 0 0 0.6rem; }
.offer p { max-width: 36rem; }
.price { font-family: var(--serif); font-weight: 700; }
.buy { display: inline-block; margin: 0.4rem 0 0.2rem; padding: 0.75rem 1.2rem; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; border-radius: 2px; }
.buy:hover { background: #000; }
.buy.quiet { background: none; color: var(--ink); border: 1px solid var(--ink); }
.fine { font-size: 0.85rem; color: var(--muted); }
.specimen { margin: 1rem 0; border-left: 3px solid var(--ink); padding: 0.2rem 0 0.2rem 1rem; max-width: 34rem; font-size: 0.93rem; }
.specimen .label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.specimen p { margin: 0 0 0.3rem; }
.specimen strong { font-family: var(--serif); font-size: 1.02rem; }
.steps { padding-left: 1.2rem; max-width: 36rem; }
.steps li { margin-bottom: 0.2rem; }

/* footer */
.foot { margin-top: 3.5rem; border-top: 1px solid var(--ink); padding: 1.2rem 0 2.5rem; font-size: 0.88rem; color: var(--muted); }
.foot p { margin: 0 0 0.6rem; max-width: 36rem; }
.foot .about { color: var(--ink); }

/* plain pages */
.prose h2 { margin-top: 2rem; }
.prose p { max-width: 36rem; }

@media (max-width: 30rem) {
  .row { grid-template-columns: 3.5rem 1fr; gap: 0 0.85rem; }
  .date .d { font-size: 1.75rem; }
  .row h3 { font-size: 1.12rem; }
}
