:root {
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #6e6e6e;
  --line: #e7e7e7;
  --accent: #8a8a8a;
  --accent-soft: #f5f5f5;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --text: #ececec;
    --muted: #9b9b9b;
    --line: #2b2b2b;
    --accent: #8f8f8f;
    --accent-soft: #1d1d1d;
  }
}
:root[data-theme="dark"] {
    --bg: #121212;
    --text: #ececec;
    --muted: #9b9b9b;
    --line: #2b2b2b;
    --accent: #8f8f8f;
    --accent-soft: #1d1d1d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.7 var(--serif); -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

.page { max-width: 680px; margin: 0 auto; padding: 72px 24px 48px; }

h1, h2 { font-weight: 600; line-height: 1.2; margin: 0; }
h2 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Intro */
.id { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}
h1 { font-size: 30px; letter-spacing: -0.01em; line-height: 1.1; }
.id-sub { margin: 4px 0 0; font: 15px var(--sans); color: var(--muted); }
.hello { font-size: 21px; margin: 0 0 16px; }
.hello.muted { font-size: 18px; color: var(--muted); }

/* Ahora */
.now { margin: 56px 0; padding: 22px 24px; background: var(--accent-soft); border-radius: 14px; }
.now h2 { color: var(--muted); margin-bottom: 10px; }
.now p { margin: 0; font-style: italic; }

/* Obra */
.work-head { margin-bottom: 8px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  font: 500 14px var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { color: var(--bg); background: var(--text); border-color: var(--text); }

.items { list-style: none; padding: 0; margin: 0; }
.item a {
  display: grid; grid-template-columns: 92px 1fr; gap: 4px 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.item a:hover .item-title { color: var(--muted); }
.item-type { font: 500 13px/1.9 var(--sans); color: var(--muted); grid-row: span 2; }
.item-title { font-size: 20px; line-height: 1.35; transition: color .15s ease; }
.item-sub { font: 15px/1.5 var(--sans); color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; font-style: italic; }
.more {
  margin-top: 22px; font: 500 15px var(--sans); color: var(--text); background: none;
  border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
}

/* Por ahí */
.elsewhere { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.elsewhere p { margin: 0 0 16px; }
.sign { font: 14px var(--sans); color: var(--muted); margin-top: 40px !important; }

@media (max-width: 560px) {
  .page { padding: 48px 16px 40px; }
  h1 { font-size: 26px; }
  .avatar { width: 60px; height: 60px; }
  .hello { font-size: 19px; }
  .item a { grid-template-columns: 1fr; }
  .item-type { grid-row: auto; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
