/* ============================================================ */
/* TEG-BLUE Neocities — pastel Y2K / vaporwave Neocities revival */
/* Aesthetic anchor: Classic Mac OS rounded pastel windows on a  */
/* sage grid desktop. References: aetheistic-references-neocities/ */
/* ============================================================ */

/* ============================================================ */
/* TOKENS                                                       */
/* ============================================================ */

:root {
  /* Desktop */
  --bg-desktop:        #b5d3bf;                /* sage green */
  --bg-grid-line:      rgba(110, 145, 125, 0.22);
  --grid-size:         32px;

  /* Window chrome variants — primer-only color grammar,
     not canonical TEG-Blue model colors. */
  --chrome-pink:       #f5b5c5;                /* dusty pink (default / aguda window) */
  --chrome-lavender:   #d8c5e0;                /* dusty lavender (cronica window) */
  --chrome-peach:      #f8c5a8;                /* peach (banner) */
  --chrome-mint:       #b8dcc4;                /* mint (welcome ticker) */

  /* Window body */
  --body-cream:        #fff5e8;                /* warm cream */
  --body-cream-alt:    #fef0e0;

  /* Borders / shadows */
  --border-soft:       1.5px solid rgba(70, 90, 80, 0.32);
  --shadow-window:     0 3px 0 rgba(70, 90, 80, 0.15), 0 6px 18px rgba(70, 90, 80, 0.08);

  /* Text */
  --text-body:         #3d4a5c;                /* soft deep teal-navy */
  --text-heading:      #b86a82;                /* dusty rose */
  --text-secondary:    #7a8a99;
  --text-titlebar:     rgba(70, 50, 60, 0.7);

  /* Traffic-light dots (pastel Mac) */
  --dot-close:         #ff8eaa;
  --dot-min:           #ffd47a;
  --dot-max:           #9ad4a8;
  --dot-border:        rgba(70, 90, 80, 0.4);

  /* Comparison columns — primer-only differentiation */
  --col-aguda-bg:      #fde3eb;                /* very light pink */
  --col-cronica-bg:    #ece3f5;                /* very light lavender */
  --col-aguda-accent:  #c25d7a;
  --col-cronica-accent:#7e5db8;
  --col-label-bg:      #fff5e8;
}

/* ============================================================ */
/* RESET / BASE                                                 */
/* ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-body);

  background-color: var(--bg-desktop);
  background-image:
    linear-gradient(to right,  var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* ============================================================ */
/* DESKTOP LAYOUT                                               */
/* ============================================================ */

.desktop {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ============================================================ */
/* WINDOWS — Classic Mac OS rounded pastel                      */
/* ============================================================ */

.window {
  background: var(--body-cream);
  border: var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  margin: 0 auto 1.75rem;
}

.window--peach    { --chrome: var(--chrome-peach); }
.window--pink     { --chrome: var(--chrome-pink); }
.window--lavender { --chrome: var(--chrome-lavender); }
.window--mint     { --chrome: var(--chrome-mint); }

.window--narrow   { max-width: 560px; }

.window-titlebar {
  background: var(--chrome, var(--chrome-pink));
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: var(--border-soft);
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--text-titlebar);
  letter-spacing: 0.02em;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--dot-border);
  display: inline-block;
  flex-shrink: 0;
}

.window-dot--close { background: var(--dot-close); }
.window-dot--min   { background: var(--dot-min); }
.window-dot--max   { background: var(--dot-max); }

.window-title {
  margin-left: 0.4rem;
  flex: 1;
}

.window-body {
  padding: 1.4rem 1.6rem;
  background: var(--body-cream);
}

/* ============================================================ */
/* BANNER                                                       */
/* ============================================================ */

