/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

[type=button], [type=reset], [type=submit], button {
  -webkit-appearance: button;
}

[type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner, button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring, button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox], [type=radio] {
  box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

a, article, aside, blockquote, body, code, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], input[type=url], legend, li, main, nav, ol, p, pre, section, table, td, textarea, th, tr, ul {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html,
body,
div,
article,
aside,
section,
main,
nav,
footer,
header,
form,
fieldset,
legend,
pre,
code,
a,
h1, h2, h3, h4, h5, h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
blockquote,
figcaption,
figure,
textarea,
table,
td,
th,
tr,
input[type=email],
input[type=number],
input[type=password],
input[type=tel],
input[type=text],
input[type=url],
.border-box {
  box-sizing: border-box;
}

.section {
  border-top-style: solid;
  border-top-width: 1px;
}

header.home h1 span.name {
  top: 0;
}

.section h2 {
  top: -1rem;
}

/* Inter auto-hospedada: só os pesos que o site usa. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cores do site: o tema segue a preferência do sistema, e a impressão continua sempre clara. */
:root {
  color-scheme: light;
  --texto: black;
  --titulo: #222222;
  --fundo: white;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --texto: #ededed;
    --titulo: #f5f5f5;
    --fundo: #141414;
  }
}

:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}

li, dd, p, figcaption {
  font-weight: 300;
}

header.home h1 span.name {
  font-weight: 400;
}

dt {
  font-weight: 700;
}

.card dt, .card dd, .text .subsection-content p, .lists .subsection-content ul li, .subsection h3, .section h2 {
  line-height: 1.5;
}

ul, ol, dl {
  list-style-type: none;
}

.section, header.home {
  position: relative;
}

.section h2, header.home h1 span.name {
  position: absolute;
}

main {
  padding: 2rem;
}

ul {
  padding-left: 0;
}

.subsection .subsection-content {
  padding-left: 1rem;
}

.section h2 {
  padding-right: 0.5rem;
}

.section {
  padding-bottom: 2rem;
}

.section {
  padding-top: 0.5rem;
}

header.home h1 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section h2 {
  margin: 0;
}

dd {
  margin-left: 0;
}

.card:last-child {
  margin-bottom: 0;
}

.text .subsection-content p {
  margin-top: 0;
}

header + .section {
  margin-top: 8rem;
}

