/*
Theme Name: 6777bet Editorial
Theme URI: https://6777bet.beer/
Author: 6777bet.beer Editorial Desk
Description: A light editorial information theme for Bengali readers.
Version: 1.0.1
Text Domain: bet-editorial
*/

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-alt: #f0ebe2;
  --ink: #242321;
  --muted: #68645e;
  --line: #ddd5c8;
  --accent: #a83e32;
  --accent-dark: #8e332a;
  --amber: #d89a32;
  --sage: #2f7764;
  --info: #eef4f1;
  --warning: #fff4d9;
  --shadow: 0 12px 32px rgba(58, 45, 30, 0.09);
  --radius: 12px;
  --wide: 1160px;
  --reading: 780px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.76;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  clip: auto;
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(58, 45, 30, 0.04);
}

.header-inner,
.footer-inner,
.content-wide {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-logo span {
  color: var(--accent);
}

.site-logo--header {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo__image {
  width: 142px;
  height: auto;
}

.main-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.header-cta:hover,
.button:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button--secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button--secondary:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.site-main {
  min-height: 58vh;
}

.page-content > section {
  padding-block: 72px;
}

.page-content > section:nth-of-type(even):not(.home-hero) {
  background: var(--surface);
  border-block: 1px solid rgba(221, 213, 200, 0.75);
}

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

.home-hero {
  padding-block: 62px 68px !important;
  background: linear-gradient(135deg, #f0ebe2 0%, #faf8f3 56%, #eef4f1 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
}

h2 {
  position: relative;
  margin-bottom: 24px;
  padding-top: 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.3rem);
}

h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.58rem);
}

p {
  margin: 0 0 1.22em;
}

p:last-child {
  margin-bottom: 0;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 28px;
  color: #3d3a36;
  font-size: 1.1rem;
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(221, 213, 200, 0.8);
  border-radius: 16px;
  background: #0b1f3a;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1918 / 820;
  object-fit: cover;
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
}

.category-figure,
.content-figure {
  margin: 34px 0 36px;
}

.category-figure img,
.content-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 38px;
  margin-top: 34px;
}

.category-columns > div {
  padding-left: 18px;
  border-left: 3px solid var(--amber);
}

.decision-list,
.editorial-steps,
.plain-list {
  padding-left: 1.35rem;
}

.decision-list li,
.editorial-steps li,
.plain-list li {
  margin-bottom: 0.65rem;
  padding-left: 0.3rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.notice {
  padding: 20px 22px;
  margin: 28px 0;
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--info);
}

.notice--warm {
  border-left-color: var(--amber);
  background: var(--warning);
}

.article-header {
  padding-block: 64px 44px;
  background: linear-gradient(135deg, var(--surface-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}

.article-header .reading-width {
  position: relative;
}

.article-header p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.updated-line {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--sage) !important;
  font-size: 0.88rem !important;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(58, 45, 30, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.site-boundary {
  padding-block: 34px !important;
  background: var(--ink) !important;
  color: #fff;
  border: 0 !important;
}

.site-boundary p {
  color: #f4efe7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--wide,
.form-note,
.form-actions {
  grid-column: 1 / -1;
}

label {
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bdb5a9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--info);
  color: #205749;
  font-weight: 700;
}

.site-footer {
  padding-block: 46px 32px;
  background: var(--ink);
  color: #f6f1e9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.site-footer .site-logo {
  color: #fff;
}

.footer-statement {
  max-width: 720px;
  margin-top: 16px;
  color: #d8d0c4;
}

.footer-links {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfc6b9;
  font-size: 0.9rem;
}

.not-found {
  padding-block: 90px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 58px;
    padding-block: 7px;
  }

  .site-logo {
    margin-right: auto;
  }

  .site-logo__image {
    width: 132px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-navigation {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 0 14px;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-navigation a,
  .header-cta {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-media {
    order: 2;
  }

  .category-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner,
  .content-wide,
  .reading-width {
    width: min(calc(100% - 32px), var(--wide));
  }

  .page-content > section {
    padding-block: 44px;
  }

  .home-hero {
    padding-block: 44px 48px !important;
  }

  .article-header {
    padding-block: 48px 34px;
  }

  .hero-media img {
    min-height: 280px;
    aspect-ratio: 4 / 5;
    object-position: 72% center;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }

  td {
    display: grid;
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-weight: 800;
  }

  td:last-child {
    border-bottom: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .form-field--wide,
  .form-note,
  .form-actions {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 390px) {
  .button,
  .inline-actions .button {
    width: 100%;
  }

  td {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
