/* Self-hosted fonts (Red Hat Text + Red Hat Mono, variable 300-700),
   latin and latin-ext subsets, served from this domain. font-display: swap. */
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/red-hat-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/red-hat-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/red-hat-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
  estilo.css: single stylesheet for kde-redhat.org
  Concept: a working sysadmin's field guide. Dark blue-charcoal theme in the
  Breeze/Fedora family, Red Hat Mono for commands and headings, Red Hat Text
  for body copy, terminal blocks front and center.
*/

:root{
  --bg: #101418;
  --bg-glow: #16202c;
  --surface: #1a222c;
  --surface-2: #141b23;
  --border: #2a3542;
  --text: #d9e0e7;
  --text-soft: #8fa1b3;
  --blue: #3daee9;
  --blue-deep: #294172;
  --green: #3fb950;
  --amber: #e5a50a;
  --term-bg: #0b0f14;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background:
    radial-gradient(ellipse 900px 520px at 50% -10%, var(--bg-glow) 0%, var(--bg) 60%),
    var(--bg);
  color: var(--text);
  font-family: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono{ font-family: "Red Hat Mono", ui-monospace, Consolas, monospace; }

a{ color: var(--blue); text-decoration-color: rgba(61,174,233,0.4); }
a:hover{ color: #7fc9f0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img{ max-width: 100%; }

.wrap{
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ===== system plate: identity on the home, metadata on posts ===== */
.placa{
  font-family: "Red Hat Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  background: var(--surface-2);
  animation: fadeUp .5s ease-out both;
}
.placa .k{ color: #78909f; text-transform: uppercase; }
.placa .v{ color: var(--text); }
.placa .full{ grid-column: 1 / -1; color: var(--text-soft); }
.placa a{ color: var(--blue); }

/* ===== short navigation notice (top of /origem/, for example) ===== */
.aviso{
  font-family: "Red Hat Mono", monospace;
  font-size: 12.5px;
  color: var(--text-soft);
  background: rgba(61, 174, 233, 0.07);
  border: 1px solid rgba(61, 174, 233, 0.35);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 24px;
  animation: fadeUp .4s ease-out both;
}
.aviso a{ color: var(--blue); }

/* ===== back link at the top of a post ===== */
.voltar{
  margin: 0 0 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.voltar a{ color: var(--text-soft); text-decoration: none; }
.voltar a:hover{ color: var(--blue); text-decoration: underline; }

header.hero{
  animation: fadeUp .6s ease-out both;
  animation-delay: .08s;
}

h1{
  font-family: "Red Hat Mono", monospace;
  font-weight: 700;
  font-size: clamp(28px, 5.4vw, 46px);
  letter-spacing: -0.01em;
  color: #eef3f7;
  margin: 0 0 4px;
}
.kicker{
  font-family: "Red Hat Mono", monospace;
  font-size: 13px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}

/* ===== content card: all long-form content lives here ===== */
.cartao{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 40px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.cartao > *:first-child{ margin-top: 0; }
.cartao + .cartao{ margin-top: 24px; }

.cartao h2{
  font-family: "Red Hat Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #eef3f7;
}
.cartao h3{
  font-family: "Red Hat Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #eef3f7;
}
.cartao p{ margin: 0 0 16px; }
.cartao ul, .cartao ol{ margin: 0 0 16px; padding-left: 22px; }
.cartao li{ margin-bottom: 6px; }
.cartao blockquote{
  margin: 20px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--blue);
  color: var(--text-soft);
  font-style: italic;
}
.cartao code{
  font-family: "Red Hat Mono", monospace;
  font-size: 0.88em;
  background: var(--term-bg);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: #cfe3f2;
}

/* ===== terminal block: command + expected output ===== */
.cartao pre{
  background: var(--term-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0 0 20px;
  overflow-x: auto;
  font-family: "Red Hat Mono", ui-monospace, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfe3f2;
}
.cartao pre code{ font-family: inherit; font-size: inherit; background: none; border: none; padding: 0; color: inherit; }
pre .output{ color: var(--green); }
pre .comment{ color: #78909f; }

.snippet{
  font-family: "Red Hat Mono", monospace;
  font-size: 13.5px;
  background: var(--term-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  margin: 16px 0;
  white-space: pre-wrap;
  overflow-x: auto;
  color: #cfe3f2;
}

/* ===== TL;DR panel: the answer in the first scroll ===== */
.tldr{
  background: var(--surface-2);
  border: 1px solid var(--blue-deep);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.tldr .rotulo{
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.tldr p{ margin: 0 0 12px; }
.tldr pre{ margin-bottom: 0; }

/* ===== "If this fails" panel ===== */
.iffails{
  background: var(--surface-2);
  border: 1px solid rgba(229, 165, 10, 0.4);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 24px 0;
}
.iffails .rotulo{
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.iffails p, .iffails ul{ margin: 0 0 10px; }
.iffails > *:last-child{ margin-bottom: 0; }

/* ===== dry affiliate disclosure ===== */
.disclosure{
  font-family: "Red Hat Mono", monospace;
  font-size: 11.5px;
  color: var(--text-soft);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 8px 0;
  margin: 16px 0;
}

/* source note at the end of a post */
.fonte-nota{ opacity: .75; font-size: .85em; }

/* ===== author box (end of post) ===== */
.box-autor{ margin-top: 24px; }
.box-autor .rotulo{
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

/* ===== post list on the home ===== */
.lista-posts{ list-style: none; margin: 0; padding: 0; }
.lista-posts li{
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.lista-posts li:last-child{ border-bottom: none; }
.lista-posts .data{
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}
.lista-posts .titulo-post{
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}
.lista-posts .titulo-post a{ color: var(--text); text-decoration: none; }
.lista-posts .titulo-post a:hover{ color: var(--blue); text-decoration: underline; }
.lista-posts .descricao-post{ margin: 0; color: var(--text-soft); font-size: 15px; }

.placeholder-vazio{
  font-family: "Red Hat Mono", monospace;
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px 0 24px;
}

/* ===== footer ===== */
footer.rodape{
  margin-top: 48px;
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
  color: #78909f;
  text-align: center;
}
footer.rodape a{ color: var(--text-soft); }

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px){
  .cartao{ padding: 20px 20px 8px; }
  .placa{ grid-template-columns: 1fr; }
}

@media (max-width: 380px){
  .wrap{ padding: 40px 14px 64px; }
  h1{ font-size: 26px; }
  .cartao{ padding: 16px 16px 8px; }
}
