/* ===== ORIN FRANCE HOMEPAGE — RESTORED FULL CSS ===== */

:root {
  --of-bg: #f8f4ec;
  --of-paper: #fffdf8;
  --of-soft: #f0e8dc;
  --of-text: #202326;
  --of-muted: #68615a;
  --of-light-muted: #8f867b;
  --of-line: rgba(32, 35, 38, 0.14);
  --of-accent: #b6813c;
  --of-accent-soft: rgba(182, 129, 60, 0.13);
}

/* Hide Astra header/footer ONLY on this redesign page */

body:has(.of-site) .site-header,
body:has(.of-site) .main-header-bar-wrap,
body:has(.of-site) .ast-primary-header-bar,
body:has(.of-site) .ast-mobile-header-wrap,
body:has(.of-site) .site-footer,
body:has(.of-site) footer.site-footer,
body:has(.of-site) .ast-footer-copyright,
body:has(.of-site) .ast-builder-footer-grid-columns {
  display: none !important;
}

body:has(.of-site) .entry-title {
  display: none !important;
}

body:has(.of-site) .site-content,
body:has(.of-site) .content-area,
body:has(.of-site) .ast-container,
body:has(.of-site) article,
body:has(.of-site) .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Base */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--of-bg);
}

.of-site {
  width: min(900px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(circle at 80% 10%, rgba(182, 129, 60, 0.12), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #f6efe4 100%);
  color: var(--of-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.of-wrap {
  width: min(800px, calc(100% - 36px));
  margin: 0 auto;
}

/* Navigation */

.of-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 13px 18px;
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--of-line);
  font-family: Arial, sans-serif;
}

.of-nav a {
  color: var(--of-muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.of-nav a:hover {
  color: var(--of-text);
}

/* Hero */

.of-hero {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--of-line);
}

.of-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 28px;
  align-items: center;
}

.of-kicker,
.of-label,
.of-date {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: var(--of-accent);
  margin-bottom: 14px;
}

.of-hero h1 {
  max-width: 480px;
  font-size: clamp(1.85rem, 2.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin: 0;
}

.of-intro {
  max-width: 500px;
  margin-top: 20px;
  color: var(--of-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.of-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Button — lighter, but not washed out */

.of-button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #c99355;
  color: #fffdf8;
  background: #c99355;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.of-button:hover {
  background: #b77f42;
  border-color: #b77f42;
}

.of-link,
.of-text-link,
.of-card a,
.of-list a,
.of-footer-links a {
  color: var(--of-text);
  text-decoration: none;
  border-bottom: 1px solid var(--of-accent);
}

.of-link:hover,
.of-text-link:hover,
.of-card a:hover,
.of-list a:hover,
.of-footer-links a:hover {
  color: var(--of-accent);
}

/* Hero graphic */

.of-abstract-card {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--of-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(182, 129, 60, 0.06)),
    var(--of-paper);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(32, 35, 38, 0.055);
}

.of-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(182, 129, 60, 0.36);
  border-radius: 50%;
  right: -90px;
  top: -70px;
}

.of-ring::before,
.of-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(182, 129, 60, 0.22);
  border-radius: 50%;
}

.of-ring::before {
  inset: 55px;
}

.of-ring::after {
  inset: 115px;
}

.of-grid-dots {
  position: absolute;
  inset: 54px 36px 36px 48px;
  background-image: radial-gradient(rgba(182, 129, 60, 0.42) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.42;
}

.of-terms {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 7px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  color: var(--of-muted);
}

/* Sections */

.of-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--of-line);
}

.of-soft {
  background: rgba(255, 255, 255, 0.42);
}

.of-feature,
.of-two {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.of-section h2,
.of-contact h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0;
}

