* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #fff;
  color: #000;
}

body {
  font-family: "Times New Roman", Times, serif;
}

/* ---------- Shared file explorer ---------- */

.file-rail {
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100vh;
}

.file-explorer {
  width: 100%;
  padding: 16px 14px 18px;
  border: 1px dotted #000;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 12pt;
  line-height: 1.15;
}

.file-row,
.folder-row {
  display: flex;
  align-items: center;
  min-height: 30px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.file-row span:last-child,
.folder-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row:hover {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d00000;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
  text-decoration-skip-ink: none;
}

.file-row.current {
  font-weight: 400;
}

.file-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.text-icon {
  margin-right: 7px;
}

.folder-icon {
  margin-right: 7px;
}

.disclosure-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  margin-right: 5px;
  flex: 0 0 auto;
}

.folder-children {
  margin-left: 19px;
}

.file-row.child {
  min-height: 28px;
  padding-left: 10px;
}

.tree-spacer {
  width: 0;
}

/* ---------- About / landing page ---------- */

.site-frame {
  width: min(1320px, calc(100% - 64px));
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 760px);
  column-gap: 110px;
  align-items: start;
}

.site-frame .file-rail {
  position: sticky;
  top: 0;
}

.about-page {
  width: 100%;
  padding: 54px 0 72px;
}

.about-page h1 {
  margin: 0;
  text-align: center;
  font-size: 18pt;
  line-height: 1;
  font-weight: 700;
}

.id-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 62px 0 46px;
}

.id-image {
  display: block;
  width: 315px;
  max-width: 52%;
  height: auto;
  filter: grayscale(100%);
}

.about-text {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  font-size: 12pt;
  line-height: 1.22;
}

.about-text p {
  margin: 0 0 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Entry pages ---------- */

.entry-body {
  overflow: hidden;
}

.entry-shell {
  width: min(1320px, calc(100% - 64px));
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  column-gap: 110px;
}

.entry-main {
  min-width: 0;
  height: 100vh;
  padding: 62px 0 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.entry-header {
  width: 735px;
  padding: 0 0 14px;
}

.entry-nav {
  width: 450px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12pt;
  font-style: italic;
  font-weight: 700;
}

.entry-nav a,
.entry-nav span {
  color: #000;
  text-decoration: none;
}

.entry-nav a {
  justify-self: start;
}

.next-placeholder {
  justify-self: end;
  opacity: 0.38;
}

.entry-nav a:last-child {
  justify-self: end;
}

.entry-header h1 {
  width: 450px;
  margin: 0 0 12px;
  font-size: 18pt;
  line-height: 1.05;
  font-weight: 700;
}

.entry-dates {
  width: 450px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 12pt;
  line-height: 1.1;
}

.entry-dates em:last-child {
  text-align: right;
}

.entry-content-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 450px 240px;
  column-gap: 45px;
  align-items: stretch;
}

.entry-text {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 22px 44px 0;
  scrollbar-gutter: stable;
  font-size: 12pt;
  line-height: 1.22;
  scrollbar-width: thin;
}

.entry-text p {
  margin: 0 0 16px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;

}

.entry-text p:last-child {
  margin-bottom: 0;
}

.entry-images {
  min-height: 0;
  position: relative;
  padding: 4px 0;
}

.entry-photo {
  display: block;
  width: 240px;
  height: 392px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  border-radius: 0;

}

.entry-id {
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 150px;
  height: auto;
  filter: grayscale(100%);
}

/* ---------- Shared text treatments ---------- */

.entry-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #0066cc;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.spellcheck {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d00000;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

/* ---------- Mobile / narrow screens ---------- */

@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }

  .entry-body {
    overflow: auto;
  }

  .site-frame,
  .entry-shell {
    width: min(760px, calc(100% - 36px));
    height: auto;
    display: block;
  }

  .file-rail {
    position: static !important;
    height: auto;
    display: block;
    padding-top: 24px;
  }

  .file-explorer {
    width: 100%;
  }

  .about-page {
    padding-top: 42px;
  }

  .id-image {
    max-width: 76%;
  }

  .entry-main {
    height: auto;
    display: block;
    padding-top: 38px;
  }

  .entry-content-grid {
    display: flex;
    flex-direction: column;
  }

  .entry-images {
    order: -1;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: end;
    margin-bottom: 30px;
  }

  .entry-photo {
    width: 100%;
    max-height: none;
  }

  .entry-id {
    position: static;
    width: 100%;
    max-width: none;
  }

  .entry-text {
    overflow: visible;
    padding-right: 0;
  }
}


/* ---------- Artwork / "My efforts" pages ---------- */

.art-body {
  overflow: hidden;
}

.art-main {
  min-width: 0;
  height: 100vh;
  padding: 38px 0 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.art-top-nav {
  width: 690px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12pt;
  font-style: italic;
  font-weight: 700;
}

.art-top-nav a,
.art-top-nav span {
  color: #000;
  text-decoration: none;
}

.art-top-nav a:first-child,
.art-top-nav .prev-placeholder {
  justify-self: start;
}

.art-top-nav a:last-child,
.art-top-nav .next-placeholder {
  justify-self: end;
}

.prev-placeholder,
.art-top-nav .next-placeholder {
  opacity: 0.38;
}

.art-content-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 690px 240px;
  column-gap: 45px;
  align-items: stretch;
}

.artwork-stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.artwork-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 105px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.art-details {
  min-height: 0;
  position: relative;
  font-size: 12pt;
  line-height: 1.18;
  padding-top: 12px;
  padding-bottom: 122px;
}

.item-details-label {
  width: 50%;
  margin-left: 50%;
  margin-bottom: 20px;
  text-align: left;
}

.detail-group {
  width: 50%;
  margin-right: 50%;
  margin-bottom: 18px;
  text-align: right;
}

.detail-group strong {
  display: block;
  margin-bottom: 2px;
}

.art-id {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 150px;
  height: auto;
  filter: grayscale(100%);
}

@media (max-width: 900px) {
  .art-body {
    overflow: auto;
  }

  .art-main {
    height: auto;
    display: block;
    padding-top: 38px;
  }

  .art-top-nav {
    width: 100%;
  }

  .art-content-grid {
    display: block;
  }

  .artwork-stage {
    overflow: visible;
    margin-bottom: 28px;
  }

  .artwork-image {
    max-height: none;
    width: 100%;
    height: auto;
  }

  .art-details {
    position: static;
    padding: 0 0 36px;
  }

  .art-id {
    position: static;
    display: block;
    width: 150px;
    margin: 26px 0 0 auto;
  }
}


.entry-link-wavy {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #0066cc;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: none;
}
