/*
Theme Name: Data Pulse Catalog
Theme URI: https://wp.dpulse.sa/
Author: Data Pulse
Description: Design-studio index for the isolated Data Pulse demo stores.
Text Domain: dpulse-catalog
Version: 2.0.0
Requires at least: 6.4
*/

:root {
  --teal: #004d5a;
  --ink: #142226;
  --paper: #f4f7f7;
  --line: #d5e0e2;
  --muted: #3c5256;
  --stone: #f3efe7;
  --ledger: #f6f1e6;
  --ledger-line: #e0d5c4;
  --aluminum: #f2f3f1;
  --aluminum-line: #d5d7d4;
  --yellow: #e3a008;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); }

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.masthead,
.index,
.page-copy,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  padding: 36px 0 28px;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.masthead-lockup {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.35;
}

.masthead-lockup a {
  color: var(--teal);
  text-decoration: none;
}

.masthead-lockup a:hover { text-decoration: underline; text-underline-offset: 6px; }

.slash {
  padding-inline: 0.28em;
  font-weight: 400;
  color: var(--teal);
}

.masthead-lead {
  max-width: 40rem;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.75;
}

.index {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 28px;
}

.kicker {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.kicker span { margin-inline-end: 8px; }

.thesis {
  margin: 6px 0 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  font-weight: 400;
}

.support {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  text-underline-offset: 5px;
}

.panel-ridaa h2,
.sidra-head h2,
.volt-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.1;
}

.panel-ridaa {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
  min-height: 680px;
  background: var(--stone);
}

.ridaa-portrait {
  display: block;
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.ridaa-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ridaa-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px 40px;
}

.size-rail {
  display: flex;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  margin: 26px 0 4px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.size-rail li {
  min-width: 52px;
  padding: 10px 8px 8px;
  border-inline-end: 1px solid var(--ink);
  font-weight: 600;
  text-align: center;
}

.size-rail li:first-child { border-inline-start: 1px solid var(--ink); }

.panel-sidra {
  background: var(--ledger);
  padding: 36px 36px 28px;
}

.sidra-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  align-items: end;
  margin-bottom: 8px;
}

.sidra-head .kicker { grid-column: 1 / -1; }

.sidra-head .thesis { margin: 0 0 10px; }

.ledger {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.ledger-photo {
  margin: 0;
}

.ledger-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ledger-row,
.ledger-head {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1.15fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--ledger-line);
}

.ledger-head {
  padding-top: 0;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.ledger-row {
  color: var(--ink);
  text-decoration: none;
}

.ledger-row:hover span:first-child,
.ledger-row:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.panel-sidra .support { margin-top: 16px; }

.panel-volt { background: var(--aluminum); }

.volt-rule {
  height: 4px;
  background: var(--yellow);
}

.volt-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  padding: 36px 36px 8px;
}

.volt-photo {
  margin: 0;
}

.volt-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spec-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 8px 36px 36px;
  padding-top: 8px;
  border-top: 1px solid var(--aluminum-line);
}

.spec-product + .spec-product {
  border-inline-start: 1px solid var(--aluminum-line);
  padding-inline-start: 32px;
}

.spec-product h3 {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.spec-product dl { margin: 8px 0 0; }

.spec-product div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--aluminum-line);
}

.spec-product dt {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
}

.spec-product dd { margin: 0; }

.demo-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  padding: 26px 32px;
  background: var(--teal);
  color: #fff;
}

.demo-note p { margin: 0; }

.demo-note a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 5px;
}

.demo-note a:focus-visible { outline-color: #fff; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-name,
.footer-version { margin: 0; }

.footer-name {
  color: var(--ink);
  font-weight: 600;
}

.footer-nav a {
  color: var(--teal);
  margin-inline-start: 18px;
}

.page-copy { padding: 12px 0 64px; }

.page-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
}

.page-copy p { margin: 0 0 12px; }

@media (max-width: 860px) {
  .panel-ridaa,
  .volt-top,
  .ledger,
  .sidra-head {
    grid-template-columns: 1fr;
  }

  .ridaa-portrait { min-height: 0; }

  .ridaa-portrait img {
    position: static;
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }

  .spec-sheet { grid-template-columns: 1fr; }

  .spec-product + .spec-product {
    border-inline-start: 0;
    padding-inline-start: 0;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .masthead,
  .index,
  .page-copy,
  .site-footer {
    width: min(1180px, calc(100% - 32px));
  }

  .masthead { padding-top: 22px; }

  .masthead-lead { font-size: 16px; }

  .ridaa-copy,
  .panel-sidra { padding: 22px 16px 24px; }

  .panel-ridaa h2,
  .sidra-head h2,
  .volt-copy h2 { font-size: 40px; }

  .sidra-head .thesis { margin: 8px 0 0; }

  .ledger { gap: 16px; }

  .ledger-head { display: none; }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .ledger-row span[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  .volt-top,
  .spec-sheet { margin-inline: 0; padding-inline: 16px; }

  .volt-top { padding-top: 22px; gap: 16px; }

  .spec-sheet { margin-bottom: 22px; }

  .demo-note {
    display: block;
    padding: 22px 16px;
  }

  .demo-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
  }

  .site-footer { display: block; padding-bottom: 36px; }

  .footer-nav { margin-top: 10px; }

  .footer-nav a {
    display: inline-block;
    margin: 0 0 8px;
    margin-inline-start: 0;
    margin-inline-end: 16px;
  }
}