.of-section p {
  color: var(--of-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* Cards */

.of-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.of-card {
  background: var(--of-paper);
  border: 1px solid var(--of-line);
  padding: 18px;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(32, 35, 38, 0.045);
}

.of-card h3 {
  color: var(--of-text);
  font-size: 1.15rem;
  line-height: 1.18;
  font-weight: 400;
  margin: 0 0 14px;
}

.of-card p {
  font-size: 0.92rem;
}

/* Profiles */

.of-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.of-profile-card {
  min-height: 78px;
  padding: 16px;
  background: var(--of-paper);
  border: 1px solid var(--of-line);
  color: var(--of-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(32, 35, 38, 0.04);
}

.of-profile-card span {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.64rem;
  color: var(--of-accent);
}

.of-profile-card strong {
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 400;
}

.of-profile-card:hover {
  border-color: rgba(182, 129, 60, 0.55);
}

/* Focus list */

.of-list {
  display: grid;
  gap: 12px;
  font-size: 1rem;
}

.of-list a {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--of-line);
}

/* Statement */

.of-statement {
  max-width: 700px;
}

.of-statement p {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--of-text);
}

/* Contact */

.of-contact {
  padding: 34px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(182, 129, 60, 0.13), transparent 28%),
    #fffdf8;
}

.of-contact h2 {
  max-width: 650px;
  margin: 0 0 26px;
}

.of-contact-box {
  max-width: 680px;
  padding: 22px;
  background: var(--of-paper);
  border: 1px solid var(--of-line);
}

.of-contact-box p {
  color: var(--of-muted);
  font-size: 0.96rem;
  margin-top: 0;
}

.of-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

/* Mobile */

@media (max-width: 760px) {
  .of-site {
    width: 100%;
  }

  .of-wrap {
    width: calc(100% - 28px);
  }

  .of-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    white-space: nowrap;
  }

  .of-hero-grid,
  .of-feature,
  .of-two,
  .of-cards,
  .of-profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .of-abstract-card {
    display: none;
  }

  .of-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    max-width: 100%;
  }

  .of-intro {
    max-width: 100%;
    font-size: 1rem;
  }

  .of-section,
  .of-contact {
    padding: 34px 0;
  }

  .of-section h2,
  .of-contact h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .of-card,
  .of-profile-card {
    min-height: auto;
  }

  .of-button {
    width: 100%;
    text-align: center;
  }
}


.of-contact-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--of-muted);
  max-width: 620px;
  margin: 0 0 22px;
}

/* Final small tightening */
.of-card {
  min-height: 150px !important;
  padding: 15px !important;
}

.of-card p {
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

.of-section {
  padding: 28px 0 !important;
}

.of-two {
  gap: 30px !important;
}

.of-list {
  gap: 8px !important;
}

/* Mobile tightening */
@media (max-width: 760px) {
  .of-site {
    width: 100% !important;
  }

  .of-hero {
    padding: 24px 0 26px !important;
  }

  .of-section,
  .of-contact {
    padding: 24px 0 !important;
  }

  .of-card {
    min-height: auto !important;
    padding: 14px !important;
  }

  .of-card p {
    margin: 8px 0 12px !important;
  }

  .of-profile-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .of-profile-card {
    min-height: auto !important;
    width: auto !important;
    padding: 8px 10px !important;
    display: inline-flex !important;
    box-shadow: none !important;
  }

  .of-profile-card span {
    display: none !important;
  }

  .of-profile-card strong {
    font-size: 0.9rem !important;
  }

  .of-two {
    gap: 18px !important;
  }

  .of-list {
    gap: 6px !important;
  }

  .of-list a {
    padding-bottom: 7px !important;
  }

  .of-statement p,
  .of-contact-text,
  .of-contact-box p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .of-contact-box {
    padding: 14px !important;
  }
}

/* Overall proportional tightening */

.of-hero {
  padding: 38px 0 42px !important;
}

.of-hero h1 {
  max-width: 600px !important;
  line-height: 0.96 !important;
}

.of-hero p {
  max-width: 560px !important;
}

.of-feature {
  padding: 34px 0 !important;
}

.of-feature p {
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  max-width: 520px !important;
}

.of-card {
  padding: 13px !important;
  min-height: 128px !important;
}

.of-card p {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  margin: 8px 0 10px !important;
}

.of-section {
  padding: 26px 0 !important;
}

.of-two {
  gap: 24px !important;
}

@media (max-width: 760px) {

  .of-hero {
    padding: 24px 0 28px !important;
  }

  .of-hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem) !important;
    line-height: 0.98 !important;
  }

  .of-feature p {
    font-size: 0.88rem !important;
  }

  .of-card {
    padding: 11px !important;
    min-height: auto !important;
  }

  .of-card p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
}

