/*
Theme Name: Barbara Frontini
Theme URI: https://barbarafrontini.com
Author: Barbara Frontini
Description: A refined, minimalist and premium WordPress theme for the Barbara Frontini personal brand.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: barbara-frontini
*/

:root {
  --bf-black: #090909;
  --bf-black-soft: #141414;
  --bf-ivory: #f5f0e8;
  --bf-stone: #b8afa2;
  --bf-gold: #c7a35f;
  --bf-gold-light: #e0c993;
  --bf-border: rgba(199, 163, 95, 0.34);
  --bf-white-soft: rgba(255,255,255,0.84);
  --bf-max: 1180px;
  --bf-serif: Baskerville, "Times New Roman", Georgia, serif;
  --bf-sans: Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bf-black);
  color: var(--bf-ivory);
  font-family: var(--bf-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .bf-site-header { top: 32px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.bf-container {
  width: min(calc(100% - 40px), var(--bf-max));
  margin-inline: auto;
}

.bf-section { padding: 110px 0; }

.bf-kicker {
  margin: 0 0 18px;
  color: var(--bf-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.bf-title,
.bf-heading,
.bf-subheading {
  font-family: var(--bf-serif);
  font-weight: 400;
}

.bf-title {
  margin: 0;
  font-size: clamp(46px, 7.5vw, 100px);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.bf-heading {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.bf-subheading {
  margin: 0 0 16px;
  font-size: 30px;
}

.bf-lead {
  max-width: 760px;
  color: #dfd9d0;
  font-family: var(--bf-serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.bf-muted { color: var(--bf-stone); }

.bf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--bf-gold);
  background: transparent;
  color: var(--bf-ivory);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.bf-button:hover,
.bf-button:focus {
  background: var(--bf-gold);
  color: var(--bf-black);
}

.bf-site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(9,9,9,.84);
  backdrop-filter: blur(14px);
}

.bf-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.bf-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.bf-monogram {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--bf-gold);
  color: var(--bf-gold);
  font-family: var(--bf-serif);
  font-size: 20px;
}

.bf-brand-name {
  font-family: var(--bf-serif);
  font-size: 17px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bf-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bf-nav a {
  color: #d8d2c9;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bf-nav a:hover { color: var(--bf-gold); }

.bf-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--bf-ivory);
  font-size: 26px;
  cursor: pointer;
}

.bf-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 145px 0 90px;
  background:
    radial-gradient(circle at 80% 20%, rgba(199,163,95,.10), transparent 34%),
    linear-gradient(135deg, #060606 0%, #121212 100%);
}

.bf-hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -25vw;
  width: 55vw;
  height: 55vw;
  border: 1px solid rgba(199,163,95,.18);
  border-radius: 50%;
}

.bf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.bf-hero-subtitle {
  margin: 30px 0 0;
  color: var(--bf-gold-light);
  font-family: var(--bf-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-style: italic;
}

.bf-hero-copy {
  max-width: 720px;
  margin: 34px 0;
  color: #cfc8be;
}

.bf-grid { display: grid; gap: 28px; }
.bf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bf-card {
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--bf-border);
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  transition: transform .25s ease, border-color .25s ease;
}

.bf-card:hover {
  transform: translateY(-5px);
  border-color: var(--bf-gold);
}

.bf-card-number {
  color: var(--bf-gold);
  font-family: var(--bf-serif);
  font-size: 18px;
}

.bf-card h3 {
  margin: 52px 0 18px;
  font-family: var(--bf-serif);
  font-size: 30px;
  font-weight: 400;
}

.bf-quote {
  padding: 86px 0;
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
  text-align: center;
}

.bf-quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--bf-serif);
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.2;
}

.bf-about {
  background: var(--bf-ivory);
  color: var(--bf-black);
}

.bf-about .bf-muted { color: #5d574f; }

.bf-contact {
  background:
    linear-gradient(rgba(9,9,9,.96), rgba(9,9,9,.96)),
    radial-gradient(circle at 10% 10%, rgba(199,163,95,.22), transparent 40%);
}

.bf-contact-details {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.bf-contact-details a:hover { color: var(--bf-gold); }

.bf-journal-list {
  display: grid;
  gap: 22px;
}

.bf-journal-item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.bf-journal-item time {
  color: var(--bf-gold);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bf-journal-item h2 {
  margin: 8px 0;
  font-family: var(--bf-serif);
  font-size: 34px;
  font-weight: 400;
}

.bf-page {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 150px 0 90px;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--bf-serif);
  font-weight: 400;
}

.entry-content h2 { font-size: 40px; margin-top: 50px; }
.entry-content h3 { font-size: 30px; margin-top: 38px; }

.entry-content a {
  color: var(--bf-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bf-form {
  display: grid;
  gap: 18px;
}

.bf-form label {
  display: grid;
  gap: 8px;
  color: #d8d2c9;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bf-form input,
.bf-form textarea {
  width: 100%;
  border: 1px solid var(--bf-border);
  background: #101010;
  color: var(--bf-ivory);
  padding: 14px 16px;
}

.bf-form textarea { min-height: 160px; resize: vertical; }

.bf-notice {
  padding: 14px 16px;
  border: 1px solid var(--bf-border);
  color: #d8d2c9;
  background: rgba(199,163,95,.06);
}

.bf-site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #928b82;
  font-size: 13px;
}

.bf-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.bf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  body.admin-bar .bf-site-header { top: 46px; }

  .bf-menu-toggle { display: block; }

  .bf-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
    background: #0d0d0d;
    border-bottom: 1px solid var(--bf-border);
  }

  .bf-nav.is-open { display: flex; }

  .bf-grid-2,
  .bf-grid-3 { grid-template-columns: 1fr; }

  .bf-section { padding: 82px 0; }

  .bf-brand-name { display: none; }
}
