:root {
  color-scheme: light;
  --color-ink: #171717;
  --color-navy: #000;
  --color-muted: #838383;
  --color-accent: #a58e55;
  --color-paper: #fff;
  --color-line: #ede7de;
  --content-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: "Open Sans", sans-serif;
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 1.6rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-paper);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 5px 22px rgba(29, 41, 54, 0.12);
}

.home-template .site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
}

.home-template .site-content {
  --hero-header-offset: 152px;
  position: relative;
  z-index: 1;
  background: var(--color-paper);
}

.site-floating-header {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header--home.is-scrolled .site-floating-header {
  background: var(--color-paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-header-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-social-bar {
  height: var(--social-height, 64px);
  flex: 0 0 var(--social-height, 64px);
  min-height: 0;
  overflow: visible;
  color: #fff;
  background: var(--color-navy);
}

.site-social-bar .site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--social-height, 64px);
}

.site-contact-info {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 1.25rem;
}

.site-contact-info a:last-child {
  color: var(--color-accent);
}

.site-contact-info a:hover {
  color: #fff;
}

.site-social-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-social-links .icon-content {
  position: relative;
  display: block;
  margin: 0 5px;
  padding: 0;
  list-style: none;
}

.site-social-links .site-social-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition:
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-social-links .site-social-link .filled {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: #000;
  transition: height 220ms ease;
}

.site-social-links .site-social-link svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.site-social-links .site-social-link:hover,
.site-social-links .site-social-link:focus-visible {
  color: #fff;
  box-shadow: 3px 2px 24px rgba(0, 0, 0, 0.18);
}

.site-social-links .site-social-link:hover .filled,
.site-social-links .site-social-link:focus-visible .filled {
  height: 100%;
}

.site-social-links [data-social="linkedin"] .filled,
.site-social-links [data-social="linkedin"] + .tooltip {
  background: #0274b3;
}

.site-social-links [data-social="github"] .filled,
.site-social-links [data-social="github"] + .tooltip {
  background: #24262a;
}

.site-social-links [data-social="instagram"] .filled,
.site-social-links [data-social="instagram"] + .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #e1306c,
    #fd1f1f
  );
}

.site-social-links [data-social="youtube"] .filled,
.site-social-links [data-social="youtube"] + .tooltip {
  background: #f00;
}

.site-social-links .tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 120;
  padding: 5px 9px;
  border-radius: 4px;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -3px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  pointer-events: none;
}

.site-social-links .icon-content:hover .tooltip,
.site-social-links .icon-content:focus-within .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  color: #fff;
  opacity: 0.88;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-social-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.site-social-link svg {
  display: block;
  width: 19px;
  height: 19px;
}

.site-main-nav {
  position: relative;
  z-index: 2;
}

.site-main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height, 88px);
  gap: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--color-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  transition: opacity 180ms ease;
}

.site-brand-mark {
  position: relative;
  display: block;
  width: min(320px, 40vw);
  height: 72px;
  flex: 0 0 auto;
  max-width: 100%;
}

.site-brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.site-brand-logo--light {
  opacity: 1;
  visibility: visible;
}

.site-brand-logo--dark {
  opacity: 0;
  visibility: hidden;
}

.site-brand--switchable .site-brand-logo--light {
  opacity: 0;
  visibility: hidden;
}

.site-brand--switchable .site-brand-logo--dark {
  opacity: 1;
  visibility: visible;
}

.site-header--home .site-brand--switchable .site-brand-logo--light {
  opacity: 1;
  visibility: visible;
}

.site-header--home .site-brand--switchable .site-brand-logo--dark {
  opacity: 0;
  visibility: hidden;
}

.site-header--home.is-scrolled .site-brand--switchable .site-brand-logo--light,
.site-header--home.is-menu-open
  .site-brand--switchable
  .site-brand-logo--light {
  opacity: 0;
  visibility: hidden;
}

.site-header--home.is-scrolled .site-brand--switchable .site-brand-logo--dark,
.site-header--home.is-menu-open .site-brand--switchable .site-brand-logo--dark {
  opacity: 1;
  visibility: visible;
}

.site-navigation .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation .nav li {
  margin: 0;
  padding: 0;
}

.site-navigation .nav a {
  position: relative;
  display: inline-block;
  padding: 12px 0;
  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.site-navigation .nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-navigation .nav a:hover::after,
.site-navigation .nav .nav-current a::after {
  transform: scaleX(1);
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-line);
  background: transparent;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-navy);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.site-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border-bottom-left-radius: clamp(48px, 8vw, 140px);
  background: #171717;
}

