*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #000000;
  --text:    #bdbdbd;
  --dim:     #686868;
  --hi:      #e6e6e6;
  --link:    #56c8ff;
  --border:  #242424;
  --mono: "Menlo","Consolas","DejaVu Sans Mono","Liberation Mono","Courier New",monospace;
  --heat-0: #161b22;
  --heat-1: #0e4429;
  --heat-2: #006d32;
  --heat-3: #26a641;
  --heat-4: #39d353;
}

html { font-size: 14px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0 0 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #8a7fdf; }

/* HEADER */
header {
  padding-bottom: 14px;
  margin-bottom: 28px;
}
header .name { font-size: 1rem; color: var(--hi); display: block; margin-bottom: 4px; }
header .tagline { color: var(--dim); font-size: 0.85rem; }
header nav { margin-top: 10px; font-size: 0.94rem; color: var(--dim); }
header nav a {
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}
header nav a:hover { text-decoration: underline; }
header nav a.active { color: var(--hi); text-decoration: underline; }
header nav span { margin: 0 5px; color: var(--border); }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* LABEL */
.label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  margin-bottom: 14px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.94rem;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 40px;
}
footer a,
footer a:visited { color: var(--link); }
footer a:hover { color: var(--hi); text-decoration: underline; }

/* NOW */
.now-line {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.8rem;
}
.now-line:last-child { border-bottom: none; }
.now-key { color: var(--dim); min-width: 130px; flex-shrink: 0; }
.now-val { color: var(--text); }

/* WRITING */
.entry { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.entry:last-child { border-bottom: none; }
.entry-title a { color: var(--hi); }
.entry-title a:hover { color: var(--link); text-decoration: underline; }
.entry-title a:visited { color: var(--hi); }
.entry-meta { color: var(--dim); font-size: 0.78rem; margin-top: 2px; }
.entry-desc { color: var(--text); margin-top: 4px; font-size: 0.84rem; line-height: 1.55; }

/* NOTES */
.note { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.855rem; }
.note:last-child { border-bottom: none; }
.note-line {
  font-size: smaller;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  
}
.note-line:last-child { border-bottom: none; }
.note-link {
    text-decoration: none;
    font-size: 1.2em;
    line-height: 1;
    margin-left: 0.1rem;  
}
.note-link:hover { color: var(--link); text-decoration: underline; }

.notes-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.notes-table th,
.notes-table td {
    text-align: left;
    padding: 4px 0;
    vertical-align: top;
    font-size: 0.9rem;
}

.notes-table th {
    color: #27403f;
    font-weight: 10;
}

.notes-table th:nth-child(1),
.notes-table td:nth-child(1) {
    width: 180px;
}

.notes-table th:nth-child(2),
.notes-table td:nth-child(2) {
    width: auto;
    padding-right: 30px;
}

.notes-table th:nth-child(3),
.notes-table td:nth-child(3) {
    width: 110px;
    white-space: nowrap;
}

.notes-table a {
    color: var(--link);
    text-decoration: underline;
}

/* COMMONPLACE */

.quote-block {
  padding: 9px 0 9px 14px;
  font-size: 0.875rem;
}
.quote-text { color: var(--text); font-style: italic; line-height: 1.65; }
.quote-src  { color: var(--dim); font-size: 0.78rem; margin-top: 5px; font-style: normal; }
.quote-src span { color: var(--link); }

/* READING */

.book-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.book-cover {
  width: 90px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.book-info {
  flex: 1;
}

.book-title {
  color: var(--hi);
  font-size: 0.92rem;
}

.book-author {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 2px;
}

.book-status {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ME (formerly about) */
.ME-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  max-width: 860px;
  margin: 0 auto;
}
.ME-text p + p { margin-top: 12px; }

/* blog (formerly ME) */
.blog-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  max-width: 540px;
  margin: 0 auto;
}
.blog-text p + p { margin-top: 12px; }


/* PICTURE */

.ME-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 8px 0 8px;
  filter: grayscale(100%);
}

.blog-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 8px 0 24px;
}

.writes-avatar {
  align-items: center;
  width: 400px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 8px 0 24px;
}

details {
  margin-top: 8px;
}

summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

summary::before {
    content: "";
}

details[open] summary {
  margin-bottom: 10px;
}

.essay {
  font-size: 14px;
  padding: 1px 0;
}

.essay[open] .entry-title {
    color: var(--link); /* your blue */
}

.essay summary {
  list-style: none;
  cursor: pointer;
}

.entry-title {
  display: block;
  color: var(--hi);
  margin-bottom: 2px;
}

.entry-title a {
    color: var(--hi);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--link);
    text-decoration: none;
}

.entry-meta {
    color: var(--dim);
    text-decoration: none;
    cursor: default;
}

.entry-meta a{
    color: var(--link);
    text-decoration: none;
    cursor: default;
}

.entry-content {
  margin-top: 10px;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.connect-links {
  font-size: 12px;
  margin: 20px 0 0;
  color: var(--dim);
}

.connect-links a {
  color: var(--link);
  text-decoration: none;
}

.connect-links a:hover {
  color: var(--hi);
}

.pins-gallery {
    column-count: 3;
    column-gap: 20px;
}

.pins-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.pins-item img {
    width: 100%;
    display: block;
}

.pins-item figcaption {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--dim);
}

/* Inline Term Popovers */
.term {
  position: relative;
  border-bottom: 1px dotted var(--link);
  cursor: help;
  color: var(--hi);
}

.term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.76rem;
  font-family: var(--mono);
  font-weight: normal;
  border-radius: 4px;
  width: 250px;
  white-space: normal;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.term:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.clock-arrow-prev:hover,
.clock-arrow-next:hover {
  color: var(--link) !important;
}

/* EMAIL SUBSCRIPTION COMPONENT */
.subscribe-section {
  margin: 32px auto 0;
  max-width: 420px;
  text-align: center;
}

.subscribe-desc {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 12px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.subscribe-input {
  width: 100%;
  max-width: 380px;
  background: var(--input-bg, #0a0a0a);
  border: 1px solid var(--border);
  color: var(--hi);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.85rem;
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 1px var(--link);
}

.subscribe-input::placeholder {
  color: var(--dim);
}

.subscribe-btn {
  background: transparent;
  color: var(--link);
  border: none;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.subscribe-btn:hover {
  color: var(--hi);
  background: transparent;
  text-decoration: none;
}

.subscribe-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.subscribe-status {
  font-size: 0.82rem;
  margin-top: 10px;
  display: none;
  line-height: 1.4;
  text-align: center;
  max-width: 440px;
}

.subscribe-status.show {
  display: block;
}

.subscribe-status.success {
  color: #39d353;
}

.subscribe-status.error {
  color: #ff5f56;
}

.subscribe-meta {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--dim);
}

.subscribe-meta a {
  color: var(--link);
}


