* { box-sizing: border-box; }

/* ======================
   VARIABLES
====================== */
:root{
  --bg:#fafafa;
  --text:#111;
  --muted:#666;
  --rule:#8d8d8d;

  --max: 680px;
  --log-max: 1100px;

  --serif: "Libre Baskerville", serif;
  --sans: "Inter", sans-serif;
}

/* ======================
   BASE
====================== */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.80rem;
  line-height: 1.6;
}

/* ======================
   MAIN (NARROW CONTENT)
====================== */
main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 48px;
}

/* ======================
   HERO HEADER
====================== */
header.hero{
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  margin-bottom: 18px;
}

.hero-media img{
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.hero-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-top{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

h1{
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.subtitle{
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.hero-line{
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: #2d2c2c;
}

.header-socials{
  display: flex;
  gap: 1px;
}

.header-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  text-decoration: none;
}

.header-social .icon{
  width: 70%;
  height: 70%;
  border: 0.8px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
}

.header-social:hover .icon{
  border-color: var(--text);
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ======================
   SECTION TITLES
====================== */
h2{
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin: 0 0 14px;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

/* ======================
   DIVIDERS
====================== */
hr{
  border: none;
  border-top: 1px solid var(--rule);
  margin: 26px 0;
}

/* ======================
   RULES
====================== */
.rules ol{
  padding-left: 18px;
  margin: 0;
}

.rules li{
  margin: 8px 0;
}

.rules{
  margin-bottom: 25px;
}

/* ======================
   LOG � WIDE CONTAINER
====================== */
.log-wide{
  max-width: var(--log-max);
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ======================
   LOG GRID
====================== */
#log-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* tablet */
@media (min-width: 700px){
  #log-list{
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* desktop */
@media (min-width: 1100px){
  #log-list{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================
   LOG ENTRIES
====================== */
.log .entry{
  margin: 0;
}

.date{
  font-family: var(--sans);
  color: #777;
  font-size: 12px;
  margin: 0 0 10px;
}

.entry p{
  margin: 0.35rem 0;
}

.entry strong{
  font-family: var(--sans);
  font-weight: 600;
}

.reflection{
  color: #333;
}

/* ======================
   LINKS
====================== */
a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover{
  text-decoration-thickness: 2px;
}

.back-link{
  text-decoration: none;
}

.back-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ======================
   RESPONSIVE HERO
====================== */

@media (max-width: 700px){
  header.hero{
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .hero-body{
    align-items: flex-start;
    min-width: 0;
  }
  .hero-top{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero-media img{
    width: 70px;
    height: 70px;
  }
  h1{
    font-size: 23.5px;
  }
  .subtitle,
  .hero-line{
    font-size: 13px;
  }
  .header-socials{
    gap: 0px;
  }
  .header-social{
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 520px){
  .hero-media img{
    width: 64px;
    height: 64px;
  }
  .hero-top{
    gap: 8px;
  }
  .header-socials{
    gap: 0px;
  }
  h1{
    font-size: 21.6px;
  }
  .subtitle,
  .hero-line{
    font-size: 12px;
  }
  .header-social{
    width: 24px;
    height: 24px;
  }
}
/* ======================
   FINISHED DETAILS 
   ====================== */
details.finished { margin: 24px 0; }
details.finished summary { cursor: pointer; font-weight: 00; }
details.finished .finished-body { margin-top: 12px; }
details.finished p { margin: 6px 0; }

