/* Text-first, low-contrast, dusty, restrained */
:root{
  --bg: #f6f5f2;
  --text: #222;
  --muted: rgba(34,34,34,0.72);
  --faint: rgba(34,34,34,0.55);
  --line: rgba(34,34,34,0.14);
  --link: rgba(34,34,34,0.82);
  --linkHover: rgba(34,34,34,0.62);
  --max: 68ch;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.72;

  /* MANDATORY background implementation */
  background-image:
    linear-gradient(rgba(246,245,242,0.92), rgba(246,245,242,0.92)),
    url('background_clutter_soft.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* A gentle frame that never feels like a hero */
.wrap{
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

header{
  padding: 16px 0 10px;
}

.brand{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--faint);
}

nav{
  margin-top: 10px;
}

.navline{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}

.navline a{
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
}
.navline a:hover,
.navline a:focus{
  text-decoration: underline;
  opacity: 0.95;
}

main{
  padding-top: 14px;
}

h1, h2, h3{
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

h1{
  font-size: clamp(28px, 3vw, 38px);
  margin: 18px 0 10px;
}

h2{
  font-size: 18px;
  margin: 0 0 10px;
  color: rgba(34,34,34,0.92);
}

p{
  margin: 10px 0;
  max-width: var(--max);
}

.lede{
  color: var(--muted);
  max-width: var(--max);
}

/* Accumulation → release spacing system */
.stage{
  position: relative;
  padding-left: 8px;
  margin-left: 6px;
}
.stage::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(34,34,34,0.10);
}

.stage-normal{ margin-top: 20px; padding-top: 10px; padding-bottom: 18px; }
.stage-cluttered{ margin-top: 22px; padding-top: 10px; padding-bottom: 14px; }
.stage-overwhelming{
  margin-top: 18px;
  padding-top: 8px;
  padding-bottom: 10px;
}
.stage-overwhelming p{
  margin: 8px 0; /* denser */
}
.stage-cleared{
  margin-top: 34px;
  padding-top: 16px;
  padding-bottom: 28px;
}
.stage-cleared p{
  margin: 12px 0; /* lighter again */
}

/* Subtle fragment links, not a CTA */
.fragment{
  display: inline-block;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,34,34,0.22);
}
.fragment:hover{ border-bottom-color: rgba(34,34,34,0.38); opacity: 0.92; }

/* Dashboard list (text-only, vertical, uneven spacing) */
.dashboard{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dashboard h2{
  margin-bottom: 14px;
}
.items{
  display: block;
  max-width: var(--max);
}
.item{
  margin: 0;
}
.item + .item{ margin-top: 12px; }
.item:nth-child(2){ margin-top: 18px; }
.item:nth-child(3){ margin-top: 9px; }
.item:nth-child(4){ margin-top: 22px; }
.item:nth-child(5){ margin-top: 14px; }
.item:nth-child(6){ margin-top: 26px; }
.item:nth-child(7){ margin-top: 11px; }
.item:nth-child(8){ margin-top: 20px; }
.item:nth-child(9){ margin-top: 15px; }

.item a{
  display: inline-block;
  color: var(--link);
  text-decoration: none;
}
.item a:hover{ text-decoration: underline; opacity: 0.92; }

.item .title{
  display: block;
  font-size: 16px;
}
.item .note{
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* Final short lines */
.shortlines{
  max-width: var(--max);
  margin-top: 12px;
  color: rgba(34,34,34,0.86);
}
.shortlines .line{
  margin: 6px 0;
}

/* Contact block */
.contact{
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: var(--max);
}
.contact .label{
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-bottom: 8px;
}
.contact a{
  color: var(--link);
  text-decoration: none;
}
.contact a:hover{ text-decoration: underline; }

/* Article layout */
.article{
  max-width: var(--max);
  margin-top: 22px;
}
.article-title{
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 18px 0 8px;
}
.meta{
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.related{
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.related a{
  color: var(--link);
  text-decoration: none;
}
.related a:hover{ text-decoration: underline; opacity: 0.92; }
.related ul{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
.related li{
  margin: 8px 0;
}

.return{
  margin-top: 18px;
}
.return a{
  color: var(--link);
  text-decoration: none;
}
.return a:hover{ text-decoration: underline; opacity: 0.92; }

footer{
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  max-width: var(--max);
}

/* Gentle fade-in, nothing flashy */
.fade{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 700ms ease, transform 900ms ease;
}
.fade.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Small screens */
@media (max-width: 560px){
  .wrap{ padding: 22px 16px 56px; }
  .navline{ gap: 8px 12px; }
}
