/*
Theme Name: BlockDailyChain
Theme URI: https://blockdailychain.com/
Author: BlockDailyChain
Description: Lightweight block theme for live crypto network data, widgets and evergreen calculators.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: blockdailychain
License: GPL-2.0-or-later
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --bdc-ink: #0a1d23;
  --bdc-muted: #68716f;
  --bdc-ivory: #f7f5ed;
  --bdc-paper: #fbfaf5;
  --bdc-line: #d8d5c8;
  --bdc-line-strong: #bdc3b8;
  --bdc-teal: #075b58;
  --bdc-teal-dark: #05433f;
  --bdc-teal-soft: #e6efea;
  --bdc-blue-link: #153f9c;
  --bdc-orange: #ef7d00;
  --bdc-blue: #536bd8;
  --bdc-green: #4b9e53;
  --bdc-amber: #d99a00;
  --bdc-red: #b83d28;
  --bdc-shell: min(1380px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--bdc-ink);
  background: var(--bdc-ivory);
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .bdc-site-header { top: 32px; }
a { color: inherit; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #65a9a2;
  outline-offset: 3px;
}

.wp-site-blocks { min-height: 100vh; }
.wp-site-blocks > *,
.bdc-tool-template,
.bdc-tool-template > .wp-block-post-content { margin-block-start: 0 !important; }
.bdc-shell { width: var(--bdc-shell); margin-inline: auto; }
.bdc-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99999;
  padding: 10px 14px;
  color: #fff;
  background: var(--bdc-teal-dark);
  transform: translateY(-160%);
}
.bdc-skip-link:focus { transform: translateY(0); }

.bdc-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(189, 195, 184, .75);
  background: rgba(247, 245, 237, .96);
  backdrop-filter: blur(18px);
}

.bdc-site-header__inner {
  width: var(--bdc-shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.bdc-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bdc-ink);
  text-decoration: none;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.bdc-site-brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: url("assets/images/brand-mark.png") center / contain no-repeat;
}

.bdc-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--bdc-ink);
  background: transparent;
  border: 1px solid var(--bdc-line);
  border-radius: 9px;
  cursor: pointer;
}

.bdc-menu-toggle::before,
.bdc-menu-toggle::after,
.bdc-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}
.bdc-menu-toggle::before,
.bdc-menu-toggle::after { content: ""; }
.bdc-menu-toggle span { margin: 4px auto; }

.bdc-primary-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.bdc-primary-nav a { color: #1d2d31; text-decoration: none; font-size: 14px; font-weight: 600; }
.bdc-primary-nav a:hover, .bdc-primary-nav a[aria-current="page"] { color: var(--bdc-teal); }

.bdc-content-shell {
  width: min(940px, calc(100% - 40px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 74px 0 100px;
}
.bdc-content-shell h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.06em; }
.bdc-content-shell h2 { margin-top: 2em; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.bdc-content-shell p, .bdc-content-shell li { color: #43504e; line-height: 1.75; }
.bdc-content-shell a { color: var(--bdc-blue-link); }

.bdc-site-footer { padding: 55px 0 24px; background: #f1efe7; border-top: 1px solid var(--bdc-line); }
.bdc-site-footer__main {
  width: var(--bdc-shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}
.bdc-site-footer .bdc-site-brand { font-size: 21px; }
.bdc-site-footer .bdc-site-brand__mark { width: 34px; height: 34px; }
.bdc-site-footer__main p { margin: 0; color: var(--bdc-muted); font-size: 11px; }
.bdc-footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.bdc-footer-nav a { color: #344642; text-decoration: none; font-size: 11px; font-weight: 700; }
.bdc-site-footer__bottom {
  width: var(--bdc-shell);
  margin: 38px auto 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #7a817d;
  border-top: 1px solid var(--bdc-line);
  font-size: 10px;
}

@media (max-width: 900px) {
  :root { --bdc-shell: min(100% - 38px, 760px); }
  body.admin-bar .bdc-site-header { top: 46px; }
  .bdc-site-header__inner { min-height: 70px; }
  .bdc-menu-toggle { display: block; }
  .bdc-primary-nav {
    position: absolute;
    top: 70px;
    right: 19px;
    left: 19px;
    display: none;
    padding: 16px;
    background: var(--bdc-paper);
    border: 1px solid var(--bdc-line);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(26, 45, 41, .14);
  }
  .bdc-site-header.is-open .bdc-primary-nav { display: grid; gap: 4px; }
  .bdc-primary-nav a { padding: 12px; }
  .bdc-site-footer__main { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --bdc-shell: min(100% - 28px, 520px); }
  .bdc-site-brand { font-size: 19px; }
  .bdc-site-brand__mark { width: 38px; height: 38px; }
  .bdc-site-footer__bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
