*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #05070e;
  --surface:   #090c18;
  --border:    rgba(80,120,190,0.12);
  --border2:   rgba(80,120,190,0.07);
  --blue:      #7db8d8;
  --blue-dim:  #4a7a9e;
  --silver:    #b8c8d8;
  --silver-dim:#6a7e90;
  --amber:     #c4975c;
  --amber-dim: #7a5a32;
  --text:      #96b4cc;
  --text-dim:  #5e82a0;
  --text-mute: #2a3f55;
  --white:     #dce8f2;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--silver); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--silver-dim); border-radius: 3px; }

/* page shell */
#page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  animation: fadeUp .65s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* nav */
#topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #7090ae;
  padding: 4px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color .2s;
}
.nav-links a .ph { font-size: 12px; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--silver);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: calc(100% - 22px); }
.nav-links a.active { color: var(--silver); }

.nav-deco {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin-left: 18px;
}
.nav-deco .sparkle { font-size: 14px; color: var(--amber); flex-shrink: 0; }
.nav-deco .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(196,151,92,0.45), rgba(196,151,92,0.04));
}

/* header image */
#header {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.h-bg {
  position: absolute; inset: 0;
  background: url(img/dain_head.png) center/cover no-repeat;
}

/* title row */
#title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 46px;
}
#title-row .line {
  flex: 1; height: 1px;
  background: linear-gradient(270deg, rgba(196,151,92,0.45), rgba(196,151,92,0.04));
}
#title-row .sparkle { font-size: 13px; color: var(--amber); flex-shrink: 0; line-height: 1; }
#title-row h1 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  letter-spacing: .01em;
  white-space: nowrap;
}

/* content */
#content {
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.sec-head::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}
.sec-head span {
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--silver);
}

/* welcome */
.welcome h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}
.welcome h2 em { color: var(--amber); font-style: italic; }
.welcome p { font-size: 13.5px; color: var(--text); margin-bottom: 10px; }

/* stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .2s;
}
.stat-box:hover { border-color: rgba(80,140,210,0.2); }
.stat-icon { font-size: 17px; color: var(--blue-dim); margin-bottom: 4px; }
.stat-num {
  font-family: var(--serif);
  font-size: 1.95rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* updates */
.updates-list { list-style: none; }
.update-row {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border2);
  align-items: start;
}
.update-row:last-child { border-bottom: none; }
.update-date {
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--silver-dim);
  text-transform: uppercase;
  padding-top: 3px;
  display: flex; align-items: center; gap: 5px;
}
.update-text { font-size: 13px; color: var(--text); }
.update-text strong { color: var(--white); font-weight: 400; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; margin-left: 5px;
}
.tag.pending { color: var(--amber); border: 1px solid rgba(196,151,92,0.25); background: rgba(196,151,92,0.07); }
.tag.done    { color: var(--silver); border: 1px solid rgba(184,200,216,0.2); background: rgba(184,200,216,0.06); }

/* affiliates */
.aff-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.aff-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 4px 13px;
  border-radius: 30px;
  transition: color .2s, border-color .2s;
}
.aff-pill .ph { font-size: 11px; color: var(--amber-dim); }
.aff-pill:hover { color: var(--white); border-color: rgba(196,151,92,0.3); }

/* footer */
#footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--amber-dim), transparent);
}
.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 7px;
  flex-wrap: wrap;
}
.footer-copy .ph { color: var(--amber-dim); font-size: 12px; }
.footer-copy b { color: var(--silver-dim); font-weight: 400; }
.footer-links {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
}
.footer-links a {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
}
.footer-links a:hover { color: var(--silver); }

@media (max-width: 580px) {
  #page { padding: 20px 16px 48px; }
  .nav-deco { display: none; }
  .update-row { grid-template-columns: 1fr; gap: 3px; }
  #header { height: 200px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}