.window-body--banner {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.site-title {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.tagline {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}

/* ============================================================ */
/* WELCOME TICKER                                               */
/* ============================================================ */

.window-body--ticker {
  padding: 0.4rem 0.9rem;
}

/* ============================================================ */
/* INTRO TEXT                                                   */
/* ============================================================ */

.window-body--intro {
  padding: 1.6rem 1.8rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

.window-body--intro p {
  margin: 0 auto 1.1rem;
  max-width: 62ch;
}

.window-body--intro p:last-child {
  margin-bottom: 0;
}

.welcome-marquee {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  color: var(--text-body);
}

/* ============================================================ */
/* NAV STRIP                                                    */
/* ============================================================ */

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto 1.75rem;
}

.nav-tab {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  color: var(--text-body);
  background: var(--body-cream);
  border: var(--border-soft);
  border-radius: 8px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-tab:hover { background: var(--chrome-mint); color: var(--text-body); }
.nav-tab--active {
  background: var(--chrome-pink);
  color: #6e3a4c;
  font-weight: 500;
}

/* ============================================================ */
/* PAGE HEADING                                                 */
/* ============================================================ */

.page-heading {
  text-align: center;
  margin: 1.25rem 0 1.75rem;
}

.page-title {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0.4rem 0 0;
}

.page-marker {
  font-family: "VT323", monospace;
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0.35rem 0 0;
  letter-spacing: 0.04em;
}

/* ============================================================ */
/* COMPARISON TABLE                                             */
/* ============================================================ */

.window-body--compare {
  padding: 1rem 1rem 1.4rem;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.95rem;
}

.compare thead th {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: var(--border-soft);
}

.compare thead .col-label   { background: transparent; border: none; }
.compare thead .col-aguda   { background: var(--col-aguda-bg);   color: var(--col-aguda-accent); }
.compare thead .col-cronica { background: var(--col-cronica-bg); color: var(--col-cronica-accent); }

.compare tbody th.col-label {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-size: 1.15rem;
  text-align: right;
  padding: 0.7rem 0.85rem;
  background: var(--col-label-bg);
  color: var(--text-body);
  border: var(--border-soft);
  border-radius: 8px;
  width: 22%;
  letter-spacing: 0.02em;
}

.compare tbody td {
  vertical-align: top;
  padding: 0.85rem 0.95rem;
  min-height: 4rem;
  border-radius: 8px;
  border: var(--border-soft);
  width: 39%;
}

.compare tbody .cell-aguda   { background: var(--col-aguda-bg);   color: var(--text-body); }
.compare tbody .cell-cronica { background: var(--col-cronica-bg); color: var(--text-body); }

/* ============================================================ */
/* CONSTRUCTION STAMP                                           */
/* ============================================================ */

.construction-stamp {
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  letter-spacing: 0.02em;
}

.construction-stamp p { margin: 0; }

/* ============================================================ */
/* FOOTER STATUS BAR                                            */
/* ============================================================ */

.status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: var(--body-cream);
  border: var(--border-soft);
  border-radius: 8px;
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.status-item { letter-spacing: 0.02em; }
.status-sep  { color: var(--text-secondary); opacity: 0.6; }

.hit-counter {
  background: #1a1a1a;
  color: #9ad4a8;
  padding: 0 0.5em;
  border: 1px solid #9ad4a8;
  border-radius: 3px;
}

/* ============================================================ */
/* LINKS                                                        */
/* ============================================================ */

a            { color: #6a5dbb; text-decoration: underline; }
a:visited    { color: #8a6db5; }
a:hover      { color: var(--text-heading); }

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

@media (max-width: 640px) {
  .desktop { padding: 1.5rem 0.85rem 3rem; }
  .site-title { font-size: 2.4rem; }
  .page-title { font-size: 1.5rem; }

  .compare { font-size: 0.9rem; }
  .compare,
  .compare thead,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; }

  .compare thead { display: none; }
  .compare tbody tr {
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    border: var(--border-soft);
    border-radius: 10px;
    background: var(--body-cream);
  }
  .compare tbody th.col-label {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0 0 0.4rem;
    color: var(--text-heading);
    font-size: 1.25rem;
  }
  .compare tbody td {
    width: 100%;
    margin-bottom: 0.4rem;
  }
  .compare tbody td.cell-aguda::before   { content: "agudas · ";  color: var(--col-aguda-accent);   font-family: "VT323", monospace; }
  .compare tbody td.cell-cronica::before { content: "crónicas · "; color: var(--col-cronica-accent); font-family: "VT323", monospace; }
}

/* ============================================================ */
/* EMOCIONES PAGE — Family lists + sticker accents              */
/* ============================================================ */

.inline-emoji {
  display: inline-block;
  width: 32px;
  height: auto;
  vertical-align: -6px;
  margin-left: 0.25em;
  filter: drop-shadow(1px 2px 0 rgba(70, 90, 80, 0.18));
}

.window-wrapper {
  position: relative;
  margin: 0 auto 1.75rem;
}

.peek-sticker {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(2px 3px 0 rgba(70, 90, 80, 0.18));
}

.peek-sticker--top-right {
  top: -20px;
  right: 24px;
  width: 90px;
  transform: rotate(12deg);
}


.window-body--family {
  padding: 1.6rem 1.8rem;
}

.family-name {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text-heading);
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}

.family-context {
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin: 0 0 1.1rem;
}

.family-role {
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 1.4rem;
  max-width: 62ch;
}

.emotion-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.emotion-list li {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(70, 90, 80, 0.18);
}

.emotion-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.emotion-name {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

.emotion-role {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text-body);
}

@media (max-width: 640px) {
  .emotion-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ============================================================ */
/* HOMEPAGE — designed by Max                                   */
/* ============================================================ */

/* ---- HERO ---- */

.hero { position: relative; }

.window-body--hero {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  overflow: hidden;
}

.hero-title {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 4.5rem;
  margin: 0;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ff8eaa, #ffb86b, #ffe066, #9ad4a8, #a3c4f3, #c8b5dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: "VT323", monospace;
  font-size: 1.4rem;
  color: var(--text-body);
  margin: 0.6rem 0 0;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.hero-marker {
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--text-secondary);
  opacity: 0.75;
  margin: 0.4rem 0 0;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* ---- STICKER PILE ---- */

.sticker-pile {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sticker {
  position: absolute;
  filter: drop-shadow(2px 3px 0 rgba(70, 90, 80, 0.18));
  animation: stickerFloat 6s ease-in-out infinite;
}

.sticker--rainbow    { top:  4%; left:  4%;  width: 110px; transform: rotate(-10deg); }   /* sticker-01 (focal kawaii) */
.sticker--sparkle1   { top: 18%; right: 10%; width:  38px; transform: rotate(15deg);  animation-delay: 0.5s; }
.sticker--sparkle2   { bottom: 22%; left: 14%; width:  28px; transform: rotate(-8deg); animation-delay: 1.2s; }
.sticker--strawberry { top: 12%; right: 22%; width:  90px; transform: rotate(10deg);  animation-delay: 0.8s; }   /* sticker-02_1 (pink tag) */
.sticker--icecream   { bottom: 6%; right:  4%; width: 130px; transform: rotate(-8deg); animation-delay: 1.5s; }   /* sticker-03 (yellow blob) */
.sticker--unicorn    { bottom: 8%; left:  4%;  width:  75px; transform: rotate(6deg);  animation-delay: 2s; }     /* icon-computer-hello (CRT) */
.sticker--heart      { top: 38%; left:  3%; width:  32px; transform: rotate(-15deg); animation-delay: 1.8s; }
.sticker--star       { top:  4%; right: 40%; width:  36px; transform: rotate(20deg);  animation-delay: 0.3s; }

/* New icon styles */
.status-icon {
  width: 38px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-icon {
  width: 18px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.35em;
}

@keyframes stickerFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* ---- WASHI TAPE ---- */

.polaroid-window { position: relative; }

.washi-tape {
  position: absolute;
  width: 70px;
  height: 22px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 200, 220, 0.7),
    rgba(255, 200, 220, 0.7) 6px,
    rgba(255, 230, 240, 0.7) 6px,
    rgba(255, 230, 240, 0.7) 12px
  );
  border: 1px solid rgba(180, 140, 160, 0.4);
  z-index: 5;
}

.washi-tape--top-left  { top:  -8px; left:  30px; transform: rotate(-8deg); }
.washi-tape--top-right { top: -10px; right: 40px; transform: rotate(7deg); }
.washi-tape--polaroid  { top: -12px; left: 50%;  transform: translateX(-50%) rotate(-3deg); width: 60px; height: 18px; }

/* ---- DIARY NOTE / MANIFESTO ---- */

.window-body--diary,
.window-body--manifesto {
  padding: 1.5rem 1.8rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
}

.window-body--diary p,
.window-body--manifesto p {
  margin: 0 auto;
  max-width: 60ch;
}

.window-body--diary { background: #fff8f5; }

/* ---- RAINBOW DIVIDER ---- */

.rainbow-divider {
  height: 8px;
  margin: 2rem auto;
  max-width: 720px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    #ff6b9d 0%, #ffb86b 18%, #ffe066 36%,
    #9ad4a8 54%, #a3c4f3 72%, #c8b5dc 90%);
  box-shadow: 0 2px 0 rgba(70, 90, 80, 0.12);
}

/* ---- SECTION HEADING ---- */

.section-heading {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  text-align: center;
  color: var(--text-heading);
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}

.section-subheading {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* ---- 4 MODELS — POLAROID CARDS ---- */

.model-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 auto 1.75rem;
  max-width: 720px;
}

.model-card {
  text-decoration: none;
  display: block;
}

.polaroid {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(70, 90, 80, 0.32);
  padding: 16px 16px 22px;
  box-shadow: 0 4px 0 rgba(70, 90, 80, 0.15), 0 8px 18px rgba(70, 90, 80, 0.1);
  transform: rotate(-1deg);
  transition: transform 0.25s ease;
}

.model-card:nth-child(2) .polaroid { transform: rotate(1deg); }
.model-card:nth-child(3) .polaroid { transform: rotate(0.8deg); }
.model-card:nth-child(4) .polaroid { transform: rotate(-1.2deg); }

.model-card:hover .polaroid { transform: rotate(0deg) translateY(-4px); }

.polaroid-photo {
  background: var(--photo-bg, #fde3eb);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(70, 90, 80, 0.18);
}

.polaroid-photo--m1 { --photo-bg: #fde3eb; }
.polaroid-photo--m2 { --photo-bg: #ffe7c5; }
.polaroid-photo--m3 { --photo-bg: #ece3f5; }
.polaroid-photo--m4 { --photo-bg: #d4ebe0; }

.model-sticker {
  width: 70px;
  height: auto;
  filter: drop-shadow(1px 2px 0 rgba(70, 90, 80, 0.22));
}

.polaroid-caption {
  text-align: center;
  margin-top: 0.85rem;
}

.polaroid-marker {
  display: inline-block;
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.polaroid-title {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: 0.02em;
}

.polaroid-question {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0.35rem 0 0;
}

.polaroid-status {
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.35rem 0 0;
  letter-spacing: 0.04em;
  font-style: italic;
}

.model-card--coming-soon .polaroid { opacity: 0.92; }

/* ---- CURRENTLY OBSESSED + WHAT'S NEW ---- */

.window-body--obsessed,
.window-body--whats-new {
  padding: 1.4rem 1.6rem;
}

.obsessed-heading {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-heading);
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.obsessed-list,
.whats-new-list {
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  padding-left: 1.2rem;
}

.obsessed-list li { margin-bottom: 0.3rem; }

.whats-new-list {
  list-style: none;
  padding-left: 0;
}

.whats-new-list li {
  margin-bottom: 0.4rem;
  font-family: "VT323", monospace;
  font-size: 1.1rem;
}

.whats-new-date  { color: var(--text-secondary); letter-spacing: 0.03em; }

.whats-new-status {
  font-size: 0.85rem;
  padding: 0 0.4em;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.whats-new-status--live { background: #9ad4a8; color: #1a4530; }
.whats-new-status--soon { background: #ffd47a; color: #5c3e08; }

/* ---- BEST VIEWED IN ---- */

.best-viewed-in {
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 1.5rem 0 0;
  letter-spacing: 0.03em;
}

/* ---- HOMEPAGE RESPONSIVE ---- */

@media (max-width: 640px) {
  .hero-title    { font-size: 3rem; }
  .hero-tagline  { font-size: 1.15rem; }

  .sticker--rainbow    { width: 60px; }
  .sticker--strawberry { width: 36px; }
  .sticker--icecream   { width: 36px; }
  .sticker--unicorn    { width: 50px; }
  .sticker--star       { width: 26px; }
  .sticker--heart      { width: 24px; }
  .sticker--sparkle1   { width: 28px; }
  .sticker--sparkle2   { width: 22px; }

  .model-cards     { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.4rem; }
}
