/*
Theme Name: Tales of the Sirius
Template: astra
Description: Child theme for Tales of the Sirius - a literary author website
Version: 1.0
Author: Tales of the Sirius
*/

/* =========================================
   GOOGLE FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&family=Cormorant+Garamond:wght@300;400&family=Montserrat:wght@300;400&display=swap');

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --font-title: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-nav: 'Montserrat', sans-serif;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-overlay: rgba(0, 0, 0, 0.25);
  --nav-spacing: 0.3em;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: #f5f0e8;
}

/* =========================================
   HIDE DEFAULT ASTRA HEADER
   ========================================= */
#masthead,
.site-header,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
  display: none !important;
}

/* =========================================
   HOMEPAGE HERO
   ========================================= */
.tots-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tots-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

.tots-hero__bg.loaded {
  transform: scale(1);
}

.tots-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.tots-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
}

.tots-hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.88;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards 0.3s;
}

.tots-hero__nav {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.9s;
}

.tots-hero__nav a {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: var(--nav-spacing);
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: opacity 0.3s ease;
}

.tots-hero__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width 0.3s ease;
}

.tots-hero__nav a:hover {
  opacity: 0.7;
}

.tots-hero__nav a:hover::after {
  width: 100%;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   INNER PAGES - HEADER
   ========================================= */
.tots-inner-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2.6rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tots-inner-header__logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1.2;
}

.tots-inner-header__nav {
  display: flex;
  gap: 2.5rem;
}

.tots-inner-header__nav a {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.tots-inner-header__nav a:hover,
.tots-inner-header__nav a.current {
  opacity: 1;
}

/* =========================================
   INNER PAGES - CONTENT
   ========================================= */
.tots-inner-page {
  padding-top: 100px;
  min-height: 100vh;
  background: #f5f0e8;
}

.tots-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.tots-page-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.tots-page-title span {
  display: block;
}

.tots-divider {
  width: 60px;
  height: 2px;
  background: var(--color-dark);
  margin-bottom: 3rem;
}

.tots-body-text {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.8;
  color: #3a3a3a;
  font-weight: 600;
}

.tots-body-text p + p {
  margin-top: 1.5rem;
}

/* =========================================
   AUTHOR PAGE
   ========================================= */
.tots-author-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.tots-author-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.tots-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tots-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tots-field label {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
}

.tots-field input,
.tots-field textarea {
  font-family: var(--font-body);
  font-size: 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #aaa;
  padding: 0.6rem 0;
  outline: none;
  color: var(--color-dark);
  transition: border-color 0.3s;
  width: 100%;
}

.tots-field input:focus,
.tots-field textarea:focus {
  border-bottom-color: var(--color-dark);
}

.tots-field textarea {
  resize: none;
  height: 120px;
}

.tots-submit {
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.3s;
}

.tots-submit:hover {
  opacity: 0.75;
}

/* =========================================
   WHERE TO BUY PAGE
   ========================================= */
.tots-buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tots-buy-item {
  border: 1px solid #d0c8b8;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--color-dark);
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tots-buy-item:hover {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.tots-buy-item__name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
}

.tots-buy-item__type {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =========================================
   WAVE FOOTER
   ========================================= */
.tots-wave-footer {
  margin-top: auto;
  padding: 6rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0e8;
  overflow: hidden;
}

.wave-side {
  flex: 1;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}

.wave-side svg {
  width: 100%;
  height: 28px;
}

.wave-center {
  flex-shrink: 0;
  text-align: center;
  padding: 0 1.8rem;
}

.wave-center-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  display: block;
  white-space: nowrap;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .tots-inner-header {
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .tots-inner-header__nav {
    gap: 1.5rem;
  }

  .tots-author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tots-container {
    padding: 3rem 1.5rem 4rem;
  }

  .tots-hero__nav {
    gap: 1.5rem;
  }

  .tots-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

/* =========================================
   BLOG — THE SIRIUS LOG
   ========================================= */
.tots-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tots-blog-item {
  padding: 2.5rem 0;
  border-bottom: 0.5px solid #d0c8b8;
}

.tots-blog-item:first-child {
  padding-top: 0;
}

.tots-blog-date {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.6rem;
}

.tots-blog-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.tots-blog-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.tots-blog-title a:hover {
  opacity: 0.6;
}

.tots-blog-excerpt {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  font-weight: 600;
  max-width: 640px;
  margin-bottom: 1rem;
}

.tots-blog-read-more {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-dark);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.tots-blog-read-more:hover {
  opacity: 0.5;
}

.tots-pagination {
  margin-top: 3rem;
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
