/* Caderno profissional / tinta azul — Georgia + system-ui only, no remote assets. */
:root {
  --porcelain: #f4f7fa;
  --ink: #173247;
  --muted: #4f6372;
  --paper: #ffffff;
  --rule: #8da2b3;
  --on-ink: #ffffff;
  --focus: #173247;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

p,
h1,
h2,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

a {
  color: var(--ink);
  touch-action: manipulation;
}

/* Keyboard focus: 3px, offset 3px, ink on porcelain/paper. No movement. */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Header: notice (non-sticky by design) + identification + navigation */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.notice {
  padding-block: 0.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.site-header .notice {
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem;
}

.identity {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* Hero: 12-column letterpress name block + modest portrait margin region */
.hero {
  padding-block: 3rem 3.5rem;
}

.hero-grid {
  display: block;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.support {
  max-width: 34rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 3px double var(--ink);
  color: var(--muted);
}

/* Portrait: native 320x320, never upscaled or cropped */
.portrait {
  margin-top: 2rem;
}

.portrait img {
  display: block;
  width: 256px;
  max-width: min(320px, 100%);
  height: auto;
  border: 1px solid var(--rule);
}

/* Editorial rows */
.row {
  padding-block: 2.5rem;
  border-top: 1px solid var(--ink);
}

.row-paper {
  background: var(--paper);
}

.row-grid {
  display: block;
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.125rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.row-body {
  max-width: 40rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  .cta:active {
    transform: scale(0.97);
  }
}

/* Footer */
.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--ink);
}

.site-footer .notice {
  padding-block: 0.5rem 0.25rem;
}

.note {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (min-width: 600px) {
  body {
    font-size: 1.125rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .wrap {
    width: min(1200px, 100% - 64px);
  }

  .hero {
    padding-block: 5rem 6rem;
  }

  .hero-grid,
  .row-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .hero-text {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  /* Independent margin region, aligned to the top of the name block, never stretched. */
  .portrait {
    grid-column: 9 / 13;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin-top: 0.75rem;
  }

  /* Desktop adaptation: the full name has 4 words; cap at 5.5rem and keep a
     smaller floor so it wraps at word boundaries in 7 columns without clipping. */
  h1 {
    font-size: clamp(4rem, 2.2rem + 3.6vw, 5.5rem);
  }

  h2 {
    font-size: 3.5rem;
    margin-bottom: 0;
  }

  .row {
    padding-block: 4rem;
  }

  .row-grid h2 {
    grid-column: 1 / 6;
    grid-row: 1;
  }

  .row-grid .row-body {
    grid-column: 6 / 13;
    grid-row: 1;
    align-self: center;
  }
}

/* Motion: finite, text only, base content visible without any of this. */
@media (prefers-reduced-motion: no-preference) {
  .enter {
    animation: rise 700ms var(--ease-out) both;
  }

  .support.enter {
    animation-delay: 60ms;
  }

  .cta {
    transition: transform 160ms var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter {
    animation: fade 400ms ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Pointer-only hover feedback (160ms, transform only). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cta:hover {
    transform: translateY(-1px);
  }
}
