:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ink: #142923;
  --deep: #101d1c;
  --amber: #eeb460;
  --warm: #f0e3cc;
  --muted: #46574f;
  --rule: #abb2a6;
  --focus: #834715;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 Arial, sans-serif; }
a { color: inherit; }
button, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
section[id], article[id], p[id] { scroll-margin-top: 1.75rem; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.065em; line-height: .96; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.1rem, 4.3vw, 4rem); letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: clamp(1.65rem, 3.3vw, 2.75rem); letter-spacing: -.048em; line-height: 1.075; }
p + p { margin-top: 1rem; }
.shell { width: min(82rem, calc(100% - 2 * clamp(1.1rem, 5vw, 5.3rem))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 1.1rem; }
.brand { display: grid; align-items: center; min-height: 3.9rem; }
.brand img { display: block; width: 6.4rem; height: auto; filter: brightness(0) saturate(100%) invert(12%) sepia(19%) saturate(1033%) hue-rotate(110deg) brightness(99%) contrast(90%); }
.primary { display: flex; flex-wrap: wrap; column-gap: clamp(.75rem, 2.8vw, 2.4rem); }
.primary a { display: grid; min-height: 3.9rem; align-content: center; border-bottom: 2px solid transparent; text-decoration: none; font-size: .86rem; }
.primary a:hover { text-decoration: underline; text-underline-offset: .24em; }
.primary a[aria-current] { border-color: var(--focus); font-weight: 700; }
.back { display: inline-flex; gap: .65rem; align-items: center; min-height: 2.75rem; margin-block: 1.25rem 1.1rem; color: var(--muted); font-size: .875rem; text-underline-offset: .22em; }
.back span { color: var(--focus); }
.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 15%);
  align-items: end;
  gap: clamp(1.4rem, 4.1vw, 5rem);
  padding-block: clamp(1.5rem, 4.8vw, 4.35rem) clamp(2rem, 5.5vw, 5.2rem);
  border-block: 1px solid var(--rule);
}
.kicker { font: 700 .78rem/1.45 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.article-head .kicker { margin-bottom: 1.4rem; }
.article-head .kicker span { color: var(--focus); padding-inline: .35em; }
.article-head h1 { max-width: 15ch; }
.page-sobre h1 { max-width: none; }
.deck { margin-top: 1.45rem; max-width: 39ch; font-size: clamp(1.02rem, 2.15vw, 1.42rem); line-height: 1.43; }
.headnote { padding-block-end: .14rem; }
.headnote .rule { display: block; width: 2.15rem; border-top: 3px solid var(--amber); margin-bottom: .85rem; }
.headnote p { font: italic clamp(1.1rem, 2vw, 1.39rem)/1.32 var(--serif); }
.reading-grid { display: grid; grid-template-columns: clamp(11rem, 22%, 17rem) minmax(0, 1fr); }
.contents { position: sticky; top: 0; align-self: start; padding: 2.25rem 1.15rem 2rem 0; }
.contents ul { list-style: none; padding: 0; margin: .65rem 0 0; }
.contents a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .91rem; line-height: 1.22; text-underline-offset: .24em; }
.reading-body { border-left: 1px solid var(--rule); min-width: 0; }
.reading-body > section { padding: clamp(1.8rem, 4vw, 3.9rem) 0 clamp(2.2rem, 4vw, 4rem) clamp(1.65rem, 4vw, 4rem); }
.reading-body > section + section { border-top: 1px solid var(--rule); }
.reading-body > section > p:not(.kicker) { max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.14rem); }
.reading-body h2 + p, .reading-body .kicker + h2 { margin-top: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; text-underline-offset: .25em; font-weight: 700; }
.reading-body .text-link { margin-top: .75rem; }
.text-link:hover, .contents a:hover, .back:hover { color: var(--focus); }
.text-link span { color: var(--focus); }
.dispatch { display: grid; max-width: 53rem; margin-top: 1.7rem; }
.dispatch div { display: grid; grid-template-columns: minmax(8.5rem, .28fr) minmax(0, 1fr); gap: .35rem 1.3rem; border-top: 1px solid var(--rule); padding-block: .8rem; }
.dispatch dt { font-weight: 700; }
.dispatch dd { margin: 0; }
.portfolio { margin-top: .6rem; }
.portfolio article { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr); gap: .4rem clamp(1.3rem, 4vw, 3.6rem); padding-block: 1.3rem; }
.portfolio article + article { border-top: 1px solid var(--rule); }
.portfolio article .kicker { grid-column: 1 / -1; }
.portfolio p:last-child { max-width: 52ch; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0; background: var(--warm); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: clamp(.6rem, 2.6vw, 1.55rem); }
.figures div + div { border-left: 1px solid #c4af8d; }
.figures dt { font-size: clamp(.8rem, 1.6vw, 1rem); line-height: 1.25; }
.figures dd { margin: 0 0 .38rem; font: 400 clamp(2rem, 5vw, 4.1rem)/.95 var(--serif); letter-spacing: -.075em; }
details { max-width: 50rem; margin-top: 1.65rem; border-block: 1px solid var(--rule); }
summary { min-height: 2.75rem; padding-block: .75rem; cursor: pointer; font-weight: 700; }
details > div { padding: .25rem 0 1rem; }
details p { max-width: 62ch; }
.loop-line { margin: 1.4rem 0; padding: .8rem 0; display: flex; flex-wrap: wrap; list-style: none; gap: .5rem 1rem; border-block: 1px solid var(--rule); }
.loop-line li { display: flex; gap: .75rem; align-items: center; }
.loop-line li + li::before { content: "→" / ""; color: var(--focus); }
.page-contato .deck { font: italic clamp(1.8rem, 3vw, 3rem)/1.1 var(--serif); }
.conversation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 4rem); }
.conversation h2 { margin-bottom: .75rem; font-size: clamp(2.1rem, 3.25vw, 3.2rem); }
.conversation form { display: grid; gap: .45rem; }
.conversation form label { margin-top: 1.05rem; font-weight: 700; }
.conversation textarea { display: block; width: 100%; min-height: 3rem; padding: .68rem .75rem; border: 1px solid #727a6e; border-radius: 0; background: transparent; color: var(--ink); resize: vertical; }
.conversation textarea::placeholder { color: var(--muted); opacity: 1; }
.memo { align-self: start; padding: clamp(1rem, 3vw, 2.4rem); background: var(--warm); }
.memo textarea { margin-block: .85rem; min-height: 7rem; max-height: 18rem; field-sizing: content; }
.memo button { min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font-weight: 700; cursor: pointer; }
.memo button:disabled { color: var(--ink); background: transparent; cursor: default; }
.memo button:not(:disabled):hover { background: var(--deep); }
.memo button span { margin-left: .3rem; }
.status { margin-top: .6rem; min-height: 1.65rem; font-size: .9rem; }
.route-end { display: flex; justify-content: end; padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.footer { margin-top: clamp(1.9rem, 5vw, 4.7rem); background: var(--deep); color: var(--paper); }
.footer-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.footer a { font-weight: 700; text-underline-offset: .2em; min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer a:focus-visible { outline-color: var(--amber); }
.footer p { font: .8rem/1.3 var(--mono); text-align: right; }
@media (max-width: 700px) {
  .article-head { grid-template-columns: 1fr; }
  .headnote { display: flex; align-items: center; gap: .6rem; }
  .headnote .rule { flex: 0 0 1.3rem; margin: 0; }
  .reading-grid { grid-template-columns: 1fr; }
  .contents { position: static; padding: 1.15rem 0 .7rem; border-bottom: 1px solid var(--rule); }
  .contents ul { display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin-top: .15rem; }
  .reading-body { border-left: 0; }
  .reading-body > section { padding-inline: 0; }
  .conversation { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(2.4rem, 9.8vw, 4rem); }
  .brand { min-height: 2.85rem; }
  .brand img { width: 5rem; }
  .masthead-inner { display: block; }
  .primary { justify-content: space-between; column-gap: .55rem; }
  .primary a { min-height: 2.75rem; font-size: .78rem; }
  .back { margin-block: .45rem .65rem; }
  .article-head .kicker { margin-bottom: .9rem; }
  .deck { margin-top: 1rem; }
  .dispatch div, .portfolio article { grid-template-columns: 1fr; }
}