.lists .subsection-content ul, .subsection h3, header.home h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.card {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.subsection {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

h2, h3, h4, h5, h6 {
  text-transform: lowercase;
}

.card dt, .card dd, header.home h1 span.name, h1, h2, h3, h4, h5, h6, li, dt, dd, p {
  font-size: 1.25rem;
}

h1, h2, h3, h4, h5, h6, li, dt, dd, p {
  max-width: 30em;
}

.text .subsection-content p {
  max-width: 34em;
}

.sr-only {
  position: absolute;
  padding: 0;
  border-width: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
}

.sr-only-focusable:focus {
  position: relative;
  width: auto;
  height: auto;
  clip: initial;
  margin: inherit;
  border: initial;
}

header.home h1 span.name, a, :root {
  color: var(--texto);
}

h1 {
  color: var(--titulo);
}

.section h2, body {
  background: var(--fundo);
}

header.home h1 span.name, h1, h2, h3, h4, h5, h6, li, dt, dd, p {
  letter-spacing: -0.01em;
}

@media screen and (min-width: 768px) {
  .subsection {
    display: flex;
  }
  header.home h1 {
    max-width: 48rem;
  }
  main {
    padding: 4rem;
  }
  .subsection .subsection-content {
    padding-left: 0;
  }
  .section {
    padding-top: 1rem;
  }
  header.home h1 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .text .subsection-content p:last-child {
    margin-bottom: 0;
  }
  .card {
    margin-top: 0;
  }
  header + .section {
    margin-top: 4rem;
  }
  .cards .subsection-content dl {
    margin-top: 0;
    margin-bottom: 0;
  }
  .card dt, .card dd, header.home h1 span.name, h1, h2, h3, h4, h5, h6, li, dt, dd, p {
    font-size: 1rem;
  }
  .subsection .subsection-content, .subsection h3 {
    width: 50%;
  }
  .sr-only-ns {
    position: absolute;
    padding: 0;
    border-width: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
  }
  .sr-only-focusable-ns:focus {
    position: relative;
    width: auto;
    height: auto;
    clip: initial;
    margin: inherit;
    border: initial;
  }
}
@media screen and (min-width: 1024px) {
  .subsection:not(:first-child) {
    border-top-style: solid;
    border-top-width: 1px;
  }
  .section {
    display: flex;
  }
  header.home h1 {
    max-width: 64rem;
  }
  .section h2 {
    position: relative;
  }
  .section h2 {
    padding-right: 0;
  }
  .subsection {
    padding-bottom: 2rem;
  }
  .subsection:not(:first-child) {
    padding-top: 2rem;
  }
  .subsection {
    margin-bottom: 0.25rem;
  }
  .subsection:not(:first-child) {
    margin-top: 0;
  }
  .subsection {
    margin-top: 1rem;
  }
  .section h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .card dt, .card dd, .card h4 {
    max-width: 34em;
  }
  .section h2 {
    width: 25%;
  }
  .section .section-content {
    width: 75%;
  }
  .subsection h3 {
    width: 33.3333333333%;
  }
  .subsection .subsection-content {
    width: 66.6666666667%;
  }
  .sr-only-l {
    position: absolute;
    padding: 0;
    border-width: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
  }
  .sr-only-focusable-l:focus {
    position: relative;
    width: auto;
    height: auto;
    clip: initial;
    margin: inherit;
    border: initial;
  }
  .section h2 {
    background: transparent;
  }
  .lists .subsection-content ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    -moz-column-gap: 1rem;
         column-gap: 1rem;
  }
  .lists .subsection-content ul > * {
    flex-basis: calc(50% - 0.5rem);
  }
  .section h2 {
    width: 25%;
  }
  .section .section-content {
    width: 75%;
  }
}

footer p {
    max-width: 100%;
}

@media screen and (min-width: 1350px) {
  .section h2 {
    width: 20%;
  }
  .subsection h3 {
    width: 25%;
  }
  .subsection .subsection-content {
    width: 75%;
  }
  .section .section-content {
    width: 80%;
  }
  .sr-only-xl {
    position: absolute;
    padding: 0;
    border-width: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    margin: -1px;
  }
  .sr-only-focusable-xl:focus {
    position: relative;
    width: auto;
    height: auto;
    clip: initial;
    margin: inherit;
    border: initial;
  }
  .lists .subsection-content ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    -moz-column-gap: 1rem;
         column-gap: 1rem;
  }
  .lists .subsection-content ul > * {
    flex-basis: calc(32% - 0.5rem);
  }
  .section h2 {
    width: 20%;
  }
  .subsection h3 {
    width: 25%;
  }
  .subsection .subsection-content {
    width: 75%;
  }
  .section .section-content {
    width: 80%;
  }
}
header.home h1 {
  font-size: 2rem;
}
@media screen and (min-width: 768px) {
  header.home h1 {
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.0275em;
  }
}
@media screen and (min-width: 1024px) {
  header.home h1 {
    font-size: 4rem;
  }
}

abbr {
  font-feature-settings: "c2sc";
}

abbr.normal {
  font-feature-settings: normal;
}

a:hover, a:focus {
  background: var(--texto);
  color: var(--fundo);
  padding: 2px 0px 2px 0px;
}
a:focus {
  outline-offset: 0.1em;
}

.section h2 {
  top: -0.85em;
}
@media screen and (min-width: 1024px) {
  .section h2 {
    top: auto;
  }
}

/* Hamburger Menu */

#menuToggle {
	display: block;
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 1;
	-webkit-user-select: none;
	user-select: none;
}

#menuToggle input {
	display: block;
	width: 40px;
	height: 32px;
	position: absolute;
	top: -7px;
	left: -5px;
	cursor: pointer;
	opacity: 0;
	z-index: 2;
	-webkit-touch-callout: none;
}

#menuToggle span {
	display: block;
	width: 33px;
	height: 4px;
	margin-bottom: 5px;
	position: relative;
	background: #000;
	border-radius: 3px;
	z-index: 1;
	transform-origin: 4px 0px;
	transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
	background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
	opacity 0.55s ease;
}

#menuToggle span:first-child {
	transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
	transform-origin: 0% 100%;
}

#menuToggle input:checked~span {
	opacity: 1;
	transform: rotate(45deg) translate(-2px, -1px);
	background: #232323;
}

#menuToggle input:checked~span:nth-last-child(3) {
	opacity: 0;
	transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked~span:nth-last-child(2) {
	opacity: 1;
	transform: rotate(-45deg) translate(0, -1px);
}

#menu {
	position: absolute;
	width: 400px;
	margin-top: -100px;
	padding: 50px;
	padding-top: 125px;
	right: -100px;
	background: white;
	list-style-type: none;
	-webkit-font-smoothing: antialiased;
	transform-origin: 0% 0%;
	transform: translate(100%, 0);
	transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
	padding: 10px 60px;
	font-size: 22px;
text-align: right;
}

#menu li a {
    font-weight: bold;
    text-decoration: none;
    text-transform: lowercase;
}

