html {
  min-height: 100%;
  background-color: #f0f0ec;
  background-image: url('assets/paper-texture.png');
  background-repeat: repeat;
  background-size: 480px auto;
  background-position: 0 0;
  background-attachment: scroll;
}

body {
  font-family: 'EB Garamond', serif;
  color: #000;
  max-width: 640px;
  margin: 80px auto;
  padding: 0 24px;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Custom cursor: hide system pointer when JS morph cursor is active */
html.use-custom-cursor,
html.use-custom-cursor * {
  cursor: none !important;
}

.custom-cursor-outer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 1;
  will-change: transform;
  isolation: isolate;
  mix-blend-mode: normal;
}

.custom-cursor-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: 0;
  border-radius: 50%;
  background-color: #000000;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center center;
  mix-blend-mode: normal;
  backface-visibility: hidden;
  transition:
    width 0.28s cubic-bezier(0.45, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.45, 0, 0.2, 1),
    border-radius 0.28s cubic-bezier(0.45, 0, 0.2, 1),
    background-color 0.2s ease;
}

.custom-cursor-inner.is-text {
  width: 1px;
  height: 30px;
  border-radius: 0;
  background-color: #000000;
  background-image: none;
  transform: translate3d(-50%, -50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-inner {
    transition-duration: 0.05s;
  }
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

p.tagline {
  font-size: 0.95rem;
  margin: 0 0 48px 0;
  color: #000;
}

h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

section {
  margin-bottom: 40px;
}

ul.quotes-list li {
  margin-bottom: 1.35rem;
  font-weight: 400;
}

ul.eats-list li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
}

ul.eats-list a {
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

ul.eats-list a:hover {
  text-decoration: underline;
}

p.eats-beli {
  font-size: 0.95rem;
  margin: 2rem 0 0 0;
  font-weight: 400;
}

a.eats-beli-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: inherit;
  text-decoration: none;
}

a.eats-beli-link:hover {
  text-decoration: none;
}

a.eats-beli-link .eats-beli-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

a {
  color: #00e;
  text-decoration: none;
  position: relative;
}

/* Corner brackets on interactive targets */
a::after,
button:not(:disabled)::after {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size:
    12px 1.5px,
    1.5px 12px,
    12px 1.5px,
    1.5px 12px,
    12px 1.5px,
    1.5px 12px,
    12px 1.5px,
    1.5px 12px;
  background-position:
    0 0,
    0 0,
    100% 0,
    100% 0,
    0 100%,
    0 100%,
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
}

a:hover::after,
a:focus-visible::after,
button:hover:not(:disabled)::after,
button:focus-visible:not(:disabled)::after {
  opacity: 1;
}

button:not(:disabled) {
  position: relative;
}

a:hover {
  text-decoration: underline;
}

.contact {
  font-size: 0.95rem;
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.contact a:hover {
  text-decoration: none;
  color: #555;
}

.contact svg {
  width: 22px;
  height: 22px;
  display: block;
}

.work-list a,
.inline-link {
  color: inherit;
  display: inline-block;
}

.work-list a {
  font-weight: 400;
}

.work-list a:hover,
.inline-link:hover {
  text-decoration: none;
}

/* Literature index (wider for table) */
body.literature-index {
  max-width: 820px;
}

table.literature {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-weight: 400;
}

table.literature th {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #666;
  text-align: left;
  padding: 6px 12px 8px 0;
  border-bottom: 1px solid #ccc;
}

table.literature th.cover {
  width: 56px;
}

table.literature td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
  font-weight: 400;
}

table.literature td.cover {
  width: 56px;
  padding-right: 8px;
}

table.literature td.cover img {
  width: 48px;
  height: auto;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Book detail: title reads as prose, not section label */
h2.book-title {
  text-transform: none;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 24px 0;
  letter-spacing: normal;
}

p.literature-back {
  font-size: 0.95rem;
  margin: 0 0 24px 0;
}

p.literature-back a {
  font-weight: 400;
  color: inherit;
}