.site-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  content: "";
  pointer-events: none;
}

.site-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.site-header--home .site-social-bar {
  position: relative;
  z-index: 2;
  background: transparent;
}

.site-header--home .site-main-nav {
  background: transparent;
  transition: background-color 180ms ease;
}

.site-header--home .site-brand,
.site-header--home .site-navigation .nav a,
.site-header--home .site-social-link {
  color: #fff;
}

.site-header--home .site-menu-toggle {
  border-color: rgba(255, 255, 255, 0.42);
}

.site-header--home .site-menu-toggle span {
  background: #fff;
}

.site-header--home.is-scrolled .site-social-bar,
.site-header--home.is-scrolled .site-main-nav {
  background: var(--color-paper);
}

.site-header--home.is-scrolled .site-brand,
.site-header--home.is-scrolled .site-navigation .nav a,
.site-header--home.is-scrolled .site-social-link,
.site-header--home.is-scrolled .site-contact-info,
.site-header--home.is-scrolled .site-contact-info a {
  color: var(--color-ink);
}

.site-header--home.is-scrolled .site-menu-toggle {
  border-color: var(--color-line);
}

.site-header--home.is-scrolled .site-menu-toggle span {
  background: var(--color-ink);
}

.site-hero-image,
.site-hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.site-hero-video {
  z-index: 1;
}

.site-hero-content {
  position: relative;
  inset: 0;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--hero-header-offset, 152px) 0 88px;
  color: #fff;
  pointer-events: none;
}

.site-hero-content > * {
  pointer-events: auto;
}

.site-hero-brand {
  position: absolute;
  top: calc(var(--hero-header-offset, 152px) + 78px);
  left: 10%;
  width: 28%;
  text-align: center;
}

