@charset "UTF-8";
@font-face {
  font-family: charter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.l1uv.de/charter/regular.woff2") format("woff2");
}
@font-face {
  font-family: charter;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.l1uv.de/charter/italic.woff2") format("woff2");
}
@font-face {
  font-family: charter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://fonts.l1uv.de/charter/bold.woff2") format("woff2");
}
@font-face {
  font-family: charter;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("https://fonts.l1uv.de/charter/bold-italic.woff2") format("woff2");
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  border: 0;
  padding: 0;
}

:root {
  --bg-color: #f7f1e5;
  --bg-surface: #efe7d6;
  --text-main: #2e261f;
  --text-muted: #807164;
  --accent: #b4691e;
  --accent-light: rgba(180, 105, 30, 0.12);
  --border-color: rgba(60, 40, 20, 0.12);
  --shadow-sm: 0 2px 8px rgba(46, 38, 31, 0.05);
  --shadow-md: 0 8px 24px rgba(46, 38, 31, 0.08);
}

html {
  background-color: var(--bg-color);
  font-family: charter, Georgia, Cambria, serif;
  font-size: 19px;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
a:active {
  transform: scale(0.97);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

article {
  max-width: 680px;
  margin: 0 auto;
  padding: 25px 45px 300px;
}
article h1 {
  margin-bottom: 2rem;
}
article p {
  font-size: 1.05rem;
  line-height: 1.6;
  /* letter-spacing: 0.01em; */
  margin-bottom: 1.75rem;
  color: var(--text-main);
  /* Subtle Drop Cap on the First Paragraph */
}
article p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  font-weight: 700;
  color: var(--accent);
}
article {
  /* ==========================================================================
   Navigation (Pill Chips)
   ========================================================================== */
}
article .paging {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}
article .paging.top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
article .paging.bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  margin-top: 3.5rem;
}
article .paging a {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid transparent;
}
article .paging a:hover {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(180, 105, 30, 0.2);
}
article .ss {
  margin: 2.2rem 0;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
article .ss[open] {
  box-shadow: var(--shadow-md);
}
article .ss[open] summary::after {
  transform: rotate(180deg);
}
article .ss summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 1rem;
  color: #6a5d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background-color 0.2s ease;
}
article .ss summary::-webkit-details-marker {
  display: none;
}
article .ss summary:hover {
  background-color: var(--accent-light);
}
article .ss summary {
  /* Visual toggle chevron beside emoji */
}
article .ss summary::after {
  content: "▾";
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
article .ss img {
  width: 100%;
  object-fit: cover;
  border-top: 1px solid var(--border-color);
}

#floating-hl-btn {
  position: absolute;
  display: none;
  z-index: 9999;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -100%);
  white-space: nowrap;
  user-select: none;
}
#floating-hl-btn:hover {
  background: #f3f4f6;
}

#hl-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 6px 12px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
  text-align: center;
  color: #fff;
  background: #1e293b;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
}
#hl-status-bar.loading {
  display: block;
  background: #0284c7;
}
#hl-status-bar.success {
  display: block;
  background: #16a34a;
}
#hl-status-bar.error {
  display: block;
  background: #dc2626;
}

#hls-list {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#hls-list .hls-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
}
#hls-list .hls-anchor {
  flex-grow: 1;
  text-decoration: none;
  color: var(--text-main);
  line-height: 1.4;
}
#hls-list .hls-anchor:hover .hls-quote {
  color: var(--accent);
}
#hls-list .hls-quote {
  font-style: italic;
}
#hls-list .hls-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#hls-list .hls-del-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

mark.hls {
  background-color: rgba(209, 150, 1, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

::highlight(hls) {
  background-color: #fef08a;
  background-color: rgba(209, 150, 1, 0.3);
  color: inherit;
}

#comment-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#comment-form textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#comment-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
#comment-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
#comment-form .btn-con {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#comment-form .btn-con button {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
#comment-form .btn-con button:hover {
  background-color: var(--accent-light);
  transform: translateY(-1px);
}
#comment-form .btn-con button:active {
  transform: translateY(1px);
}
#comment-form .status {
  font-size: 0.85rem;
  color: var(--accent);
  text-align: right;
}

#comments-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#comments-list .comment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 8px 14px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}
#comments-list .comment-card:last-child {
  border-bottom: none;
}
#comments-list .comment-text {
  color: var(--text-main);
}
#comments-list .comment-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#comments-list .comment-del-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

#issue-form {
  margin-top: 3rem;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
#issue-form textarea {
  width: 100%;
  height: 90px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#issue-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
#issue-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
#issue-form .btn-con {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#issue-form .btn-con button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
#issue-form .btn-con button:hover {
  background-color: var(--accent-light);
  border-color: rgba(180, 105, 30, 0.3);
  transform: translateY(-1px);
}
#issue-form .btn-con button:active {
  transform: translateY(1px);
}
#issue-form pre {
  margin-top: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 1000px) {
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #eee7d8;
  }
  /* Main wrapper centered on the screen */
  article {
    position: relative;
    width: 900px;
    /* 400px (image) + 500px (text) */
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background-color: var(--bg-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-height: 100vh;
  }
  /* ----------------------------------------------------
   LEFT COLUMN: Fixed Image (Locks to screen)
   ---------------------------------------------------- */
  article .ss:first-of-type {
    position: fixed;
    /* Locks the image in place */
    top: 0;
    width: 400px;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    display: flex !important;
    /* Centers image neatly */
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    /* Prevents image from scrolling */
    z-index: 10;
  }
  article .ss:first-of-type summary {
    display: none;
    /* Hides the fold toggle button */
  }
  article .ss:first-of-type img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keeps entire image visible without distortion */
    border: none;
    margin: 0;
  }
  /* Hide the duplicate inline screenshot on desktop */
  article .ss:not(:first-of-type) {
    display: none;
  }
  /* ----------------------------------------------------
   RIGHT COLUMN: 500px Text Stream (Scrolls with page)
   ---------------------------------------------------- */
  article > :not(.ss) {
    width: 500px;
    margin-left: 400px;
    /* Clears the fixed 400px image on the left */
    padding-left: 35px;
    padding-right: 35px;
  }
  article .paging.top {
    margin-top: 0;
    padding-top: 25px;
  }
  article form {
    margin-bottom: 80px;
  }
}
