/* TheIsland.report — one stylesheet. No framework, no animations, no tracking.
   White page, black text, blue underlined links, and nothing else. Same rules as
   Jim's.one: no cards, no shadows, no hero, no images in the chrome. */

:root {
  --paper:     #ffffff;
  --paper-2:   #f2f2f2;
  --text:      #000000;
  --muted:     #595959;
  --link:      #0000ee;
  --link-vis:  #551a8b;
  --rule:      #cccccc;
  --measure:   38rem;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.15em;
}
a:visited { color: var(--link-vis); }
a:hover, a:focus { text-decoration-thickness: 0.18em; }

/* --- header ------------------------------------------------------------- */

header.site {
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
}

/* The wordmark is text. It is the only bold thing on the page. */
header.site .brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
header.site .brand:hover { color: var(--link); text-decoration: underline; }

header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

/* --- the stream --------------------------------------------------------- */

/* One note, then the next. No boxes, no cards: a hairline and air. */
ol.notes { list-style: none; margin: 0; padding: 0; }

ol.notes > li {
  padding: 0 0 1.5rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px dashed var(--rule);
}
ol.notes > li:last-child { border-bottom: 0; }

.note-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 0.35rem;
}

.note-body { font-size: 1.05rem; }
.note-body p { margin: 0 0 0.75rem; }
.note-body p:last-child { margin-bottom: 0; }
.note-body ul, .note-body ol { margin: 0 0 0.75rem; padding-left: 1.3rem; }

.empty, .lede { color: var(--muted); }
.lede { margin-top: 0; }
.muted { color: var(--muted); font-weight: 400; }

.pager {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.pager .next { margin-left: auto; text-align: right; }

/* --- prose pages -------------------------------------------------------- */

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
main p { margin: 0 0 1rem; }

.crumb { font-size: 0.9rem; margin: 0 0 0.25rem; }

/* --- directory ---------------------------------------------------------- */

ul.cats { list-style: none; margin: 1.75rem 0 0; padding: 0; }
ul.cats > li {
  padding: 0 0 1.1rem;
  margin: 0 0 1.1rem;
  border-bottom: 1px dashed var(--rule);
}
ul.cats > li:last-child { border-bottom: 0; }
.cat-name { font-size: 1.1rem; }
.cat-count { color: var(--muted); font-size: 0.85rem; margin-left: 0.6rem; }
.cat-intro { margin: 0.3rem 0 0; font-size: 0.95rem; }

ul.biz { list-style: none; margin: 1.75rem 0 0; padding: 0; }
ul.biz > li {
  padding: 0 0 1.25rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px dashed var(--rule);
}
ul.biz > li:last-child { border-bottom: 0; }
.biz-name { font-weight: 700; margin: 0 0 0.2rem; }
.biz-desc { margin: 0 0 0.3rem; }
.biz-contact, .biz-address { margin: 0; font-size: 0.95rem; color: var(--muted); }
.biz-contact a { color: var(--link); }

.other-cats { margin-top: 2.5rem; font-size: 0.95rem; color: var(--muted); }

/* --- forms (login + admin) ---------------------------------------------- */

form.stack { display: flex; flex-direction: column; gap: 0.4rem; max-width: 100%; }
form.stack label { font-size: 0.9rem; color: var(--muted); }
form.stack input, form.stack textarea, form.compose textarea, fieldset {
  font: inherit;
  font-size: 1rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
}
form.stack input[type=checkbox] { padding: 0; width: auto; }
fieldset { border: 1px dashed var(--rule); padding: 0.75rem 1rem; margin: 0.5rem 0; }
fieldset legend { font-size: 0.9rem; color: var(--muted); padding: 0 0.35rem; }
label.check { display: block; font-size: 1rem; color: var(--text); margin: 0.15rem 0; }

button {
  font: inherit;
  font-size: 1rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--paper);
  cursor: pointer;
}
button:hover { background: #333; border-color: #333; }
button.danger { background: var(--paper); color: #a40000; border-color: #a40000; }
button.danger:hover { background: #a40000; color: var(--paper); }

form.compose { margin: 0 0 2.5rem; }
form.compose textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  margin: 0 0 0.75rem;
  resize: vertical;
}
form.inline { margin: 1.5rem 0 0; }
.admin-actions { display: flex; align-items: center; gap: 1rem; margin: 0.75rem 0 0; }
a.plain { color: var(--muted); }

.flashes { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.flash { font-size: 0.95rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--rule); }
.flash.error { color: #a40000; }

/* --- admin -------------------------------------------------------------- */

nav.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}

h2.admin-h { font-size: 1rem; margin: 2.5rem 0 1rem; padding-bottom: 0.35rem; border-bottom: 1px dashed var(--rule); }

ol.admin-notes { list-style: none; margin: 0; padding: 0; }
ol.admin-notes > li { padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px dashed var(--rule); }
.admin-note-text { margin: 0 0 0.25rem; }
.admin-note-meta { margin: 0; font-size: 0.82rem; color: var(--muted); }

ul.admin-list { list-style: none; margin: 1.25rem 0; padding: 0; }
ul.admin-list > li { padding: 0.45rem 0; border-bottom: 1px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; }
ul.admin-list .muted { font-size: 0.85rem; }
.badge { font-size: 0.75rem; border: 1px solid var(--rule); padding: 0 0.3rem; color: var(--muted); }

/* --- footer ------------------------------------------------------------- */

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.87rem;
  color: var(--muted);
}
footer.site p { margin: 0 0 0.5rem; }

/* --- phone -------------------------------------------------------------- */

@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 1.25rem 1rem 3rem; }
  header.site { align-items: flex-start; }
  header.site nav { justify-content: flex-start; }
  h1 { font-size: 1.45rem; }
  .pager { display: block; }
  .pager .next { text-align: left; margin-left: 0; margin-top: 0.4rem; }
}
