:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #61706c;
  --green: #084d47;
  --green-deep: #063d38;
  --green-soft: #e9f1ef;
  --line: #d8e0de;
  --surface: #f7f9f8;
  --white: #ffffff;
  --amber: #d89a1d;
  --content: 72rem;
  --article: 48rem;
  --radius: 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-deep);
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 32%, transparent);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.93rem;
  font-weight: 650;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.13rem;
  text-underline-offset: 0.65rem;
}

main {
  flex: 1;
}

.home-main {
  width: min(calc(100% - 2.5rem), 58rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.home-main h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.destination-list {
  max-width: 44rem;
  margin-top: clamp(2.75rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.destination {
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 720;
  text-decoration: none;
}

.destination::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.destination::after {
  content: "Abrir";
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.destination:hover {
  padding-inline: 0.35rem;
  background: var(--surface);
}

.support-contact {
  margin-top: 2.5rem;
  color: var(--muted);
}

.support-contact strong {
  color: var(--ink);
}

.article-shell {
  width: min(calc(100% - 2.5rem), var(--article));
  margin-inline: auto;
  padding-block: clamp(3.25rem, 7vw, 5.75rem);
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lead {
  margin-top: 1.5rem;
  color: #34413e;
  font-size: 1.08rem;
}

.article-section {
  margin-top: 2.5rem;
}

.article-section h2 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-section h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem;
}

.article-section p,
.article-section ul,
.article-section ol {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.article-section li + li {
  margin-top: 0.45rem;
}

.notice {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--amber);
  background: var(--surface);
}

.contact-panel {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 620;
}

.footer-links a,
.footer-email {
  color: var(--green);
}

.footer-email {
  font-size: 0.9rem;
  white-space: nowrap;
}

.error-main {
  width: min(calc(100% - 2.5rem), 42rem);
  margin: auto;
  padding-block: 5rem;
}

.error-code {
  margin: 0;
  color: var(--green);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.08em;
}

.error-main h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    padding-block: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    text-underline-offset: 0.3rem;
  }

  .home-main,
  .article-shell {
    width: min(calc(100% - 2rem), var(--article));
  }

  .destination {
    min-height: 4.75rem;
    grid-template-columns: 1.5rem 1fr;
  }

  .destination::after {
    display: none;
  }

  .article-header {
    margin-bottom: 2.25rem;
  }

  .article-section {
    margin-top: 2rem;
  }

  .footer-inner {
    padding-block: 1.5rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-email {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .article-shell {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
