/*
 * ThinkBrain: Public Notice No. 001
 * A pinned sheet of paper, not a dashboard.
 * No scripts, trackers, background images, or third-party requests.
 * The unmodified Selectric Mono OTF is hosted alongside the site.
 * Copyright and SIL OFL licence: fonts/OFL-license.txt
 */

@font-face {
  font-family: "Selectric Mono";
  src: url("./fonts/SelectricMono.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --wall: #454b47;
  --paper: #f0e9d6;
  --ink: #28271f;
  --faint-ink: #504d42;
  --page-width: 720px;
  font-synthesis: none;
}

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

html { min-width: 280px; }

body {
  margin: 0;
  font-family: "Selectric Mono", "Courier New", Courier, monospace;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--wall);
}

.notice-board {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(47px, 7vw, 86px) 20px 24px;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(222, 217, 184, 0.08), transparent 58%),
    radial-gradient(circle at 17% 72%, rgba(6, 10, 7, 0.17), transparent 42%),
    repeating-linear-gradient(29deg, transparent 0 4px, rgba(0, 0, 0, 0.015) 4px 5px),
    repeating-linear-gradient(115deg, transparent 0 8px, rgba(245, 240, 218, 0.011) 8px 9px);
}

.notice-mount {
  position: relative;
  width: min(100%, var(--page-width));
  transform: rotate(-0.55deg);
  filter: drop-shadow(3px 15px 12px rgba(9, 11, 8, 0.29));
}

.paper {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 910px;
  background-color: var(--paper);
  background-image:
    linear-gradient(105deg, rgba(255,255,255,.36), transparent 29%, rgba(89,72,42,.035) 83%, rgba(69,47,18,.11)),
    repeating-linear-gradient(0deg, rgba(90,75,45,.014) 0, rgba(90,75,45,.014) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.024) 0, rgba(255,255,255,.024) 1px, transparent 1px, transparent 5px);
  padding: clamp(45px, 8vw, 77px) clamp(26px, 8.5vw, 78px) 47px;
  box-shadow:
    inset 1px 0 rgba(255,255,255,.5),
    inset -2px 0 rgba(44,35,18,.12),
    inset 0 -3px rgba(63,52,31,.11),
    0 2px 1px rgba(0,0,0,.1);
}

.paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 auto;
  width: 74px;
  height: 63px;
  pointer-events: none;
  background: linear-gradient(134deg, transparent 50%, rgba(93,78,55,.07) 70%, rgba(255,255,255,.33));
}

.ink { text-shadow: 0.16px 0 rgba(31, 29, 22, 0.4); }

.pin {
  position: absolute;
  z-index: 2;
  display: block;
  left: calc(50% - 13px);
  top: -14px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #542f20;
  background:
    radial-gradient(circle at 31% 26%, #f9b988 0 7%, #c66b43 30%, #843b2b 64%, #48251e 88%);
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.3),
    inset -2px -3px 3px rgba(35,16,12,.4),
    2px 4px 4px rgba(13,13,10,.42);
}

.pin::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,227,186,.4);
  transform: rotate(-30deg);
}

p { margin: 0 0 17px; }

.notice-header { margin: 0 0 34px; }

.eyebrow {
  text-align: center;
  font-size: .95em;
  letter-spacing: .22em;
  margin: 0 0 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .79em;
  letter-spacing: .03em;
  color: var(--faint-ink);
}

.type-rule {
  border-top: 1px dashed rgba(40,39,31,.72);
  margin: 20px 0 27px;
  height: 0;
}

h1, h2, h3 { font-size: inherit; font-weight: normal; margin: 0; }

h1 {
  font-size: clamp(27px, 5vw, 43px);
  line-height: 1.27;
  letter-spacing: .16em;
  text-align: center;
  text-shadow: .4px 0 currentColor, -.3px 0 currentColor;
  margin: 0 0 9px;
}

.strapline {
  text-align: center;
  font-size: .88em;
  letter-spacing: .065em;
  margin: 0;
}

.body-copy { margin-bottom: 35px; }

h2 {
  font-size: .98em;
  letter-spacing: .13em;
  margin: 0 0 21px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-entry {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 5px;
  margin: 0 0 17px;
}

.item-number { color: var(--faint-ink); }

h3 {
  text-shadow: .32px 0 currentColor;
  line-height: 1.6;
  margin: 0 0 5px;
  letter-spacing: .015em;
}

.work-entry p { margin-bottom: 12px; }

.link-line { margin-top: 14px; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(40,39,31,.75);
}

a:hover { background: rgba(58,57,35,.085); }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  background: rgba(58,57,35,.085);
}

.notice-footer { margin-top: 25px; }

.notice-footer .type-rule { margin: 0 0 23px; }

.notice-footer p { margin-bottom: 7px; }

.end-note {
  margin: 25px 0 19px !important;
  text-align: center;
  font-size: .87em;
  letter-spacing: .12em;
}

.fine-print {
  font-size: .76em;
  text-align: center;
  color: var(--faint-ink);
  line-height: 1.5;
}

.board-caption {
  text-align: center;
  margin: 30px 0 0;
  color: rgba(241,231,206,.63);
  font-size: 11px;
  letter-spacing: .15em;
}

.board-caption span { padding-inline: 8px; }

@media (max-width: 540px) {
  body { font-size: 14px; line-height: 1.68; }
  .notice-board { padding: 37px 11px 19px; justify-content: flex-start; }
  .notice-mount { transform: rotate(-.25deg); }
  .paper { min-height: auto; padding: 46px 24px 34px; }
  .notice-header { margin-bottom: 29px; }
  .notice-details { font-size: .74em; }
  h1 { letter-spacing: .105em; }
  .strapline { font-size: .78em; }
  .body-copy { margin-bottom: 30px; }
  .board-caption { font-size: 9px; margin-top: 25px; }
}

@media (max-width: 340px) {
  .paper { padding-left: 16px; padding-right: 16px; }
  h1 { letter-spacing: .055em; }
  .eyebrow { letter-spacing: .13em; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: white !important; }
  body { font-size: 12px; }
  .notice-board { display: block; min-height: 0; padding: 0; background: none; }
  .notice-mount { width: 100%; transform: none; filter: none; }
  .paper { min-height: 297mm; padding: 24mm 23mm; background: white; box-shadow: none; }
  .pin, .board-caption { display: none; }
  a { color: inherit; }
}
