:root {
  --arachna-black: #0d0d0f;
  --arachna-charcoal: #17171b;
  --arachna-panel: #202027;
  --arachna-bone: #f4efe6;
  --arachna-muted: #b8b0a8;
  --arachna-red: #c31924;
  --arachna-red-bright: #ef3340;
  --arachna-green: #9bd35a;
  --arachna-line: rgba(255,255,255,.12);
}

/* Full-bleed escape from most classic-theme content containers, including Avada */
.arachna-home.alignfull {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: var(--arachna-black);
  color: var(--arachna-bone);
  overflow: clip;
}

.arachna-home,
.arachna-home * { box-sizing: border-box; }

.arachna-home {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.arachna-home h1,
.arachna-home h2,
.arachna-home h3,
.arachna-home h4,
.arachna-home p { margin-top: 0; }

.arachna-home .alignwide {
  width: 100%;
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.arachna-hero {
  position: relative;
  min-height: 82vh;
  padding: 72px clamp(28px, 5vw, 72px) 56px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 28%, rgba(195,25,36,.32), transparent 30%),
    linear-gradient(120deg, #09090b 0%, #161218 58%, #09090b 100%);
  border-bottom: 1px solid var(--arachna-line);
}

.arachna-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,.25) 49%, transparent 50%),
    linear-gradient(-30deg, transparent 48%, rgba(255,255,255,.18) 49%, transparent 50%);
  background-size: 120px 120px;
  mask-image: linear-gradient(to right, transparent, black 35%, black 100%);
}

.arachna-hero-grid { position: relative; z-index: 1; }

