/* Core palette + typography */
:root{
  --bg: #f7f5f1;
  --text: #222;
  --muted: rgba(34,34,34,0.72);
  --link: rgba(34,34,34,0.86);
  --linkHover: rgba(34,34,34,1);
  --hairline: rgba(34,34,34,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* REQUIRED EXACT STRUCTURE */
body {
  background-image:
    linear-gradient(rgba(247,245,241,0.90), rgba(247,245,241,0.90)),
    url('background_dialogue_soft.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body{
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
}

a{
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover, a:focus-visible{
  color: var(--linkHover);
  text-decoration: underline;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

header{
  padding: 10px 0 22px;
}

.topnav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--hairline);
}
.brand{
  margin-right: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.topnav a{
  padding: 2px 0;
}

.kicker{
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

h1{
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  margin: 20px 0 8px;
  letter-spacing: 0.2px;
}

h2{
  font-size: 1.15rem;
  margin: 46px 0 10px;
  letter-spacing: 0.1px;
}

.dialogue{
  margin: 34px 0 0;
}

.turn{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  align-items: start;
  margin: 18px 0 26px;
}

.voice{
  padding: 0;
}

.voice .who{
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.voice .line{
  font-size: 1.06rem;
  margin: 0;
}

.voice.right{
  margin-top: 10px; /* intentional asymmetry */
}

.soft-rule{
  height: 1px;
  background: var(--hairline);
  width: 68%;
  margin: 34px 0 18px;
}

/* Dashboard fragments list (strict: no cards, no grid, no boxes) */
.fragments{
  margin: 20px 0 0;
  padding: 0;
}

.fragment{
  margin: 10px 0 22px;
}

.fragment:nth-child(3n){
  margin-top: 18px; /* uneven spacing allowed */
}

.fragment a{
  display: inline-block;
  max-width: 78ch;
}

.fragment .title{
  display: block;
  font-size: 1.06rem;
}

.fragment .note{
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.fragment a:hover .note{
  opacity: 0.82;
}

main{
  padding-top: 12px;
}

.article-meta{
  color: var(--muted);
  margin: 10px 0 0;
}

.prose{
  max-width: 78ch;
  margin-top: 18px;
}
.prose p{
  margin: 0 0 14px;
}
.prose p.tight{
  margin-bottom: 10px;
}

.related{
  margin-top: 34px;
}
.related a{
  display: block;
  margin: 8px 0;
  max-width: 78ch;
}

.backlink{
  margin-top: 20px;
}

.contact-block{
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  max-width: 78ch;
}
.contact-block strong{
  color: var(--text);
  font-weight: 600;
}

/* Gentle fade-in (minimal JS triggers .in) */
.fade{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade.in{
  opacity: 1;
  transform: translateY(0);
}

/* Small screens */
@media (max-width: 720px){
  .turn{
    grid-template-columns: 1fr;
  }
  .voice.right{
    margin-top: 0;
    padding-left: 12px; /* subtle offset */
  }
  .soft-rule{
    width: 86%;
  }
}

