/*
Theme Name: Old World Chocolate Editor
Theme URI: https://oldworldchocolate.com
Author: Old World Chocolate
Description: Block theme for the one-ink Old World Chocolate brand — gold foil on box black, fully editable in the Site Editor (Appearance → Editor). Built from the Old World Chocolate Design System.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: oldworld-block
*/

/* ============================================================
   The one-ink vocabulary. Layout, color and type controls live in
   theme.json / the Site Editor; this file only carries the brand
   details blocks can't express: foil keylines, the lozenge, sheen.
   ============================================================ */
:root {
  --ow-hairline: rgba(201, 165, 94, 0.45);
  --ow-hairline-soft: rgba(201, 165, 94, 0.22);
  --ow-hairline-strong: rgba(201, 165, 94, 0.8);
  --ow-sheen: linear-gradient(105deg, #9A7634 0%, #E8D3A0 26%, #C9A55E 50%, #F1E4BE 68%, #A9863F 100%);
  --ow-surface: linear-gradient(157deg, #17140E 0%, #0C0B0A 58%, #080706 100%);
}

body {
  background-image: var(--ow-surface);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #A9863F; color: #0B0B0B; }
img { height: auto; }

/* ---------- Header ---------- */
.ow-header {
  border-bottom: 1px solid var(--ow-hairline-soft);
  background: rgba(11, 11, 10, 0.92) !important;
  backdrop-filter: blur(8px);
  z-index: 40;
}
.ow-header .wp-block-site-logo img { height: 44px; width: auto; }
.ow-header .wp-block-site-title a { text-decoration: none; }
@media (max-width: 760px) {
  .ow-header .wp-block-site-title { display: none; }
}
.wp-block-navigation a:hover { color: #E8D3A0; }

/* Mobile menu overlay stays on-brand */
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: #0B0B0B;
  color: #C9A55E;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { color: #C9A55E; }

/* ---------- Eyebrow / origin / tag / legal lines ---------- */
.ow-eyebrow {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.42em !important;
  text-transform: uppercase;
  color: #A9863F;
}
.ow-caps-label {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: #A9863F;
}
.ow-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: #D8BC7E;
}

/* ---------- The lozenge divider (separator block) ---------- */
hr.ow-lozenge {
  border: 0;
  height: 5px;
  width: min(280px, 60%);
  margin-left: auto; margin-right: auto;
  background:
    linear-gradient(var(--ow-hairline), var(--ow-hairline)) left  center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(var(--ow-hairline), var(--ow-hairline)) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(45deg, transparent 34%, #C9A55E 34%, #C9A55E 66%, transparent 66%) center / 7px 7px no-repeat;
  opacity: 1;
}
hr.ow-lozenge.ow-lozenge-small { width: 84px; }

/* ---------- Foil-sheen display text ---------- */
.ow-sheen {
  background: var(--ow-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* ---------- Hero: layered keylines like the label frame ---------- */
.ow-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, rgba(201, 165, 94, 0.07), transparent 55%),
    radial-gradient(ellipse 130% 100% at 50% 115%, rgba(201, 165, 94, 0.05), transparent 55%);
}
.ow-hero::before {
  content: '';
  position: absolute; inset: clamp(14px, 2.5vw, 26px);
  border: 1.5px solid var(--ow-hairline);
  border-radius: 2px;
  pointer-events: none;
}
.ow-hero::after {
  content: '';
  position: absolute; inset: clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--ow-hairline-soft);
  border-radius: 2px;
  pointer-events: none;
}

/* ---------- Label-front panels ---------- */
.ow-panel {
  background: var(--ow-surface);
  border: 1.5px solid var(--ow-hairline);
  border-radius: 4px;
  padding: 12px;
  height: 100%;
  transition: border-color 150ms ease;
}
.ow-panel > .wp-block-group__inner-container,
.ow-panel-frame {
  border: 1px solid var(--ow-hairline-soft);
  border-radius: 2px;
  height: 100%;
}
.ow-panel:hover { border-color: var(--ow-hairline-strong); }
.ow-numeral {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 30px !important;
  color: #A9863F;
}

/* ---------- Vow (Always / Never) ---------- */
@media (min-width: 782px) {
  .ow-vow .wp-block-column:first-child {
    border-right: 1px solid var(--ow-hairline);
    padding-right: clamp(28px, 4vw, 64px);
  }
  .ow-vow .wp-block-column:last-child { padding-left: clamp(28px, 4vw, 64px); }
}

/* ---------- Buttons: solid foil variant ---------- */
.wp-block-button.is-style-foil-solid .wp-block-button__link {
  background: #C9A55E;
  border-color: #C9A55E;
  color: #0B0B0B;
}
.wp-block-button.is-style-foil-solid .wp-block-button__link:hover {
  background: #D8BC7E;
  border-color: #D8BC7E;
  color: #0B0B0B;
}
.wp-block-button__link { padding: 14px 34px 12px; transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease; }

/* ---------- Drop cap ---------- */
.has-drop-cap:not(:focus)::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: #D8BC7E;
}

/* ---------- Section hairline tops ---------- */
.ow-hairline-top { border-top: 1px solid var(--ow-hairline-soft); }

/* ---------- Footer ---------- */
.ow-footer { border-top: 1px solid var(--ow-hairline-soft); }
.ow-footer .wp-block-navigation { justify-content: center; }
.ow-fine { font-size: 13px !important; color: #A9863F; line-height: 1.7; }
.ow-fine a { color: #A9863F; }
.ow-copyright { font-size: 12px !important; color: #8A6A2F; }
.ow-copyright a { color: #A9863F; }

/* ============================================================
   Legacy content classes (Our Story / Find Us page bodies)
   ============================================================ */
.lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: #D8BC7E;
}
.detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin: clamp(32px, 5vw, 48px) 0;
}
.detail-card {
  background: var(--ow-surface);
  border: 1px solid var(--ow-hairline);
  border-radius: 4px;
  padding: 32px 24px;
  text-align: center;
}
.detail-card h3 {
  font-family: 'Cardo', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #A9863F;
  margin: 0 0 12px;
}
.detail-card p { margin: 0; }
.detail-card .big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: #D8BC7E;
}
.detail-card .big a { text-decoration: none; }

/* Page body typography niceties */
.entry-content h2 { margin-top: 48px; }
.entry-content a { border-bottom: 1px solid var(--ow-hairline); text-decoration: none; }
.entry-content a:hover { border-bottom-color: var(--ow-hairline-strong); }
.entry-content blockquote {
  border-left: 1.5px solid var(--ow-hairline);
  padding-left: 24px;
  font-style: italic;
}