/* Container rhythm correction: tighten section boxes after text scale-down */

.of-hero {
  padding-top: 24px !important;
  padding-bottom: 26px !important;
}

.of-section {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.of-contact {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.of-feature,
.of-two {
  align-items: start !important;
  gap: 28px !important;
}

.of-kicker,
.of-label,
.of-date {
  margin-bottom: 8px !important;
}

.of-section h2,
.of-contact h2 {
  margin-bottom: 14px !important;
}

.of-cards,
.of-profile-grid {
  margin-top: 14px !important;
}

.of-card {
  min-height: auto !important;
}

.of-statement p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.of-contact-text {
  margin-bottom: 14px !important;
}

.of-contact-box {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  .of-hero {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
  }

  .of-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .of-contact {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  .of-feature,
  .of-two {
    gap: 16px !important;
  }

  .of-cards,
  .of-profile-grid {
    margin-top: 12px !important;
  }
}

/* Tighten Featured Reference section only */
.of-feature {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.of-feature .of-label {
  margin-bottom: 6px !important;
}

.of-feature h2 {
  margin-bottom: 0 !important;
}

.of-feature p {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.of-feature .of-text-link {
  margin-top: 0 !important;
}

/* Interior page tightening */

.of-interior .of-two {
  gap: 24px !important;
}

.of-interior .of-two h2 {
  font-size: 1.7rem !important;
}

.of-interior .of-two p {
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
}

.of-interior .of-profile-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

.of-interior .of-profile-card {
  min-height: 96px !important;
  padding: 16px !important;
}

@media (max-width: 760px) {
  .of-interior .of-two {
    gap: 12px !important;
  }

  .of-interior .of-two h2 {
    font-size: 1.45rem !important;
  }

  .of-interior .of-profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .of-interior .of-profile-card {
    min-height: 74px !important;
    padding: 12px !important;
  }
}

/* Guide page final cleanup */

.of-interior .of-two {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.of-interior .of-two h2 {
  font-size: 1.45rem !important;
}

.of-interior .of-two p {
  margin: 0 !important;
}

/* Related page cards: cleaner interior style */
.of-interior .of-section:last-of-type .of-profile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.of-interior .of-section:last-of-type .of-profile-card {
  min-height: auto !important;
  height: auto !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  background: rgba(255, 253, 248, 0.78) !important;
}

.of-interior .of-section:last-of-type .of-profile-card span {
  margin-bottom: 10px !important;
}

.of-interior .of-section:last-of-type .of-profile-card strong {
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 760px) {
  .of-interior .of-two {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .of-interior .of-section:last-of-type .of-profile-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .of-interior .of-section:last-of-type .of-profile-card {
    padding: 11px 13px !important;
  }
}

/* Restore Location text size */
.of-interior .of-two h2 {
  font-size: 1.7rem !important;
}

.of-interior .of-two p {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

/* Related Pages card cleanup */
.of-interior .of-section:last-of-type .of-profile-grid {
  display: flex !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.of-interior .of-section:last-of-type .of-profile-card {
  flex: 1 !important;
  min-height: 82px !important;
  padding: 14px !important;
}

@media (max-width: 760px) {
  .of-interior .of-section:last-of-type .of-profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Background & Overview page cleanup */

.of-interior .of-compact-cards,
.of-interior .of-related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.of-interior .of-compact-cards .of-profile-card,
.of-interior .of-related-grid .of-profile-card {
  min-height: 88px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  background: rgba(255, 253, 248, 0.82) !important;
}

.of-interior .of-compact-cards .of-profile-card span,
.of-interior .of-related-grid .of-profile-card span {
  margin-bottom: 8px !important;
}

.of-interior .of-compact-cards .of-profile-card strong,
.of-interior .of-related-grid .of-profile-card strong {
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

@media (max-width: 760px) {
  .of-interior .of-compact-cards,
  .of-interior .of-related-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .of-interior .of-compact-cards .of-profile-card,
  .of-interior .of-related-grid .of-profile-card {
    min-height: auto !important;
    padding: 12px 14px !important;
  }
}

/* Compact, centered cards for Background page */

.of-card-grid,
.of-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.of-card,
.of-related-card {
  min-height: 92px !important;
  padding: 18px 20px !important;
  background: #fffaf1 !important;
  border: 1px solid #d8cdbc !important;
  box-shadow: 0 16px 34px rgba(78, 55, 28, 0.06);
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
}

.of-card a,
.of-related-card a {
  display: inline-block;
  line-height: 1.25;
}

.of-card .of-label,
.of-related-card .of-label {
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .of-card-grid,
  .of-related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .of-card,
  .of-related-card {
    min-height: 78px !important;
    padding: 16px 18px !important;
    justify-content: center !important;
  }
}

.of-profile-links
.of-profile-link

/* Publication links: compact card grid */
.of-profile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  margin-top: 22px !important;
}

.of-profile-grid a {
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 16px 18px !important;
  border: 1px solid #ddd3c4 !important;
  background: rgba(255, 252, 247, 0.72) !important;
  color: #162235 !important;
  text-decoration: underline !important;
  box-sizing: border-box !important;
}

@media (max-width: 700px) {
  .of-profile-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .of-profile-grid a {
    min-height: 52px !important;
    padding: 14px 16px !important;
  }
}

/* Background & Overview page only: tighten sections/cards */

body.page-id-background-overview .of-section {
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

body.page-id-background-overview #profiles.of-section {
  padding-top: 32px !important;
  padding-bottom: 34px !important;
}

body.page-id-background-overview #profiles .of-profile-grid {
  gap: 12px !important;
  margin-top: 14px !important;
}

body.page-id-background-overview #profiles .of-profile-card {
  min-height: 54px !important;
  padding: 10px 14px !important;
}

body.page-id-background-overview #profiles .of-profile-card span {
  margin-bottom: 3px !important;
}

body.page-id-background-overview .of-related-grid {
  gap: 12px !important;
  margin-top: 14px !important;
}

body.page-id-background-overview .of-related-card {
  min-height: 54px !important;
  padding: 10px 14px !important;
}

/* Interior page layout tightening */

.of-site:has(.of-kicker) .of-section {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.of-site:has(.of-kicker) #profiles.of-section {
  padding-top: 26px !important;
  padding-bottom: 28px !important;
}

.of-site:has(.of-kicker) #profiles .of-profile-grid {
  gap: 10px !important;
  margin-top: 12px !important;
}

.of-site:has(.of-kicker) #profiles .of-profile-card {
  min-height: 42px !important;
  padding: 7px 12px !important;
}

.of-site:has(.of-kicker) .of-related-grid {
  gap: 10px !important;
  margin-top: 12px !important;
}

.of-site:has(.of-kicker) .of-related-card {
  min-height: 42px !important;
  padding: 7px 12px !important;
}

/* Mobile nav: fit all top links without wrapping */
@media (max-width: 700px) {
  .of-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 12px !important;
    overflow-x: visible !important;
    white-space: nowrap !important;
    padding: 14px 8px !important;
  }

  .of-nav a {
    flex: 0 0 auto !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
}

/* Hide featured image on homepage visually but keep for Open Graph/social sharing */

.home .post-thumbnail,
.home .wp-post-image,
.home .featured-image {
    display: none !important;
}

/* Featured analysis / abstract pages */
.of-article-page .of-subtitle {
  font-family: Georgia, serif !important;
  font-size: 1.55rem !important;
  line-height: 1.25 !important;
  color: #162235 !important;
  margin: 8px 0 18px !important;
}

.of-article-page .of-reference-box {
  border: 1px solid #d9d0c2 !important;
  background: rgba(255, 252, 247, 0.72) !important;
  padding: 22px !important;
}

.of-article-page .of-reference-box p {
  margin: 0 0 12px !important;
}

.of-article-page .of-keywords {
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
}

.of-article-page .of-button {
  display: inline-block !important;
  padding: 13px 22px !important;
  background: #c98b4a !important;
  color: #fff !important;
  text-decoration: underline !important;
}

@media (max-width: 700px) {
  .of-article-page .of-subtitle {
    font-size: 1.25rem !important;
  }

  .of-article-page .of-reference-box {
    padding: 16px !important;
  }
}