/*
Theme Name: RePodCase
Theme URI: https://repodcase.com/
Author: RePodCase
Description: A lightweight block theme for the RePodCase WooCommerce store.
Version: 0.9.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: repodcase
*/

:root {
  --rpc-ink: #17211d;
  --rpc-muted: #65706a;
  --rpc-line: #d8dfda;
  --rpc-canvas: #f7f8f5;
  --rpc-white: #ffffff;
  --rpc-coral: #e85a43;
  --rpc-coral-dark: #c84330;
  --rpc-focus: #0b6f86;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--rpc-canvas);
  color: var(--rpc-ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

button,
input,
select,
textarea {
  font: inherit;
}

.wp-site-blocks,
.wp-site-blocks > * {
  margin-block-start: 0;
}

.rpc-header-part {
  position: relative;
  z-index: 50;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(23, 33, 29, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--rpc-ink);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  color: var(--rpc-ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.wordmark-mark {
  width: 12px;
  height: 12px;
  margin-right: 3px;
  border: 3px solid var(--rpc-coral-dark);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
}

.wordmark-accent {
  color: var(--rpc-coral-dark);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 7px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--rpc-coral-dark);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
}

.cart-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.cart-link:hover,
.cart-link:focus-visible {
  border-bottom-color: var(--rpc-coral-dark);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  list-style: none;
  place-items: center;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.mobile-menu-icon::before {
  transform: translateY(-6px);
}

.mobile-menu-icon::after {
  transform: translateY(5px);
}

.mobile-menu-panel {
  position: fixed;
  z-index: 49;
  top: 64px;
  right: 0;
  left: 0;
  display: grid;
  border-top: 1px solid var(--rpc-line);
  background: #fff;
}

.mobile-menu-panel a {
  min-height: 54px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rpc-line);
  font-weight: 600;
}

.site-footer {
  background: var(--rpc-ink);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 36px;
  padding: 64px 0 24px;
}

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

.site-footer .wordmark-mark {
  border-color: var(--rpc-coral);
  box-shadow: inset 0 0 0 2px var(--rpc-ink);
}

.site-footer__statement {
  max-width: 340px;
  margin: 22px 0 0;
  color: #c4cec8;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 9px;
  color: #bdc8c2;
  font-size: 12px;
}

.site-footer__column b {
  margin-bottom: 4px;
  color: #f1a092;
  font-size: 10px;
  text-transform: uppercase;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a19a;
  font-size: 10px;
}

.rpc-content-shell {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 80px 112px;
}

.rpc-content-shell > h1:first-child,
.rpc-content-shell .wp-block-post-title {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.rpc-content-shell .wp-block-post-content {
  font-size: 17px;
}

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

@media (max-width: 800px) {
  .section-shell {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 64px;
  }

  .site-header__inner,
  .site-footer__inner {
    width: calc(100% - 40px);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .cart-link {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand,
  .site-footer__bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .site-footer__brand,
  .site-footer__bottom {
    grid-column: auto;
  }

  .site-footer__bottom {
    display: grid;
    gap: 8px;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
