/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.1
*/

/* ==========================================
   GLOBAL
   ========================================== */

:root {
  --ws-bg: #f7f3ea;
  --ws-text: #1f1a17;
  --ws-muted: #6c6358;
  --ws-accent: #9f1f1f;
  --ws-paper: #ffffff;
  --ws-paper-warm: #efe4d1;
  --ws-stage-top: #d7cab3;
  --ws-stage-bottom: #cdbd9f;
  --ws-dark: #151210;
  --ws-surface: #efe6d6;
  --ws-card: #e6d7bf;
  --ws-shelf: #7a5737;
  --ws-shelf-dark: #5f4027;
  --ws-spine: #6f1717;
  --ws-spine-dark: #471010;
  --ws-border: rgba(0, 0, 0, 0.08);
}

body {
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--ws-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ws-hero h1 {
  font-weight: 800;
}

.ws-card,
.ws-uni-card,
.ws-event {
  transition: all 0.25s ease;
}

.ws-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.ws-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.ws-uni-card {
  backdrop-filter: blur(4px);
}

.site-info {
  font-size: 14px;
  color: var(--ws-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ws-btn:hover {
  transform: translateY(-2px);
  opacity: 0.94;
  text-decoration: none;
}

.ws-btn-dark {
  background: #111111;
  color: #ffffff;
}

.ws-btn-primary {
  background: var(--ws-accent);
  color: #ffffff;
}

.ws-btn[disabled],
.ws-mag-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================
   MAGAZINE READER
   ========================================== */

.ws-no-pages {
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fffaf2;
}

.ws-mag-reader {
  position: relative;
  margin: 0 0 28px;
}

.ws-mag-toolbar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ws-mag-stage {
  position: relative;
}

.ws-mag-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 52%),
    linear-gradient(180deg, var(--ws-stage-top), var(--ws-stage-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 18px 50px rgba(0,0,0,0.16);
}

.ws-mag-desktop-frame,
.ws-mag-mobile-frame {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ws-mag-desktop-frame.is-changing,
.ws-mag-mobile-frame.is-changing {
  opacity: 0.94;
  transform: scale(0.993);
}

.ws-mag-desktop-frame.ws-mag-turn-next {
  transform: perspective(1400px) rotateY(-4deg) scale(0.994);
}

.ws-mag-desktop-frame.ws-mag-turn-prev {
  transform: perspective(1400px) rotateY(4deg) scale(0.994);
}

.ws-mag-mobile-frame.ws-mag-turn-next {
  transform: translateX(-1.2%) scale(0.996);
}

.ws-mag-mobile-frame.ws-mag-turn-prev {
  transform: translateX(1.2%) scale(0.996);
}

.ws-mag-desktop-frame {
  min-height: 520px;
  height: min(74vh, 980px);
  display: block;
}

.ws-mag-desktop-cover,
.ws-mag-desktop-spread {
  height: 100%;
  width: 100%;
}

.ws-mag-desktop-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.02)),
    var(--ws-paper-warm);
  padding: 24px;
}

.ws-mag-desktop-cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--ws-paper);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.10),
    0 18px 40px rgba(0,0,0,0.14);
}

.ws-mag-desktop-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--ws-stage-top);
  overflow: visible;
  position: relative;
}

.ws-mag-desktop-spread::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.18) 0%,
    rgba(255,255,255,0.24) 50%,
    rgba(0,0,0,0.18) 100%
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 3;
}

.ws-mag-spread-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.02)),
    var(--ws-paper-warm);
  line-height: 0;
  padding: 14px 10px;
}

.ws-mag-spread-page.left::after,
.ws-mag-spread-page.right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
}

.ws-mag-spread-page.left::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.06) 100%);
}

.ws-mag-spread-page.right::after {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, transparent 100%);
}

.ws-mag-spread-page img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 8px);
  object-fit: contain;
  background: var(--ws-paper);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  position: relative;
  z-index: 1;
}

.ws-mag-spread-page.is-empty {
  color: var(--ws-muted);
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(180deg, #f0e7d7, #eadcc4);
}

.ws-mag-empty-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  text-align: center;
  line-height: 1.4;
}

.ws-mag-mobile-frame {
  min-height: 420px;
  height: min(78vh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.02)),
    var(--ws-paper-warm);
  padding: 18px;
}

.ws-mag-mobile-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--ws-paper);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.10),
    0 18px 40px rgba(0,0,0,0.14);
}

.ws-mag-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ws-mag-status {
  text-align: center;
  color: var(--ws-muted);
  font-weight: 600;
  margin-top: 14px;
}

.ws-mag-swipe-note {
  text-align: center;
  color: var(--ws-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.ws-mag-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--ws-dark);
  display: none;
  flex-direction: column;
  padding: 14px;
}

