/*
Theme Name: Red Cell
Theme URI: https://www.redcell.nu
Author: Red Cell
Author URI: https://www.redcell.nu
Description: Mörkt, minimalistiskt bandtema för Red Cell. Byggt för helskärms hero-bild, enkel meny och rena undersidor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: redcell
*/

/* -------------------------------------------------- */
/* Variables                                           */
/* -------------------------------------------------- */
:root{
  --rc-bg: #060f0f;
  --rc-bg-alt: #0b1717;
  --rc-teal: #0e2a2a;
  --rc-text: #f4f4f2;
  --rc-text-dim: #c9cdcb;
  --rc-text-faint: #8f9795;
  --rc-line: rgba(244,244,242,0.18);
  --rc-accent: #f4f4f2;
  --rc-maxw: 1400px;
  --rc-gutter: clamp(24px, 5vw, 64px);
  --rc-font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --rc-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------- */
/* Reset / base                                        */
/* -------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-text);
  font-family: var(--rc-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{
  font-family: var(--rc-font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p{ margin: 0 0 1.25em; color: var(--rc-text-dim); }
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}

/* -------------------------------------------------- */
/* Layout helpers                                      */
/* -------------------------------------------------- */
.rc-container{
  max-width: var(--rc-maxw);
  margin: 0 auto;
  padding: 0 var(--rc-gutter);
}
.rc-section{ padding: 96px 0; }
.rc-section--tight{ padding: 56px 0; }
.rc-eyebrow{
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rc-text-faint);
  margin-bottom: 18px;
  display: block;
}
.rc-title{
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
}
.rc-btn{
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--rc-line);
  font-family: var(--rc-font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.rc-btn:hover{
  background: var(--rc-accent);
  color: var(--rc-bg);
  border-color: var(--rc-accent);
}

/* -------------------------------------------------- */
/* Header / nav                                        */
/* -------------------------------------------------- */
.rc-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 28px var(--rc-gutter);
}
.rc-header.is-static{
  position: relative;
  background: var(--rc-bg);
  border-bottom: 1px solid var(--rc-line);
}
.rc-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--rc-maxw);
  margin: 0 auto;
}
.rc-logo{
  font-family: var(--rc-font-display);
  font-size: 16px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.rc-nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--rc-line);
  color: var(--rc-text);
  padding: 8px 12px;
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.rc-nav ul{
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
}
.rc-nav a{
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rc-text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.rc-nav a:hover,
.rc-nav .current-menu-item a{
  color: var(--rc-text);
  border-color: var(--rc-line);
}

@media (max-width: 760px){
  .rc-nav-toggle{ display: inline-block; }
  .rc-nav{
    position: fixed;
    inset: 0;
    background: var(--rc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .3s ease;
    z-index: 49;
  }
  .rc-nav.is-open{ transform: translateY(0); }
  .rc-nav ul{ flex-direction: column; text-align: center; gap: 28px; }
  .rc-nav a{ font-size: 15px; }
}

/* -------------------------------------------------- */
/* Hero                                                 */
/* -------------------------------------------------- */
.rc-hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 30%, var(--rc-teal) 0%, var(--rc-bg) 70%);
}
.rc-hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}
.rc-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,15,15,0.15) 0%, rgba(6,15,15,0.55) 78%, rgba(6,15,15,0.9) 100%);
}
.rc-hero__content{
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.rc-hero__title{
  font-size: clamp(40px, 8vw, 96px);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.rc-hero__tagline{
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.04em;
  color: var(--rc-text-dim);
  margin-bottom: 34px;
}
.rc-hero__scroll{
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--rc-text-dim);
  animation: rc-bounce 2.2s infinite;
}
@keyframes rc-bounce{
  0%,100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, 8px); }
}

/* -------------------------------------------------- */
/* Generic page                                         */
/* -------------------------------------------------- */
.rc-page-header{
  padding: 160px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--rc-line);
}
.rc-content{
  padding: 72px 0 120px;
}
.rc-content .rc-container{ max-width: 860px; }
.rc-content h2{ font-size: 24px; margin-top: 1.6em; }
.rc-content h3{ font-size: 18px; margin-top: 1.4em; }
.rc-content a{ text-decoration: underline; text-underline-offset: 3px; }
.rc-content figure{ margin: 2em 0; }
.rc-content blockquote{
  border-left: 2px solid var(--rc-line);
  padding-left: 20px;
  color: var(--rc-text-faint);
  font-style: italic;
}

/* -------------------------------------------------- */
/* Blog / News                                          */
/* -------------------------------------------------- */
.rc-post-list{
  display: grid;
  gap: 48px;
}
.rc-post-card{
  border-bottom: 1px solid var(--rc-line);
  padding-bottom: 40px;
}
.rc-post-card__meta{
  font-family: var(--rc-font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rc-text-faint);
  margin-bottom: 10px;
}
.rc-post-card__title{ font-size: 22px; margin-bottom: 12px; }
.rc-post-card__title a:hover{ text-decoration: underline; }
.rc-pagination{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* -------------------------------------------------- */
/* Mailing list form                                    */
/* -------------------------------------------------- */
.rc-form{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.rc-form input[type="email"]{
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid var(--rc-line);
  color: var(--rc-text);
  padding: 14px 16px;
  font-family: var(--rc-font-body);
  font-size: 14px;
}
.rc-form button{
  background: var(--rc-accent);
  color: var(--rc-bg);
  border: 1px solid var(--rc-accent);
  padding: 14px 28px;
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* -------------------------------------------------- */
/* Footer                                                */
/* -------------------------------------------------- */
.rc-footer{
  border-top: 1px solid var(--rc-line);
  padding: 48px 0;
  text-align: center;
}
.rc-footer__social{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  font-family: var(--rc-font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.rc-footer__social a:hover{ text-decoration: underline; }
.rc-footer__copy{
  font-size: 12px;
  color: var(--rc-text-faint);
  letter-spacing: 0.05em;
}

/* -------------------------------------------------- */
/* WP core alignment / gallery basics                   */
/* -------------------------------------------------- */
.alignwide{ max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull{ max-width: none; }
.wp-block-image{ margin: 2em 0; }
.wp-caption-text{ color: var(--rc-text-faint); font-size: 13px; text-align: center; }