#menuToggle input:checked~ul {
	transform: scale(1.0, 1.0);
	opacity: 1;
}

/* Blog e portfólio: só o que a home não tem (navegação, datas e corpo de texto corrido). */

.sr-only-focusable:focus {
  display: inline-block;
  margin: 0.25rem 2rem 0;
}

/* Na mesma linha do rótulo da página, cuja posição vem do padding de main. */
.site-nav {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1;
}

.site-nav ul {
  display: flex;
  column-gap: 0.75rem;
  margin: 0;
}

/* A altura de linha iguala a do rótulo, que usa letra maior nessa faixa. */
.site-nav li {
  font-size: 1rem;
  line-height: 1.4375;
}

.site-nav [aria-current] {
  font-weight: 700;
}

.site-nav-abrir, .site-nav-botao {
  display: none;
}

/* Menu hambúrguer. Usa checkbox para abrir e fechar sem JavaScript. O limite é a menor largura
   em que o menu ainda cabe em uma linha ao lado do rótulo mais comprido, "Wagner Brahm". */
@media screen and (max-width: 22.99rem) {
  .site-nav {
    top: 1.35rem;
    right: 1.375rem;
  }
  .site-nav-abrir {
    display: inline-block;
  }
  .site-nav-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
  }
  .site-nav-abrir:focus-visible + .site-nav-botao {
    outline: 2px solid var(--texto);
  }
  .site-nav-barras, .site-nav-barras::before, .site-nav-barras::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--texto);
  }
  .site-nav-barras {
    position: relative;
  }
  .site-nav-barras::before, .site-nav-barras::after {
    content: "";
    position: absolute;
  }
  .site-nav-barras::before {
    top: -0.5rem;
  }
  .site-nav-barras::after {
    top: 0.5rem;
  }
  .site-nav-abrir:checked + .site-nav-botao .site-nav-barras {
    background: transparent;
  }
  .site-nav-abrir:checked + .site-nav-botao .site-nav-barras::before {
    top: 0;
    transform: rotate(45deg);
  }
  .site-nav-abrir:checked + .site-nav-botao .site-nav-barras::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0.625rem;
    padding: 0.25rem 1rem;
    background: var(--fundo);
    border: 1px solid var(--texto);
  }
  .site-nav-abrir:checked ~ ul {
    display: block;
  }
  .site-nav li {
    font-size: 1.25rem;
    line-height: 2.25;
    text-align: right;
  }
}

header.home.post-header h1 {
  padding-bottom: 2rem;
}

.post-meta {
  margin: 0;
  line-height: 1.5;
}

.post-body {
  margin-top: 2rem;
}

.post-body p, .post-body li, .post-body blockquote, .post-body h3, .post-body h4 {
  line-height: 1.5;
}

.post-body p, .post-body li {
  max-width: 34em;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body > :last-child {
  margin-bottom: 0;
}

.post-body h3, .post-body h4 {
  margin: 2rem 0 0.5rem;
}

/* A home zera os marcadores de lista; num texto corrido eles fazem falta. */
.post-body ul, .post-body ol {
  padding-left: 1.5rem;
}

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

.post-body blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 1px solid;
}

/* Com o texto em peso 300, o "bolder" do normalize não chega a parecer destaque. */
.post-body strong {
  font-weight: 700;
}

.post-body pre {
  max-width: 100%;
  overflow-x: auto;
}

/* Imagens no texto: por padrão na largura da coluna de leitura. */
.post-body figure {
  max-width: 34rem;
  margin: 2rem 0;
}

.post-body figure.larga {
  max-width: 100%;
}

.post-body img {
  display: block;
  width: 100%;
  height: auto;
}

.post-body figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* A imagem ao lado não pode invadir a seção seguinte do texto nem a próxima seção da página. */
.post-body h3, .post-body h4, .post-body figure.larga {
  clear: both;
}

.post-body::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (max-width: 767px) {
  .post-body pre {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 768px) {
  .site-nav {
    top: 4rem;
    right: 4rem;
  }
  /* A altura de linha do h1 nessa faixa é 1; igualar mantém menu e rótulo na mesma base. */
  .site-nav li {
    line-height: 1;
  }
  .site-nav ul {
    column-gap: 1.5rem;
  }
  /* A margem direita alinha a imagem à borda da coluna de leitura, e não à da seção, que é mais larga. */
  .post-body figure.ao-lado {
    float: right;
    width: 14rem;
    margin: 0.25rem max(0px, calc(100% - 34rem)) 2rem 1.5rem;
  }
  .sr-only-focusable:focus {
    margin: 1rem 4rem 0;
  }
}

@media screen and (min-width: 1024px) {
  .post-body {
    margin-top: 1rem;
  }
}
