html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

* { box-sizing: border-box; }

body {
  color: #1e1e1e;
  font: bolder 8pt 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 2px;
}

/* CONTENT AREA — the whole page. no navbar here, the way back is the
   back-to-room button (css/back-to-room.css) */
.content-area {
  min-height: 100vh;
  background: #f7f1e2;
  background-image: url("../images/patternsbg/yellowtiles2.jpg");
  background-size: 39% auto;
  background-repeat: repeat;
  padding: clamp(20px, 4vw, 56px);
}

/* HERO */
.links-hero {
  position: relative;
  background: #f7f1e2;
  padding: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 36px);
  display: inline-block;
}

.links-hero .clip {
  position: absolute;
  top: -34px;
  right: 24px;
  width: 84px;
  transform: rotate(8deg);
  filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.page-title {
  font-family: 'Jacquard 12', sans-serif;
  font-weight: 400;
  /* font-size: clamp(32px, 4.5vw, 56px); */
  font-size: clamp(40px, 6vw, 72px);
  color: #2f34ad;
  margin: 0 0 0.2em;
  letter-spacing: 1px;
}

.links-intro {
  margin: 0;
  font-size: 10.5pt;
  line-height: 1.6;
  max-width: 46ch;
}

/* CATEGORY CARDS */
/* Multi-column flow instead of a grid: a grid would size every row to
   its tallest box, leaving big gaps under short ones (e.g. "cool
   people" next to "curiosities"). Columns let each box pack directly
   under the next-shortest one instead. */
.links-sections {
  columns: 320px 2;
  column-gap: clamp(16px, 2vw, 28px);
}

.link-category {
  background: #f7f1e2;
  /* border: 2px solid #1e1e1e; */
  padding: clamp(16px, 2.5vw, 28px);
  line-height: 1.5;
  break-inside: avoid;
  margin: 0 0 clamp(16px, 2vw, 28px);
}

/* the clickable header — collapsed by default, click to expand */
.link-category summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.6em;
}

.link-category summary::-webkit-details-marker {
  display: none;
}

.link-category .cat-title {
  font-family: 'Jacquard 12', sans-serif;
  font-weight: 400;
  color: #2f34ad;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 1px;
}

/* +/- indicator, flips to a dash when open */
.link-category summary::after {
  content: "+";
  position: absolute;
  right: 0.1em;
  top: 50%;
  transform: translateY(-50%);
  font: bold 16px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2f34ad;
}

.link-category[open] summary::after {
  content: "\2212"; /* minus sign */
}

.link-category[open] summary {
  margin-bottom: 0.6em;
}

.cat-body {
  animation: fade-in 0.15s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.category-note {
  margin: 0 0 0.8em;
  font-style: italic;
  font-size: 9pt;
  color: #6b5c45;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 9.5pt;
}

.link-list li {
  margin-bottom: 0.7em;
  padding-left: 1em;
  text-indent: -1em;
}

.link-list-compact li {
  margin-bottom: 0.35em;
}

.link-list a {
  color: #c1502f;
  font-weight: bold;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list .desc {
  display: block;
  margin-left: 1em;
  font-weight: normal;
  color: #1e1e1e;
}

.link-list a + .desc {
  display: inline;
  margin-left: 0.4em;
}

/* items without a confirmed URL yet — styled distinctly so they read
   as "not a link" rather than a dead click */
.pending {
  font-weight: bold;
  color: #6b5c45;
  border-bottom: 1px dotted #6b5c45;
}
