:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --ink: #252922;
  --muted: #62675d;
  --line: #d4d0c5;
  --accent: #ac492f;
  --green: #405b49;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 8px;
  left: 8px;
  z-index: 50;
  background: white;
  padding: 12px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
aside {
  border-right: 1px solid var(--line);
  padding: 37px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: -1px;
}
.brand img {
  width: 31px;
  height: 31px;
}
.brand-small {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 51px 7px;
}
nav {
  display: grid;
  gap: 9px;
}
.nav {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  text-align: left;
  border-radius: 7px;
  font-size: 14px;
}
.nav.selected {
  background: #e6e7db;
  color: #304c38;
  font-weight: 600;
}
.nav svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}
.aside-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 24px 6px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.aside-note b {
  font-weight: 500;
  color: var(--ink);
}
main {
  max-width: 1330px;
  width: 100%;
  padding: 36px 56px 55px;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}
.local-tag {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 45px 0 35px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(42px, 4.7vw, 69px);
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin-bottom: 19px;
}
h1 em {
  font-weight: 400;
  color: var(--green);
}
.lede {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 410px;
  margin-bottom: 0;
}
.btn {
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.small {
  padding: 8px 13px;
  min-height: 38px;
}
.btn.danger {
  color: #9c302a;
  background: transparent;
  border-color: #d8b4ab;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.text-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 40px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 24px;
  gap: 16px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin: 0;
}
.count {
  font-family: inherit;
  font-size: 11px;
  color: var(--muted);
  padding-left: 9px;
  letter-spacing: 0;
}
.shelf {
  display: flex;
  gap: 28px;
  padding: 0 8px 34px;
  overflow-x: auto;
  border-bottom: 2px solid #ccc6b7;
  box-shadow: 0 7px 6px -6px #aba08a;
  margin-bottom: 34px;
  align-items: flex-end;
}
.book-unit {
  width: 156px;
  flex: 0 0 156px;
}
.book {
  border: 0;
  border-radius: 2px 6px 5px 2px;
  padding: 0;
  width: 100%;
  height: 210px;
  background: var(--cover);
  text-align: left;
  color: #fff8e9;
  position: relative;
  box-shadow: 3px 5px 8px #302c202b;
  transition: transform 0.2s;
}
.book:hover {
  transform: translateY(-6px) rotate(-1deg);
}
.book:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #ffffff2c;
  border-right: 1px solid #00000024;
  width: 3px;
}
.book:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    95deg,
    transparent,
    transparent 2px,
    #ffffff03 3px
  );
  pointer-events: none;
}
.book-inner {
  height: 100%;
  padding: 25px 18px 18px 26px;
  display: flex;
  flex-direction: column;
}
.book-num {
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.75;
}
.book-title {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  margin-top: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
}
.book-author {
  margin-top: auto;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  padding-top: 10px;
}
.book-mark {
  height: 18px;
  border-top: 1px solid #ffffff70;
  margin-top: 13px;
  width: 25px;
}
.book-progress {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-top: 15px;
}
.progress {
  height: 2px;
  background: #ded9ce;
  margin-top: 9px;
}
.progress i {
  display: block;
  height: 2px;
  background: var(--cover);
}
.add-spine {
  border: 1px dashed #bfb9ac;
  min-height: 210px;
  width: 130px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 15px;
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.add-spine span {
  font-family: inherit;
  font-size: 33px;
  font-weight: 400;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 38px;
}
.thought-card {
  position: relative;
  border-left: 2px solid var(--accent);
  padding: 5px 0 4px 24px;
  margin: 25px 0 32px;
}
.thought-text {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.3px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 21px;
}
.thought-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  line-height: 1.7;
}
.thought-source {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.thought-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.thought-actions button {
  font-size: 11px;
  color: var(--muted);
}
.quiet-panel {
  padding: 28px;
  background: #e7e9df;
  border-radius: 3px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.quiet-panel .ornament {
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: #566748;
  opacity: 0.35;
  position: absolute;
  right: 23px;
  top: 4px;
}
.quiet-panel h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  position: relative;
  margin: 0 0 13px;
  max-width: 170px;
}
.quiet-panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 215px;
  margin-bottom: 19px;
}
.stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 27px;
}
.stat strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  display: block;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer {
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
  gap: 20px;
}
.footer a {
  color: var(--muted);
}
.empty {
  padding: 40px 26px;
  background: #ebe6db;
  border: 1px solid var(--line);
  text-align: center;
  margin: 12px 0 32px;
  border-radius: 5px;
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin: 15px 0;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 22px;
}
.empty .actions {
  justify-content: center;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sample-banner {
  background: #e7e9df;
  padding: 12px 18px;
  font-size: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-radius: 4px;
}
.sample-banner button {
  font-size: 11px;
}
.searchbar {
  display: flex;
  gap: 16px;
  margin-bottom: 35px;
}
.searchbar input {
  flex: 1;
  min-width: 0;
}
.searchbar select {
  max-width: 220px;
}
.input,
label input,
label textarea,
label select,
.searchbar input,
.searchbar select {
  width: 100%;
  border: 1px solid #bbb9ae;
  background: #fbf8f1;
  color: var(--ink);
  border-radius: 5px;
  padding: 12px;
  min-height: 46px;
}
.searchbar select {
  width: auto;
}
label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 17px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}
textarea {
  resize: vertical;
  min-height: 145px;
  line-height: 1.5;
}
.row {
  display: flex;
  gap: 15px;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.swatches {
  display: flex;
  gap: 15px;
  margin: 10px 0 24px;
}
.swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  outline: 1px solid transparent;
  background: var(--cover);
}
.swatch[aria-pressed="true"] {
  outline: 2px solid var(--ink);
}
dialog {
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 30px;
  box-shadow: 0 20px 100px #1c251d38;
  color: var(--ink);
}
dialog::backdrop {
  background: #242a225c;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 27px;
}
.dialog-head h2 {
  font-size: 31px;
}
.close {
  background: transparent;
  border: 0;
  font-size: 24px;
  padding: 0 6px;
  min-width: 40px;
  min-height: 40px;
}
.help {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 13px 21px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  max-width: 90vw;
  font-size: 13px;
  box-shadow: 0 7px 30px #0002;
  display: none;
}
#notice.show {
  display: block;
}
.storage-error {
  padding: 20px;
  border: 1px solid var(--accent);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.session {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 10px;
}
.session .mini-book {
  width: 100px;
  height: 135px;
  background: var(--cover);
  box-shadow: 3px 6px 12px #0002;
  border-radius: 3px;
  margin: 10px 0 25px;
  padding: 20px 12px;
  color: #fff8e9;
  font-family: Georgia, serif;
  font-size: 19px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.session h2 {
  font-size: 34px;
}
.session .clock {
  font-family: Georgia, serif;
  font-size: clamp(65px, 10vw, 106px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
  margin: 35px 0 10px;
  color: var(--green);
}
.session .session-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 35px;
}
.settings-row {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.settings-row h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 10px;
}
.settings-row p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 490px;
}
.settings-row .actions {
  flex-shrink: 0;
}
.detail-top {
  display: flex;
  gap: 22px;
  margin-bottom: 25px;
}
.detail-top .book {
  width: 95px;
  height: 135px;
  flex-shrink: 0;
}
.detail-top .book-title {
  font-size: 17px;
  margin-top: 8px;
}
.detail-top .book-inner {
  padding: 17px 12px 12px 21px;
}
.detail-top .book-author {
  font-size: 8px;
}
.detail-top .book-num,
.detail-top .book-mark {
  display: none;
}
.detail-top h2 {
  font-size: 29px;
  overflow-wrap: anywhere;
}
.share-preview {
  width: 100%;
  border: 1px solid var(--line);
  margin-bottom: 17px;
}
.thought-list {
  max-width: 800px;
}
.import-input {
  display: none;
}
@media (min-width: 1500px) {
  main {
    padding-left: 70px;
    padding-right: 70px;
  }
  .shelf {
    gap: 36px;
  }
  .book-unit {
    width: 175px;
    flex-basis: 175px;
  }
  .book {
    height: 230px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  aside {
    padding: 30px 18px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    padding: 30px;
  }
  .hero {
    gap: 20px;
  }
  .hero > .btn {
    padding: 12px;
  }
  .lower-grid {
    gap: 25px;
  }
  .book-unit {
    flex-basis: 142px;
    width: 142px;
  }
  .book {
    height: 195px;
  }
  .book-title {
    font-size: 22px;
  }
  .shelf {
    gap: 21px;
  }
  .quiet-panel {
    padding: 22px;
  }
  .thought-text {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  aside {
    height: auto;
    padding: 17px 22px;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    font-size: 24px;
  }
  .brand-small,
  .aside-note {
    display: none;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f4f0e7f5;
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    z-index: 20;
    display: flex;
    justify-content: space-around;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }
  .nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 10px;
    padding: 7px 13px;
    border-radius: 6px;
    min-width: 64px;
  }
  .nav svg {
    width: 20px;
    height: 20px;
  }
  main {
    padding: 22px 23px 100px;
  }
  .topline {
    font-size: 9px;
    letter-spacing: 1.2px;
    padding-bottom: 17px;
  }
  .hero {
    padding: 34px 0 25px;
    display: block;
  }
  .hero h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .hero > .btn {
    margin-top: 23px;
  }
  .lede {
    font-size: 13px;
    max-width: 320px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 13px;
  }
  .section-head {
    margin-top: 15px;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 24px;
  }
  .shelf {
    margin-left: -1px;
    margin-right: -23px;
    padding-right: 23px;
    gap: 22px;
  }
  .book-unit {
    flex-basis: 144px;
    width: 144px;
  }
  .book {
    height: 199px;
  }
  .add-spine {
    min-height: 199px;
  }
  .lower-grid {
    display: block;
  }
  .quiet-panel {
    margin-top: 27px;
    padding: 26px;
  }
  .quiet-panel h3 {
    max-width: 220px;
    font-size: 27px;
  }
  .quiet-panel p {
    max-width: 250px;
  }
  .quiet-panel .ornament {
    right: 40px;
    font-size: 110px;
  }
  .thought-text {
    font-size: 24px;
  }
  .stats {
    gap: 38px;
  }
  .footer {
    margin-top: 33px;
    line-height: 1.7;
    flex-wrap: wrap;
  }
  .searchbar {
    flex-direction: column;
    gap: 10px;
  }
  .searchbar select {
    max-width: none;
    width: 100%;
  }
  .settings-row {
    display: block;
  }
  .settings-row .actions {
    margin-top: 20px;
  }
  .session {
    min-height: 520px;
    padding-top: 25px;
  }
  .session h2 {
    font-size: 31px;
  }
  .session .clock {
    font-size: 82px;
  }
  .row {
    gap: 12px;
  }
  dialog {
    padding: 24px;
  }
  .dialog-head h2 {
    font-size: 29px;
  }
  .sample-banner {
    font-size: 11px;
    gap: 10px;
    padding: 10px 13px;
  }
  .sample-banner button {
    white-space: nowrap;
  }
  #notice {
    bottom: 92px;
  }
  .book-title {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.revisit{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 30px}.revisit .eyebrow{margin-bottom:10px}.revisit .help{margin:10px 0 0}@media(max-width:760px){.revisit{display:block}.revisit .btn{margin-top:18px}}