.ws-mag-fullscreen.is-open {
  display: flex;
}

.ws-mag-fullscreen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ws-mag-fullscreen-title {
  color: #fff4e8;
  font-weight: 700;
}

.ws-mag-fullscreen-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ws-mag-fullscreen .ws-mag-viewport {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 58%),
    linear-gradient(180deg, #cdbd9f, #bca980);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 20px 60px rgba(0,0,0,0.35);
}

.ws-mag-fullscreen .ws-mag-desktop-frame,
.ws-mag-fullscreen .ws-mag-mobile-frame {
  height: calc(100vh - 210px);
  min-height: 0;
}

.ws-mag-fullscreen .ws-mag-status,
.ws-mag-fullscreen .ws-mag-swipe-note {
  color: #f1e7d8;
}

.ws-mag-desktop-reader {
  display: block;
}

.ws-mag-mobile-reader {
  display: none;
}

@media (max-width: 900px) {
  .ws-mag-desktop-reader {
    display: none;
  }

  .ws-mag-mobile-reader {
    display: block;
  }
}

/* ==========================================
   MAGAZINE ARCHIVE / BOOKCASE
   ========================================== */

.ws-mag-archive-page {
  padding-bottom: 56px;
}

.ws-archive-hero {
  padding: 48px 20px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)),
    var(--ws-surface);
  border-bottom: 1px solid var(--ws-border);
}

.ws-archive-hero-inner {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  text-align: center;
}

.ws-archive-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.ws-archive-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ws-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.ws-archive-wrap {
  width: min(1260px, calc(100% - 24px));
  margin: 34px auto 0;
}

.ws-year-section {
  margin-bottom: 48px;
}

.ws-year-heading-wrap {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 4px solid #b08b57;
}

.ws-year-heading {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--ws-text);
}

.ws-bookcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px 22px;
  align-items: end;
  padding-bottom: 22px;
}

.ws-bookcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 74px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ws-shelf), var(--ws-shelf-dark));
  box-shadow:
    0 8px 18px rgba(0,0,0,0.12),
    inset 0 2px 1px rgba(255,255,255,0.18);
  z-index: 0;
}

.ws-book-item {
  position: relative;
  z-index: 1;
}

.ws-book-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ws-book-link:hover {
  text-decoration: none;
}

.ws-book-thumb-wrap {
  position: relative;
  padding: 10px 10px 16px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.18)),
    var(--ws-card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 14px 34px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ws-book-link:hover .ws-book-thumb-wrap {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 22px 48px rgba(0,0,0,0.16);
}

.ws-book-thumb-spine {
  position: absolute;
  top: 10px;
  bottom: 16px;
  left: 10px;
  width: 10px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, var(--ws-spine), var(--ws-spine-dark));
  box-shadow:
    inset -2px 0 4px rgba(255,255,255,0.14),
    1px 0 3px rgba(0,0,0,0.12);
}

.ws-book-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ws-paper);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.14),
    0 18px 40px rgba(0,0,0,0.10);
}

.ws-book-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  color: #3a2d24;
  background: linear-gradient(135deg, #efe5d2, #dcc8a8);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.14),
    0 18px 40px rgba(0,0,0,0.10);
}

.ws-book-meta {
  padding: 14px 8px 0;
  text-align: center;
}

.ws-book-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ws-text);
}

.ws-book-subtitle {
  margin-top: 6px;
  color: var(--ws-muted);
  font-size: 0.92rem;
}

.ws-book-read {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.ws-no-results {
  text-align: center;
  padding: 50px 20px;
  background: #fffaf2;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.ws-no-results h2 {
  margin-top: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .ws-bookcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 34px;
  }

  .ws-archive-hero {
    padding: 36px 16px 24px;
  }

  .ws-archive-wrap {
    width: min(100%, calc(100% - 16px));
    margin-top: 24px;
  }

  .ws-bookcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .ws-bookcase::after {
    bottom: 70px;
  }

  .ws-book-title {
    font-size: 0.95rem;
  }

  .ws-book-read {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .ws-mag-fullscreen {
    padding: 10px;
  }

  .ws-mag-controls {
    gap: 10px;
  }

  .ws-btn {
    min-height: 42px;
    padding: 11px 16px;
  }
.ws-book-thumb {
  transition: transform 0.25s ease;
}

.ws-book-link:hover .ws-book-thumb {
  transform: scale(1.04);
.ws-login-logo img {
  image-rendering: -webkit-optimize-contrast;
.login form {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.015) 0,
      rgba(0,0,0,0.015) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.95)),
    var(--ws-paper);
.login form {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login form:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(31,26,23,0.18);
}