.arachna-kicker {
  margin-bottom: 12px !important;
  color: var(--arachna-red-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.arachna-title {
  margin-bottom: 10px !important;
  color: var(--arachna-bone);
  font-size: clamp(76px, 10vw, 150px);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 950;
}

.arachna-tagline,
.arachna-section-title {
  color: var(--arachna-bone);
  font-weight: 850;
  letter-spacing: -.035em;
}

.arachna-tagline {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  margin-bottom: 24px !important;
}

.arachna-section-title {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  margin-bottom: 20px !important;
}

.arachna-section-title-big {
  font-size: clamp(44px, 7vw, 92px);
}

.arachna-lede,
.arachna-copy {
  color: #ded7cf;
  font-size: 19px;
  max-width: 720px;
}

.arachna-lede { margin-bottom: 28px !important; }
.arachna-copy-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.arachna-micro { margin-top: 18px !important; color: var(--arachna-muted); font-size: 13px; }

.arachna-btn .wp-block-button__link {
  border-radius: 0 !important;
  padding: 14px 20px !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.arachna-btn .wp-block-button__link:hover { transform: translateY(-2px); }
.arachna-btn-primary .wp-block-button__link { background: var(--arachna-red); color: #fff; }
.arachna-btn-primary .wp-block-button__link:hover { background: var(--arachna-red-bright); }
.arachna-btn-secondary .wp-block-button__link { background: transparent; color: var(--arachna-bone); border: 1px solid rgba(255,255,255,.3); }
.arachna-btn-secondary .wp-block-button__link:hover { border-color: var(--arachna-bone); }

.arachna-section {
  padding: 88px clamp(28px, 5vw, 72px);
  background: var(--arachna-black);
  border-bottom: 1px solid var(--arachna-line);
}
.arachna-current { background: linear-gradient(180deg, #141115, #0e0e10); }
.arachna-duality { background: #111114; }
.arachna-books { background: #0c0c0e; }
.arachna-weird { background: linear-gradient(120deg, #19090c, #0c0c0e 58%); }
.arachna-files { background: #111114; }
.arachna-afterdark { background: linear-gradient(120deg, #0e0e10, #1b0b12); }
.arachna-join { background: linear-gradient(120deg, #17080c, #0d0d0f); padding-top: 100px; padding-bottom: 100px; }

.arachna-callout {
  margin-top: 26px !important;
  padding: 16px 18px;
  border-left: 4px solid var(--arachna-red);
  background: rgba(255,255,255,.05);
  color: #e8e0d9;
}

.arachna-art-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: rgba(255,255,255,.5);
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(195,25,36,.22), transparent 60%),
    #1d1d22;
  border: 1px solid rgba(255,255,255,.14);
}
.arachna-art-slot-hero { min-height: 620px; }
.arachna-art-slot-wide { min-height: 440px; }
.arachna-art-slot-card { min-height: 300px; margin-top: 24px; }

.arachna-panel-card,
.arachna-file-card,
.arachna-book-card {
  height: 100%;
  background: var(--arachna-panel);
  border: 1px solid var(--arachna-line);
}
.arachna-panel-card { padding: 30px; }
.arachna-panel-card-red { background: linear-gradient(155deg, rgba(195,25,36,.22), #202027 46%); }
.arachna-panel-card h3,
.arachna-file-card h3 { color: var(--arachna-bone); font-size: 26px; margin-bottom: 12px !important; }
.arachna-panel-card p,
.arachna-file-card p { color: #d4cec7; }

.arachna-book-grid { gap: 16px; }
.arachna-book-card { padding: 12px; }
.arachna-book-card-current { border-color: rgba(239,51,64,.7); box-shadow: 0 0 0 1px rgba(239,51,64,.22) inset; }
.arachna-book-cover { min-height: 300px; }
.arachna-book-card h4 { color: var(--arachna-bone); margin: 16px 0 4px !important; }
.arachna-book-card p { color: var(--arachna-muted); font-size: 14px; }

.arachna-file-card { padding: 26px; min-height: 180px; }
.arachna-file-card::before {
  content: "CONFIDENTIAL";
  display: inline-block;
  margin-bottom: 24px;
  color: var(--arachna-red-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

@media (max-width: 900px) {
  .arachna-home .wp-block-columns { flex-wrap: wrap !important; }
  .arachna-home .wp-block-column { flex-basis: 100% !important; }
  .arachna-hero { min-height: auto; padding: 54px 28px 48px; }
  .arachna-art-slot-hero { min-height: 440px; margin-top: 30px; }
  .arachna-section { padding: 64px 28px; }
  .arachna-book-grid .wp-block-column { flex-basis: calc(50% - 8px) !important; }
}

@media (max-width: 560px) {
  .arachna-home .alignwide { width: 100%; }
  .arachna-hero { padding-left: 18px; padding-right: 18px; }
  .arachna-section { padding-left: 18px; padding-right: 18px; }
  .arachna-title { font-size: 66px; }
  .arachna-tagline { font-size: 34px; }
  .arachna-section-title { font-size: 40px; }
  .arachna-section-title-big { font-size: 48px; }
  .arachna-lede, .arachna-copy { font-size: 17px; }
  .arachna-book-grid .wp-block-column { flex-basis: 100% !important; }
  .arachna-art-slot-hero { min-height: 360px; }
  .arachna-art-slot-wide { min-height: 320px; }
}


/* Existing Arachna Contact Form 7 signup form (form ID 45) */
.arachna-join .wpcf7 {
  width: 100%;
  max-width: 720px;
  margin: 34px auto 0;
}

.arachna-join .wpcf7 form p {
  margin: 0 0 14px !important;
}

.arachna-join .wpcf7 label {
  display: block;
  color: var(--arachna-bone);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}

.arachna-join .wpcf7 input[type="text"],
.arachna-join .wpcf7 input[type="email"],
.arachna-join .wpcf7 input[type="tel"],
.arachna-join .wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  background: #151519;
  color: var(--arachna-bone);
  font: inherit;
}

.arachna-join .wpcf7 input:focus,
.arachna-join .wpcf7 textarea:focus {
  outline: 2px solid rgba(239,51,64,.55);
  outline-offset: 1px;
  border-color: var(--arachna-red-bright);
}

.arachna-join .wpcf7 input[type="submit"] {
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: var(--arachna-red);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.arachna-join .wpcf7 input[type="submit"]:hover {
  background: var(--arachna-red-bright);
}

.arachna-join .wpcf7-response-output {
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: var(--arachna-bone);
}

/* v1.2: native Gutenberg Image blocks. Click an image, then Replace > Media Library. */
.arachna-home figure.arachna-image {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: #1d1d22;
  border: 1px solid rgba(255,255,255,.14);
}

.arachna-home figure.arachna-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arachna-image-hero { aspect-ratio: 4 / 5; min-height: 620px; }
.arachna-image-wide { aspect-ratio: 3 / 2; }
.arachna-image-card { aspect-ratio: 4 / 3; margin-top: 24px !important; }
.arachna-book-cover-img { aspect-ratio: 2 / 3; }

@media (max-width: 900px) {
  .arachna-image-hero { min-height: 440px; margin-top: 30px !important; }
}

@media (max-width: 560px) {
  .arachna-image-hero { min-height: 360px; }
}
