/*
Theme Name: Tempus Fugit – Extendable
Theme URI: https://tempusfugit.example/
Description: Visual styling for the Extendable WordPress block theme. Keeps Extendable templates and functionality intact.
Author: Tempus Fugit
Version: 1.0.1
Template: extendable
Text Domain: tempus-fugit
*/

:root {
  --tf-burgundy: #6f302f;
  --tf-burgundy-dark: #512424;
  --tf-ivory: #f5f0e8;
  --tf-ivory-light: #fbf8f1;
  --tf-paper: #fffdf9;
  --tf-ink: #24201d;
  --tf-muted: #71665e;
  --tf-sand: #d6c5ad;
  --tf-border: rgba(81, 36, 36, 0.16);
  --tf-shadow: 0 6px 24px rgba(36, 22, 20, 0.08);
}

html { scroll-behavior: smooth; }
body {
  background: var(--tf-ivory);
  color: var(--tf-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Classic serif feel for editorial headings while leaving Extendable's editor intact. */
h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-post-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--tf-burgundy-dark);
  letter-spacing: -0.02em;
}

p, li { line-height: 1.75; }
a { color: var(--tf-burgundy); }
a:hover { color: var(--tf-burgundy-dark); }

/* Slim announcement strip. */
body::before {
  content: "TEMPUS FUGIT  ·  THE EARLY MEDIEVAL WORLD REVEALED  ·  RESEARCH  ·  RECONSTRUCTION  ·  LIVING HISTORY";
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 16px;
  background: var(--tf-burgundy-dark);
  color: var(--tf-ivory-light);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Keep the existing Extendable header/navigation; only change its appearance. */
header.wp-block-template-part,
.wp-site-header,
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--tf-ivory) !important;
  border-bottom: 1px solid var(--tf-border);
  box-shadow: 0 2px 14px rgba(36, 22, 20, 0.05);
}

header .wp-block-navigation,
header .wp-block-navigation__responsive-container,
header .wp-block-group {
  background: transparent !important;
}

header .wp-block-navigation a,
header .wp-block-site-title a,
header a {
  color: var(--tf-burgundy-dark);
}

header .wp-block-navigation a:hover,
header .wp-block-navigation a:focus {
  color: var(--tf-burgundy);
}

/* Hide commerce/account UI visually only; no functionality is removed. */
header .wc-block-mini-cart,
header .wp-block-woocommerce-mini-cart,
header .wp-block-loginout,
header .wp-block-woocommerce-customer-account,
header .wp-block-navigation__submenu-container .wp-block-woocommerce-mini-cart,
header a[href*="cart"],
header a[href*="my-account"] {
  display: none !important;
}

/* Accent button such as Publish. */
header .wp-block-button__link,
header .wp-element-button {
  background: var(--tf-burgundy);
  color: var(--tf-ivory-light);
  border: 1px solid var(--tf-burgundy);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
}
header .wp-block-button__link:hover,
header .wp-element-button:hover {
  background: var(--tf-burgundy-dark);
  color: #fff;
}

/* Main page surfaces. */
main, .wp-site-blocks {
  background: var(--tf-ivory);
}

.wp-block-cover,
.wp-block-group.has-background {
  border-color: var(--tf-border);
}

.wp-block-quote {
  border-left-color: var(--tf-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--tf-burgundy-dark);
}

.wp-block-button__link,
.wp-element-button {
  border-radius: 2px;
}

/* Footer: styling only; Extendable's existing footer structure remains in control. */
footer.wp-block-template-part,
footer {
  background: var(--tf-burgundy-dark) !important;
  color: var(--tf-ivory-light);
  border-top: 1px solid rgba(245, 240, 232, 0.14);
}
footer a,
footer .wp-block-site-title a,
footer h1, footer h2, footer h3, footer h4 {
  color: var(--tf-ivory-light);
}
footer a:hover { color: #ffffff; }

/* Editor canvas should resemble the front-end. */
.editor-styles-wrapper {
  background: var(--tf-ivory);
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 782px) {
  body::before {
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
  }
}