.site-hero-kicker {
  position: static;
  width: auto;
  margin: 0;
  margin-top: 12px;
  color: var(--color-paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.site-hero-content h1 {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 6.4rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.site-hero-title-logo {
  display: block;
  width: 100%;
  max-height: 220px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.site-hero-description {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 45%;
  max-width: 600px;
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.5rem;
  line-height: 1.1;
  text-align: right;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.45);
}

.site-hero-link {
  position: absolute;
  bottom: 90px;
  left: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 150px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.site-hero-video-toggle {
  position: absolute;
  right: 8%;
  bottom: 42px;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 1.2rem;
  cursor: pointer;
}

.site-hero-video-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.site-hero-video.is-video-error {
  display: none;
}

.site-hero-link span {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1;
  transition: color 180ms ease;
}

.site-hero-link:hover {
  color: #e0c58b;
}

.site-header.is-menu-open .site-menu-toggle span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-menu-toggle span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.site-content {
  min-height: 60vh;
}

.home-intro {
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--color-line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-intro h1,
.post-header h1 {
  max-width: 850px;
  margin: 0;
  color: var(--color-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.12;
}

.home-intro > p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.8rem;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.post-card {
  min-width: 0;
  border-bottom: 1px solid var(--color-line);
}

.post-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf0f2;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card-image:hover img {
  transform: scale(1.03);
}

.post-card-content {
  padding: 20px 0 24px;
}

.post-card time,
.post-meta {
  color: var(--color-muted);
  font-size: 1.25rem;
}

.post-card h2 {
  margin: 8px 0;
  color: var(--color-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.25;
}

.post-card-content > p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.read-more {
  color: var(--color-navy);
  font-size: 1.3rem;
  font-weight: 700;
}

.read-more::after {
  margin-left: 8px;
  color: var(--color-accent);
  content: "→";
}

.post-content {
  max-width: 900px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.post-header {
  margin-bottom: 36px;
}

.post-meta {
  margin: 16px 0 0;
}

.post-feature-image {
  margin: 0 0 44px;
}

.post-feature-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.post-body {
  max-width: 740px;
  margin-inline: auto;
  font-size: 1.8rem;
  line-height: 1.8;
}

.post-body > * + * {
  margin-top: 1.4em;
}

.post-body h2,
.post-body h3 {
  color: var(--color-navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.post-body a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.post-body .kg-card {
  margin: 2.4em 0;
}

.post-body .kg-width-wide {
  position: relative;
  width: min(1000px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-body .kg-width-full {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-body .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-body .kg-gallery-row {
  display: flex;
  gap: 8px;
}

.post-body .kg-gallery-image {
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
}

.post-body .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body .kg-bookmark-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

.post-body .kg-bookmark-container {
  display: flex;
  min-height: 120px;
  color: var(--color-ink);
  text-decoration: none;
}

.post-body .kg-bookmark-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.post-body .kg-bookmark-title {
  color: var(--color-navy);
  font-size: 1.6rem;
  font-weight: 700;
}

.post-body .kg-bookmark-description {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 1.35rem;
  line-height: 1.45;
}

.post-body .kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 1.2rem;
}

.post-body .kg-bookmark-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.post-body .kg-bookmark-author,
.post-body .kg-bookmark-publisher {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-body .kg-bookmark-thumbnail {
  width: 30%;
  min-width: 140px;
  object-fit: cover;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

.site-footer {
  padding: 26px 0;
  color: #dce2e7;
  background: var(--color-navy);
  font-size: 1.3rem;
}

.site-footer .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a:hover {
  color: #fff;
}

@media (min-width: 1920px) {
  .site-header-inner {
    width: min(1360px, calc(100% - 48px));
  }
}

@media (max-width: 1020px) {
  .site-main-nav-inner {
    gap: 22px;
  }

  .site-navigation .nav {
    gap: 16px;
  }

  .site-navigation .nav a {
    font-size: 1.15rem;
  }
}

@media (max-width: 820px) {
  .site-header:not(.site-header--home).is-menu-open {
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
    background: var(--color-paper);
  }

  .site-header--home.is-menu-open .site-floating-header {
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
    background: var(--color-paper);
  }

  .site-header--home .site-social-bar {
    --social-height: 40px;
  }

  .site-social-links .site-social-link {
    width: 34px;
    height: 34px;
  }

  .site-social-links .site-social-link svg {
    width: 19px;
    height: 19px;
  }

  .home-template .site-content {
    --hero-header-offset: 116px;
  }

  .site-contact-info {
    display: none;
  }

  .site-header.is-menu-open .site-social-bar {
    --social-height: 36px;
    height: 36px !important;
    flex-basis: 36px;
    background: var(--color-navy);
  }

  .site-header--home.is-menu-open .site-main-nav {
    background: var(--color-paper);
  }

  .site-header--home.is-menu-open .site-brand,
  .site-header--home.is-menu-open .site-navigation .nav a {
    color: var(--color-ink);
  }

  .site-header--home.is-menu-open .site-menu-toggle {
    border-color: var(--color-line);
  }

  .site-header--home.is-menu-open .site-menu-toggle span {
    background: var(--color-navy);
  }

  .site-brand-mark {
    width: min(280px, 70vw);
    height: 56px;
  }

  .site-header-inner {
    width: min(var(--content-width), calc(100% - 36px));
  }

  .site-main-nav-inner {
    min-height: var(--nav-height, 76px);
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .site-hero-brand {
    top: 100px;
    left: 10%;
    width: 48%;
  }

  .site-hero-content h1 {
    font-size: 4.4rem;
  }

  .site-hero-kicker {
    margin-top: 6px;
    font-size: 1.5rem;
  }

  .site-hero-title-logo {
    max-height: 100px;
  }

  .site-hero-description {
    display: none;
  }

  .site-hero-link {
    bottom: 18px;
    left: 8%;
    width: 130px;
    gap: 4px;
    font-size: 1.1rem;
  }

  .site-hero-link span {
    font-size: 2.4rem;
  }

  .site-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-navigation {
    display: none;
    flex: 0 0 100%;
    padding: 8px 0 20px;
  }

  .site-header.is-menu-open .site-navigation {
    display: block;
  }

  .site-navigation .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-navigation .nav li {
    border-top: 1px solid var(--color-line);
  }

  .site-navigation .nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.5rem;
  }

  .site-navigation .nav a::after {
    display: none;
  }

  .post-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-hero-content {
    padding-top: 36px;
    padding-bottom: 52px;
  }

  .site-hero-content h1 {
    font-size: 4.2rem;
  }

  .site-hero-description {
    font-size: 1.6rem;
  }

  .home-intro {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .post-feed {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 52px;
  }

  .post-content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .site-footer .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Oculta a marca no header transparente, preservando seu espaço */
#site-header.site-header--home:not(.is-scrolled):not(.is-menu-open)
  .site-brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Remove a barra superior e o espaço ocupado por ela */
#site-header.site-header--home.is-scrolled .site-social-bar {
  display: none;
}
