:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #ebe3d2;
  --ink: #1c2a21;
  --muted: #555b4a;
  --cta-bg: #1f3a2c;
  --cta-bg-hover: #2e5440;
  --cta-ink: #f6f1e7;
  --focus: #7a3e00;
  --rule: #b8b29c;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

p {
  max-width: 65ch;
}

[id] {
  scroll-margin-top: 1rem;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

img {
  display: block;
}

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

/* Headings */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2.75rem;
  font-size: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);
}

h2 {
  font-size: 34px;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
}

/* Notice (separate, discreet) */
.notice {
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  padding-block: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding-block: 1rem;
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ident {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.nav-list a, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Sections */
.hero {
  padding-block: 3rem 4rem;
}

.band {
  border-top: 1px solid var(--rule);
  padding-block: 3.5rem;
}

.flow > * + * {
  margin-top: 1.25rem;
}

.flow > .action {
  margin-top: 2rem;
}

.s-note, .foot-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.portrait {
  margin-top: 2rem;
}

.portrait img {
  width: 160px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px var(--rule);
}

/* Call to action */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

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

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Pointer feedback only where hover exists */
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    background: var(--cta-bg-hover);
  }

  .nav-list a:hover, .text-link:hover {
    color: var(--muted);
  }
}

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

  h2 {
    font-size: 44px;
  }

  .lead {
    font-size: 22px;
  }

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

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

  h2 {
    font-size: 56px;
  }

  .lead {
    font-size: 24px;
  }

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

  .band {
    padding-block: 6rem;
  }

  .site-header .wrap, .site-footer .wrap, .flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .site-header .wrap {
    align-items: center;
  }

  .site-header .ident {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .site-header nav {
    grid-column: 8 / 13;
    grid-row: 1;
  }

  .nav-list {
    justify-content: flex-end;
  }

  .flow {
    row-gap: 1.5rem;
  }

  .flow > * + *, .flow > .action {
    margin-top: 0;
  }

  .hero h1 {
    grid-column: 1 / 12;
    grid-row: 1;
  }

  .hero .lead {
    grid-column: 6 / 13;
    grid-row: 2;
  }

  .hero .action {
    grid-column: 6 / 13;
    grid-row: 3;
    margin-top: 0.5rem;
  }

  .s-title {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .s-body {
    grid-column: 7 / 13;
    grid-row: 1;
    padding-top: 0.5rem;
  }

  .s-action {
    grid-column: 7 / 13;
    grid-row: 2;
    margin-top: 0;
  }

  .s-note {
    grid-column: 7 / 13;
    grid-row: 2;
  }

  #perfil .s-note {
    grid-row: 3;
  }

  .portrait {
    grid-column: 1 / 6;
    grid-row: 2;
    margin-top: 0;
  }

  .site-footer .ident {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .foot-note {
    grid-column: 7 / 13;
    grid-row: 1;
  }

  .site-footer .text-link {
    grid-column: 7 / 13;
    grid-row: 2;
    justify-self: start;
  }
}

/* Hero entry: text only, finite, never the portrait or the later sections */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Press feedback: transform only, never color or background */
@media (prefers-reduced-motion: no-preference) {
  .cta {
    transition: transform 160ms var(--ease-out);
  }

  .cta:active:not(:focus-visible) {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .action {
    animation: rise 700ms var(--ease-out) backwards;
  }

  .hero .lead {
    animation-delay: 60ms;
  }

  .hero .action {
    animation-delay: 120ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero .action {
    animation: fade 400ms ease-out backwards;
  }
}
