:root {
  --paper: #f3ead8;
  --ink: #1c1410;
  --muted: #6b5c4f;
  --rule: #d9cbb6;
  --accent: #c43c1a;
  --accent-hover: #9a2e14;
}

* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  font-size: 0.95rem;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--muted);
}

.lang button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.lang button:hover,
.lang button[aria-pressed="true"] {
  color: var(--accent);
}

.lang button[aria-pressed="true"] {
  font-weight: 600;
}

.links {
  display: flex;
  gap: 1rem;
}

.intro {
  margin-bottom: 2rem;
}

.portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule);
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.role {
  margin-top: 0.45rem;
  color: var(--accent);
  font-style: italic;
  font-size: 1.05rem;
}

.bio p + p {
  margin-top: 1rem;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.work {
  margin-top: 1.35rem;
}

.work h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.work p {
  margin-top: 0.3rem;
  color: var(--ink);
}

.writing {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
}

.writing li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.45rem 0;
}

.writing li + li {
  border-top: 1px solid var(--rule);
}

.writing time {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.05rem;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

.cursor.is-on {
  opacity: 0.8;
}

.cursor.is-hover {
  width: 28px;
  height: 28px;
}

html[lang="en"] [data-lang="pt"],
html[lang="pt-BR"] [data-lang="en"] {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.1rem;
  }

  .page {
    width: min(42rem, calc(100% - 2rem));
    padding-top: 1.25rem;
  }

  .writing li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
