/* Revisão de cache após habilitar CORS na CDN — 2026-09-28. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --paper: #fdfdfd;
  --paper-raised: #ffffff;
  --ink: #11110f;
  --muted: #666259;
  --line: #d8d2c6;
  --cream: #eee7d7;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --page: min(1120px, calc(100vw - 48px));
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  color: var(--paper-raised);
  background: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.site-header__inner {
  width: var(--page);
  min-height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__tile,
.hero__tile,
.error-page__tile {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand__tile {
  width: 42px;
  height: 42px;
}

.brand__name {
  font-family: var(--display);
  font-size: 22px;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a,
.site-footer nav a {
  position: relative;
  text-decoration: none;
}

.desktop-nav a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 180ms ease-out;
}

.desktop-nav a:hover::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75;
}

.mobile-nav nav {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  box-shadow: 0 18px 40px rgb(38 34 26 / 14%);
}

.mobile-nav nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav nav a:hover {
  background: var(--cream);
}

.hero {
  width: min(760px, calc(100vw - 40px));
  margin-inline: auto;
  padding: 92px 0 104px;
  text-align: center;
}

.hero__tile {
  width: 86px;
  height: 86px;
  margin: 0 auto 32px;
  font-size: 40px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 26px;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 88px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.hero > p,
.hero__promise {
  max-width: 660px;
  margin-inline: auto;
}

.hero__lead {
  margin-bottom: 22px;
  font-size: 22px;
  line-height: 1.42;
}

.hero__promise {
  margin-top: 34px;
}

.hero__promise p {
  margin-bottom: 16px;
}

.hero__close {
  margin-top: 32px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 23px;
}

.latest,
.archive-page,
.article-page,
.prose-page,
.error-page,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.latest {
  padding: 0 0 112px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.section-heading h2,
.related > h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgb(34 29 21 / 10%);
}

.post-card__meta,
.article-header__meta,
.related time,
.archive-list time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-card__meta,
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.post-card h2 {
  margin: 32px 0 16px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.04;
}

.post-card h2 a,
.archive-list h2 a,
.related h3 a {
  text-decoration: none;
}

.post-card p {
  margin-bottom: 30px;
  color: #35332d;
}

.post-card .text-link {
  margin-top: auto;
}

.text-link,
.back-link {
  width: fit-content;
  font-weight: 700;
  text-underline-offset: 0.28em;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-raised);
  background: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.page-header {
  max-width: 820px;
  padding: 84px 0 56px;
}

.page-header h1 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(62px, 10vw, 104px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.page-header p {
  max-width: 650px;
  margin-bottom: 0;
  color: #37342e;
  font-size: 22px;
}

.archive-page {
  padding-bottom: 112px;
}

.archive-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 44px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.archive-list h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.archive-list p {
  max-width: 720px;
  margin-bottom: 0;
  color: #3d3932;
}

.archive-list__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    background 180ms ease-out;
}

.archive-list__arrow:hover {
  color: var(--paper-raised);
  background: var(--ink);
}

.article-page {
  padding: 82px 0 120px;
}

.article-page > article,
.prose-page__body {
  max-width: 780px;
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 48px;
  font-size: 15px;
}

.article-header h1 {
  margin-bottom: 26px;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 86px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.article-header__subtitle {
  margin-bottom: 28px;
  font-size: 23px;
  line-height: 1.42;
}

.article-header__meta {
  align-items: center;
}

.article-cover {
  width: min(1040px, var(--page));
  margin: 62px 50% 70px;
  transform: translateX(-50%);
}

.article-cover img {
  width: 100%;
  max-height: 580px;
  border-radius: 14px;
  object-fit: cover;
}

.article-body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
}

.article-body h2 {
  margin: 62px 0 18px;
  font-size: 28px;
  line-height: 1.18;
}

.article-body h3 {
  margin: 48px 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body pre,
.article-body figure {
  margin-bottom: 24px;
}

.article-body a {
  text-decoration-thickness: 1px;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img {
  border-radius: 12px;
}

.article-body pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 12px;
  background: #eae5da;
}

.share {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.share h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share__links a {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.share__links a:hover {
  color: var(--paper-raised);
  background: var(--ink);
}

.related {
  margin-top: 104px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
}

.related img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border-radius: 12px;
  object-fit: cover;
}

.related h3 {
  margin: 10px 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
}

.related p {
  color: #47433b;
  font-size: 15px;
}

.prose-page {
  padding-bottom: 112px;
}

.prose-page__body {
  font-size: 19px;
  line-height: 1.72;
}

.prose-page__body h2 {
  margin: 54px 0 16px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
}

.prose-page__body p {
  margin-bottom: 28px;
}

.signature {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-page {
  min-height: 650px;
  padding: 100px 0 120px;
  text-align: center;
}

.error-page__tile {
  width: 76px;
  height: 76px;
  margin: 0 auto 38px;
  font-size: 34px;
}

.error-page__code {
  margin-bottom: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.error-page h1 {
  max-width: 760px;
  margin: 0 auto 20px;
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.error-page > p:not(.error-page__code) {
  max-width: 560px;
  margin: 0 auto;
  color: #444038;
}

.error-page__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 38px;
}

.site-footer {
  padding: 58px 0 36px;
  border-top: 1px solid var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 80px;
}

.site-footer__statement p:not(.site-footer__name) {
  max-width: 580px;
  color: #3f3b34;
}

.site-footer__name {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.site-footer__links {
  display: grid;
  align-content: start;
  justify-content: end;
  gap: 20px;
}

.site-footer__copyright {
  margin: 54px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 840px) {
  :root {
    --page: min(100% - 36px, 720px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 72px 0 82px;
  }

  .post-grid,
  .related__grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 0;
  }

  .archive-list li {
    grid-template-columns: 130px minmax(0, 1fr) 44px;
    gap: 18px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer__links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 28px);
  }

  body {
    font-size: 16px;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand__name {
    display: none;
  }

  .hero {
    width: min(100% - 28px, 520px);
    padding: 56px 0 68px;
  }

  .hero__tile {
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    font-size: 34px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(49px, 14vw, 64px);
  }

  .hero__lead {
    font-size: 19px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .post-card {
    padding: 24px;
  }

  .post-card h2 {
    margin-top: 26px;
    font-size: 30px;
  }

  .page-header {
    padding: 62px 0 44px;
  }

  .page-header h1 {
    font-size: 66px;
  }

  .page-header p {
    font-size: 19px;
  }

  .archive-list li {
    grid-template-columns: 1fr 40px;
    gap: 12px;
    padding: 26px 0 30px;
  }

  .archive-list time {
    grid-column: 1 / -1;
  }

  .archive-list__arrow {
    width: 40px;
    height: 40px;
  }

  .article-page {
    padding-top: 54px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .article-header h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .article-header__subtitle {
    font-size: 20px;
  }

  .article-header__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .article-header__meta > span[aria-hidden="true"] {
    display: none;
  }

  .article-cover {
    width: calc(100% + 28px);
    margin-top: 48px;
    margin-inline: -14px;
    margin-bottom: 54px;
    transform: none;
  }

  .article-cover img {
    border-radius: 0;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.68;
  }

  .article-body h2 {
    margin-top: 48px;
    font-size: 25px;
  }

  .article-body blockquote {
    padding: 20px;
  }

  .share__links,
  .error-page__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share__links a {
    text-align: center;
  }

  .site-footer {
    padding-top: 44px;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
