/* ============================================
   LEO SARTORI — Portfólio de Redação
   Estilo: manuscrito / marca de revisão editorial
   Layout: sidebar fixa + conteúdo em caixas

   Paleta de referência:
   paper     #f3ead6   ink       #201a12
   ink-soft  #6e6250   rust      #a8452a
   navy      #28425a
   ============================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #f3ead6;
/* linha abaixo é a granulação do fundo. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
  color: #201a12;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

@media (min-width: 761px) {
  .page-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 48px;
    align-items: flex-start;
  }
}

/* ---------- Registration mark (signature element) ---------- */

.crosshair {
  width: 22px;
  height: 22px;
  margin: 0 0 24px;
  position: relative;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: #a8452a;
}

.crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.crosshair::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  transform: translateX(-50%);
}

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

@media (min-width: 761px) {
  .sidebar { position: sticky; top: 48px; margin-bottom: 0; }
}

.sidebar .site-name {
  font-size: 1.35rem;
  padding-bottom: 12px;
}

.sidebar .tagline {
  font-size: 0.85rem;
  margin-bottom: 28px;
}

nav.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 0.85rem;
}

nav.menu a {
  display: block;
  width: 100%;
  border: 1px solid #201a12;
  padding: 11px 14px;
  text-align: center;
  text-decoration: none;
  color: #201a12;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

nav.menu a .idx {
  opacity: 0.5;
  margin-right: 6px;
}

nav.menu a:hover,
nav.menu a:focus-visible {
  border-color: #a8452a;
  color: #a8452a;
}

nav.menu a.current {
  background: #201a12;
  color: #f3ead6;
  border-color: #201a12;
}

nav.menu a.current .idx { color: #a8452a; opacity: 1; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #d8c9a3;
  font-size: 0.78rem;
  color: #6e6250;
}

.sidebar-foot p { margin: 0 0 6px; }
.sidebar-foot a { color: #6e6250; text-decoration-color: #6e6250; }
.sidebar-foot a:hover { color: #a8452a; text-decoration-color: #a8452a; }

/* ---------- Header (name + tagline, reused in sidebar) ---------- */

.site-name {
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #201a12;
}

.tagline {
  font-size: 1rem;
  color: #6e6250;
  margin: 0 0 32px;
}

.tagline .strike {
  text-decoration: line-through;
  text-decoration-color: #a8452a;
  text-decoration-thickness: 1.5px;
}

.tagline .mark {
  text-decoration: underline;
  text-decoration-color: #a8452a;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Typography ---------- */

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 20px;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 44px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8c9a3;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

p { margin: 0 0 20px; }

a {
  color: #201a12;
  text-decoration: underline;
  text-decoration-color: #a8452a;
  text-underline-offset: 3px;
}

a:hover { color: #a8452a; }

.lede { font-size: 1.05rem; }

/* handwritten emphasis, used sparingly */
.pen {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: #a8452a;
}

/* ---------- Intro box (bordered, like the reference site's about box) ---------- */

.intro-box {
  border: 1px solid #201a12;
  padding: 22px 24px;
  margin: 0 0 32px;
}

.intro-box .field-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8452a;
  margin-bottom: 10px;
}

.intro-box p:last-child { margin-bottom: 0; }

/* ---------- Sample entries (dossier cards) ---------- */

.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.card {
  border: 1px solid #201a12;
  padding: 20px 22px;
  position: relative;
}

.card .entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e6250;
  margin-bottom: 10px;
}

.card .entry-head .no {
  color: #a8452a;
  font-weight: 700;
}

.card .kicker {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: #28425a;
  display: block;
  margin-bottom: 2px;
}

.card p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .page-shell { padding: 40px 20px 64px; }
  .sidebar .site-name { font-size: 1.5rem; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #a8452a;
  outline-offset: 2px;
}