/* direnzi.net — shared stylesheet
   One source of truth for the whole site. Add page-specific rules at the bottom
   under a clearly labelled section, or in a new file linked after this one. */

:root{
  --purple:        #6B21A8;
  --purple-bright: #8B3FD4;
  --purple-faint:  #F3EDFA;
  --line:          #E2E2E7;
  --line-soft:     #EFEFF2;
  --ink:           #1B1B1F;
  --muted:         #71717A;
  --bg:            #FFFFFF;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}

.wrap{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:0 clamp(20px,4vw,56px);
}

/* ── Header: the D, and two light grey rules running out to the right ────── */

.site-header{
  display:flex;
  align-items:stretch;
  gap:clamp(16px,3vw,44px);
  padding-top:clamp(14px,3vh,34px);
}

.brand{
  flex:0 0 auto;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(68px,12vmin,142px);
  line-height:.84;
  letter-spacing:-.02em;
  color:var(--purple);
  text-decoration:none;
  transition:color .18s ease;
}
.brand:hover,.brand:focus-visible{color:var(--purple-bright)}

.masthead{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rule{
  height:1px;
  background:var(--line);
  border:0;
  margin:0;
}
.rule--soft{background:var(--line-soft)}

.nav{
  display:flex;
  align-items:center;
  gap:clamp(20px,3.4vw,48px);
  padding:15px 2px;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}

.nav a{
  display:inline-block;
  white-space:nowrap;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  text-decoration:none;
  transform-origin:left center;
  transition:transform .2s cubic-bezier(.2,.7,.3,1), color .2s ease;
}
.nav a:hover,
.nav a:focus-visible{
  transform:scale(1.22);
  color:var(--purple);
  outline:none;
}
.nav a[aria-current="page"]{color:var(--purple)}

/* the nav band is empty-safe: with no links the two rules still read as a band */
.nav:empty{padding:15px 0}

/* ── Page body ───────────────────────────────────────────────────────────── */

.page{padding-top:clamp(40px,8vh,96px);padding-bottom:clamp(60px,12vh,140px);flex:1 0 auto}

.page-title{
  font-family:var(--serif);
  font-size:clamp(30px,4.4vw,46px);
  font-weight:700;
  letter-spacing:-.015em;
  margin:0 0 6px;
}
.page-sub{
  margin:0 0 clamp(28px,5vh,48px);
  color:var(--muted);
  font-size:15px;
}

/* ── Lists (Ben's Games, and anything like it later) ─────────────────────── */

.list{
  list-style:none;
  margin:0;
  padding:0;
  max-width:680px;
  border-top:1px solid var(--line-soft);
}
.list > li{border-bottom:1px solid var(--line-soft)}

.list-item{
  display:flex;
  align-items:baseline;
  gap:16px;
  padding:18px 4px;
  text-decoration:none;
  color:inherit;
  transition:background .18s ease,padding-left .18s ease;
}
a.list-item:hover,
a.list-item:focus-visible{
  background:var(--purple-faint);
  padding-left:12px;
  outline:none;
}
.list-item::before{
  content:"";
  flex:0 0 auto;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--purple);
  transform:translateY(-3px);
}
.list-name{
  font-weight:650;
  font-size:17px;
  letter-spacing:-.005em;
}
a.list-item:hover .list-name{color:var(--purple)}
.list-note{
  color:var(--muted);
  font-size:14px;
}
.list-item--pending .list-name{color:var(--muted)}
.list-item--pending::before{background:var(--line)}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer{
  padding-top:22px;
  padding-bottom:34px;
  margin-top:auto;
  border-top:1px solid var(--line-soft);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
}

/* ── Small screens ───────────────────────────────────────────────────────── */

@media (max-width:600px){
  .site-header{gap:14px}
  .brand{font-size:clamp(54px,17vmin,88px)}
  .nav{gap:20px}
  .nav a{font-size:11.5px;letter-spacing:.14em}
}

@media (prefers-reduced-motion:reduce){
  .nav a,.list-item,.brand{transition:none}
  .nav a:hover,.nav a:focus-visible{transform:none;text-decoration:underline}
}
