/*
Theme Name: Fabio Autor
Theme URI: https://example.com/fabio-autor
Author: Fabio T. Sousa
Description: Tema WordPress editavel para site de autor, com Home, Sobre o Autor, Livros, Novidades e Blog.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: fabio-autor
*/

:root {
  --fa-bg: #080909;
  --fa-panel: #11110f;
  --fa-panel-soft: #171613;
  --fa-line: rgba(193, 145, 71, 0.32);
  --fa-gold: #c49147;
  --fa-gold-soft: #ddbd7b;
  --fa-text: #e9e3d7;
  --fa-muted: #b8b0a3;
}

body {
  background:
    radial-gradient(circle at 80% 10%, rgba(196, 145, 71, 0.12), transparent 28rem),
    linear-gradient(180deg, #070808 0%, #11110f 45%, #070808 100%);
  color: var(--fa-text);
  margin: 0;
}

a {
  color: var(--fa-gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.fa-shell {
  margin: 0 auto;
  max-width: 1180px;
  width: min(calc(100% - 48px), 1180px);
}

.fa-header-inner,
.fa-brand,
.fa-footer-grid {
  align-items: center;
  display: flex;
  gap: 22px;
}

.fa-header-inner {
  justify-content: space-between;
}

.fa-brand {
  color: var(--fa-text);
  text-decoration: none;
}

.fa-brand strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fa-brand small {
  color: var(--fa-gold);
  display: block;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.fa-header {
  border-bottom: 1px solid rgba(196, 145, 71, 0.2);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.fa-brand-mark {
  background: url("assets/compass.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(196, 145, 71, 0.22));
  flex: 0 0 58px;
  height: 58px;
  width: 58px;
}

.fa-nav a {
  color: var(--fa-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.fa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.fa-hero {
  min-height: 760px;
  border-bottom: 1px solid rgba(196, 145, 71, 0.24);
  overflow: hidden;
}

.fa-php-hero {
  align-items: center;
  background-position: center;
  background-size: cover;
  display: flex;
  padding: 86px 0;
}

.fa-hero-copy {
  max-width: 560px;
}

.fa-hero-copy h1,
.fa-php-section h2,
.fa-readable h1 {
  color: var(--fa-text);
  font-weight: 400;
  line-height: 1.05;
}

.fa-hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  margin: 0 0 24px;
}

.fa-hero-copy p,
.fa-php-section p,
.fa-readable p,
.fa-post-card p {
  color: #cfc6b8;
}

.fa-hero .wp-block-cover__background {
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.98) 0%, rgba(7, 8, 8, 0.85) 42%, rgba(7, 8, 8, 0.2) 72%),
    radial-gradient(circle at 72% 45%, rgba(196, 145, 71, 0.22), transparent 28rem) !important;
  opacity: 1 !important;
}

.fa-kicker {
  color: var(--fa-gold-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fa-rule {
  display: block;
  margin: 0 0 24px;
  width: 210px;
  height: 1px;
  background: linear-gradient(90deg, var(--fa-gold), transparent);
}

.fa-plain-button {
  border: 1px solid var(--fa-gold);
  color: var(--fa-gold-soft);
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-top: 12px;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
}

.fa-plain-button:hover {
  background: var(--fa-gold);
  color: #0b0906;
}

.fa-button .wp-block-button__link,
.wp-block-button.fa-button .wp-block-button__link {
  border: 1px solid var(--fa-gold);
  background: transparent;
  color: var(--fa-gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.fa-button .wp-block-button__link:hover,
.wp-block-button.fa-button .wp-block-button__link:hover {
  background: var(--fa-gold);
  color: #0b0906;
  border-color: var(--fa-gold);
}

.fa-section {
  border-bottom: 1px solid rgba(196, 145, 71, 0.22);
}

.fa-php-section {
  padding: 70px 0;
}

.fa-two-col,
.fa-book-grid,
.fa-newsletter-grid,
.fa-blog-grid {
  display: grid;
  gap: 56px;
}

.fa-two-col {
  align-items: center;
  grid-template-columns: minmax(260px, 38%) 1fr;
}

.fa-two-col img {
  max-width: 100%;
}

.fa-book-grid {
  align-items: center;
  grid-template-columns: minmax(220px, 34%) 1fr minmax(220px, 30%);
  margin-top: 42px;
}

.fa-newsletter-grid,
.fa-blog-grid {
  align-items: center;
  grid-template-columns: minmax(260px, 42%) 1fr;
}

.fa-post-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fa-center {
  text-align: center;
}

.fa-gold-text {
  color: var(--fa-gold-soft) !important;
  font-size: 1.25rem;
}

.fa-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--fa-panel);
  border: 1px solid rgba(196, 145, 71, 0.26);
}

.fa-image-frame {
  border: 1px solid rgba(196, 145, 71, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.fa-book-cover {
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 55% 28%, rgba(196, 145, 71, 0.32), transparent 9rem),
    linear-gradient(160deg, #20201d, #080909 70%);
  border: 1px solid rgba(196, 145, 71, 0.38);
  min-height: 360px;
}

.fa-book-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.fa-card {
  border: 1px solid rgba(196, 145, 71, 0.3);
  background: rgba(10, 11, 11, 0.72);
  height: 100%;
  padding: 28px;
}

.fa-newsletter {
  background: linear-gradient(90deg, rgba(196, 145, 71, 0.1), rgba(196, 145, 71, 0.02));
}

.fa-newsletter input[type="email"] {
  background: #0b0c0c;
  border: 1px solid rgba(196, 145, 71, 0.42);
  color: var(--fa-text);
  min-height: 48px;
  padding: 0 16px;
  width: 100%;
}

.fa-newsletter-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.fa-newsletter input[type="submit"] {
  background: var(--fa-gold);
  border: 1px solid var(--fa-gold);
  color: #0b0906;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 48px;
  padding: 0 24px;
  text-transform: uppercase;
}

.fa-footer {
  border-top: 1px solid rgba(196, 145, 71, 0.2);
}

.fa-footer-grid {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.fa-footer h3 {
  color: var(--fa-gold);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fa-page {
  padding: 72px 0;
}

.fa-readable {
  max-width: 860px;
}

.fa-readable h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.fa-content-list {
  display: grid;
  gap: 24px;
}

.fa-post-card h1,
.fa-post-card h3 {
  margin-top: 0;
}

@media (max-width: 782px) {
  .fa-hero {
    min-height: 640px;
  }

  .fa-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(7, 8, 8, 0.92), rgba(7, 8, 8, 0.78)) !important;
  }

  .fa-nav {
    font-size: 12px;
  }

  .fa-newsletter-form {
    grid-template-columns: 1fr;
  }

  .fa-header-inner,
  .fa-nav {
    justify-content: center;
  }

  .fa-header-inner,
  .fa-two-col,
  .fa-book-grid,
  .fa-newsletter-grid,
  .fa-blog-grid,
  .fa-footer-grid,
  .fa-post-grid {
    grid-template-columns: 1fr;
  }

  .fa-header-inner {
    display: grid;
  }
}
