/* The Safehouse. A sheet of paper pinned to a dark wall: typed notes, rubber stamps, taped notices.
   System fonts only, no outside files. */
:root {
  --wall: #1c1d18;
  --paper: #e8e0cc;
  --paper-2: #ddd3bb;
  --ink: #23211c;
  --ink-soft: #4d483d;
  --rust: #9a3418;
  --olive: #4b5a31;
  --tape: rgba(222, 210, 170, .72);
  --bone: #ece4d2;
  --amber: #ffb347;
  --typed: "Courier New", Courier, "Nimbus Mono PS", "Liberation Mono", monospace;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --heavy: "Franklin Gothic Heavy", "Franklin Gothic Demi Cond", "Arial Black", "Helvetica Neue", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--wall) url("/static/wall.svg"); overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 1.06rem/1.6 var(--body); }
.defs { position: absolute; }
a { color: var(--rust); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px dashed var(--rust); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--paper); padding: .4rem .7rem; }

/* ---- the wall ---- */
.wall-top, .wall-bottom { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; color: var(--bone); }
.wall-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem;
  padding-top: 1.2rem; padding-bottom: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--bone); text-decoration: none;
  font: 1.15rem var(--heavy); text-transform: uppercase; letter-spacing: .06em; }
.brand:hover { color: var(--bone); }
.brand img { width: 2.1rem; height: auto; }
.wall-top ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin: 0; padding: 0; list-style: none; font: .95rem var(--typed); }
.wall-top nav a { color: #c9c1ad; text-decoration: none; }
.wall-top nav a:hover { color: var(--bone); text-decoration: underline; }
.wall-top nav a[aria-current="page"] { color: var(--amber); text-decoration: underline; text-decoration-thickness: 2px; }

.wall-bottom { padding-top: 1.4rem; padding-bottom: 3rem; font: .8rem/1.55 var(--typed); color: #a8a291; }
.wall-bottom p { margin: .45rem 0 0; max-width: 50rem; }
.footer-links { font-size: .92rem; color: #77725f; }
.footer-links a { color: var(--bone); }

/* ---- the sheet ---- */
.sheet {
  display: block; position: relative;
  max-width: 62rem; margin: 0 auto;
  padding: 2.6rem clamp(1.2rem, 5vw, 4rem) 3.5rem;
  background: var(--paper) url("/static/paper.svg");
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.55), inset 0 0 70px rgba(120, 92, 48, .22);
}
/* two pins */
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: .8rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9d4c8, #6b675c 60%, #2d2b25);
  box-shadow: 1px 2px 2px rgba(0,0,0,.4);
}
.sheet::before { left: 1rem; }
.sheet::after { right: 1rem; }

h1, h2, h3 { font-family: var(--heavy); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); margin: 0 0 .9rem; filter: url(#worn); }
h2 { font-size: 1.5rem; margin: 0 0 .7rem; filter: url(#worn); }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--rust); }
p { margin: 0 0 1rem; }
code, .typed { font-family: var(--typed); font-size: .95em; }
code { background: rgba(35, 33, 28, .07); padding: 0 .25em; }
.muted { color: var(--ink-soft); }

.intro { font-size: 1.2rem; max-width: 40rem; }
.discord-link {
  display: inline-block; margin: .3rem 0 .4rem; padding: .55rem 1rem .5rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 1.05rem var(--heavy); text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 3px 3px 0 var(--rust);
}
.discord-link:hover { color: var(--paper); background: var(--rust); box-shadow: 3px 3px 0 var(--ink); }

/* ---- taped notices ---- */
.notices { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; margin: 2.4rem 0 1rem; }
.notice {
  position: relative; padding: 1.6rem 1.4rem 1.2rem;
  background: #f1ebdc url("/static/paper.svg");
  box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 10px 18px -8px rgba(0,0,0,.25);
  transform: rotate(-.7deg);
}
.notice + .notice { transform: rotate(.9deg); margin-top: .8rem; }
.notice::before {
  content: ""; position: absolute; top: -.7rem; left: 50%; width: 6.5rem; height: 1.5rem;
  transform: translateX(-50%) rotate(-2deg); background: var(--tape);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.notice + .notice::before { transform: translateX(-40%) rotate(3deg); }
.notice h2 { font-size: 2rem; padding-right: 5.5rem; }
.notice .more { font-family: var(--typed); font-weight: 700; }

.stamp {
  position: absolute; top: 1.1rem; right: 1rem;
  padding: .15rem .55rem; border: 3px solid currentColor; border-radius: 4px;
  color: var(--rust); font: 1.25rem var(--heavy); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(8deg); opacity: .85; filter: url(#stamp);
}
.stamp.olive { color: var(--olive); transform: rotate(-6deg); }
.page-head { position: relative; max-width: 44rem; }
.page-head .stamp { top: .2rem; right: -9rem; font-size: 1.5rem; }

/* ---- typed facts ---- */
.facts { margin: 0 0 1rem; font-family: var(--typed); font-size: .95rem; }
.facts div { display: flex; gap: .6rem; padding: .3rem 0; border-bottom: 1px dotted rgba(35, 33, 28, .35); }
.facts dt { flex: 0 0 9.5rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2rem; }
section + section { margin-top: 2.2rem; }

/* ---- lists ---- */
.steps { margin: 0; padding-left: 1.6rem; }
.steps > li { margin-bottom: .8rem; padding-left: .3rem; }
.steps > li::marker { font: 700 1.05rem var(--typed); color: var(--rust); }
.rules { margin: 0; padding-left: 1.8rem; }
.rules li { margin-bottom: .55rem; padding-left: .2rem; }
.rules li::marker { font: 1.05rem var(--heavy); color: var(--rust); }
.plain { margin: 0 0 1rem; padding-left: 1.2rem; list-style: square; }
.plain li { margin-bottom: .45rem; }
.plain li::marker { color: var(--rust); }
hr { border: 0; border-top: 2px solid var(--ink); margin: 2.4rem 0 1.6rem; opacity: .7; filter: url(#worn); }

/* ---- live status: a typed line ---- */
.status { margin: .2rem 0 .8rem; font: .92rem/1.5 var(--typed); }
.status .pill { font-weight: 700; text-transform: uppercase; }
.status .dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .4rem; vertical-align: -.02rem;
  background: #8a8474; border: 1px solid var(--ink); }
.status .detail { margin-left: .5rem; color: var(--ink-soft); }
.status .detail::before { content: "/ "; }
.status[data-state="up"] .dot { background: #5f8a3a; }
.status[data-state="up"] .pill { color: #3f6324; }
.status[data-state="updating"] .dot, .status[data-state="checking"] .dot { background: #d9952b; }
.status[data-state="updating"] .pill { color: #9a5a0c; }
.status .badge { margin-left: .5rem; padding: 0 .35rem; border: 2px solid var(--rust); color: var(--rust);
  font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.status .note { display: block; margin-top: .3rem; color: var(--rust); }
.address { margin: 0 0 .9rem; font: 700 1.05rem var(--typed); }

/* ---- small screens ---- */
@media (max-width: 760px) {
  .notices, .columns { grid-template-columns: 1fr; }
  .notice + .notice { margin-top: 0; }
  .notice h2 { font-size: 1.7rem; }
  .stamp { font-size: 1rem; }
  .page-head .stamp { position: static; display: inline-block; margin-bottom: .8rem; }
  .facts div { flex-direction: column; gap: 0; }
  .facts dt { flex: none; }
  .sheet::before, .sheet::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.columns > section { margin-top: 0; }
