:root {
  --ink:#26314d;
  --blue:#586aa7;
  --paper:#fff;
  --pale:#edf5ff;
  --line:#9faed0;
}

* { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  margin:0;
  color:var(--ink);
  font-family:"Courier New", Courier, monospace;
  background:
    linear-gradient(90deg, rgba(132,184,229,.20) 1px, transparent 1px),
    linear-gradient(rgba(132,184,229,.20) 1px, transparent 1px),
    #f8fbff;
  background-size:32px 32px;
}

a { color:#405694; text-underline-offset:2px; }

.site {
  width:min(820px, calc(100% - 22px));
  margin:18px auto 45px;
}

.topbar,.nav,.box {
  background:rgba(255,255,255,.97);
  border:1px solid var(--blue);
  box-shadow:3px 3px 0 rgba(88,106,167,.13);
}

.topbar {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 10px;
  font-size:11px;
}

.nav {
  margin-top:9px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:5px 16px;
  padding:8px;
}

.nav a {
  font-size:12px;
  text-decoration:none;
  border-bottom:1px dotted #7d8db9;
}

.nav a.active {
  background:#e7f1ff;
  padding:2px 5px;
  border:1px solid #9aadcf;
}

.page { display:none; margin-top:10px; }
.page.active { display:block; }

.box {
  padding:18px;
  margin-bottom:10px;
  overflow:hidden;
}

h1,h2,h3 { font-family:"Courier New", Courier, monospace; }

h1 {
  font-size:44px;
  line-height:.94;
  margin:7px 0 14px;
}

h2 {
  font-size:25px;
  margin:0 0 5px;
  border-bottom:1px dotted #a6b3d0;
  padding-bottom:7px;
}

h3 { font-size:18px; margin-top:0; }

p { line-height:1.6; }

.meta {
  margin:0 0 10px;
  color:#64708b;
  font-size:10px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.lead { font-size:16px; line-height:1.6; }

.note {
  display:inline-block;
  margin-top:6px;
  padding:5px 7px;
  background:#dcecff;
  border:1px solid #9eb1d4;
  font-size:10px;
  transform:rotate(-1deg);
}

.home-grid {
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:10px;
}

.intro { padding:23px; }

.hero-gif {
  margin:0;
  position:relative;
  padding:6px;
  background:#fff;
  border:1px solid var(--blue);
}

.hero-gif img {
  display:block;
  width:100%;
  height:100%;
  min-height:280px;
  object-fit:cover;
}

.hero-gif figcaption {
  position:absolute;
  left:12px;
  bottom:11px;
  padding:4px 7px;
  background:rgba(255,255,255,.88);
  border:1px solid #7386bd;
  font-size:9px;
}

.quicklinks {
  margin-top:10px;
  padding:9px 12px;
  text-align:center;
  background:#f9fcff;
  border:1px dashed #8fa0c9;
  font-size:11px;
}

.ticker {
  margin-top:10px;
  overflow:hidden;
  white-space:nowrap;
  border:1px solid #9aacd0;
  background:#f5f9ff;
  padding:5px 0;
}

.ticker span {
  display:inline-block;
  padding-left:100%;
  animation:scroll 17s linear infinite;
  font-size:10px;
}

@keyframes scroll {
  to { transform:translateX(-100%); }
}

.inline-photo {
  margin:0;
  padding:5px;
  background:white;
  border:1px solid #8294c0;
  box-shadow:4px 4px 0 rgba(79,98,158,.10);
}

.inline-photo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.tilted { transform:rotate(1deg); }

.about-layout {
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  align-items:center;
}

.about-photo {
  height:270px;
  transform:rotate(1.5deg);
}

.favorites-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.mini-panel {
  border:1px solid var(--line);
  background:#fbfdff;
  padding:12px;
}

.mini-panel .inline-photo {
  height:210px;
  margin-top:10px;
}

.series { font-size:14px; line-height:1.9; }

.music {
  margin-top:12px;
  border-top:1px dotted #aab5cf;
  padding-top:10px;
  font-size:11px;
  line-height:1.9;
}

.friends-layout {
  display:grid;
  grid-template-columns:1fr .85fr;
  gap:12px;
  align-items:start;
  margin-top:12px;
}

.stefi {
  display:inline-block;
  margin:0 0 10px;
  padding:7px 10px;
  border:1px solid var(--blue);
  background:var(--pale);
}

.names {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.names span {
  padding:6px 9px;
  border:1px solid #98a9ce;
  background:#fff;
  font-size:11px;
}

.friend-feature {
  height:235px;
  transform:rotate(-1deg);
}

.friend-wide {
  width:72%;
  height:220px;
  margin:16px auto 2px;
  transform:rotate(.7deg);
}

.aspirations-layout {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
  align-items:center;
}

.aspirations-photo {
  height:285px;
  transform:rotate(-1deg);
}

/* Diseño adaptable para celular */
@media (max-width:620px) {
  body { background-size:24px 24px; }

  .site {
    width:calc(100% - 12px);
    margin:7px auto 25px;
  }

  .topbar { font-size:9px; }

  .nav {
    position:sticky;
    top:0;
    z-index:20;
    gap:4px 10px;
  }

  .home-grid,
  .about-layout,
  .favorites-grid,
  .friends-layout,
  .aspirations-layout {
    grid-template-columns:1fr;
  }

  h1 { font-size:34px; }
  .intro { padding:17px; }

  .hero-gif img {
    min-height:0;
    height:auto;
  }

  .about-photo,
  .mini-panel .inline-photo,
  .friend-feature,
  .friend-wide,
  .aspirations-photo {
    width:100%;
    height:auto;
    transform:none;
  }

  .about-photo img,
  .mini-panel .inline-photo img,
  .friend-feature img,
  .friend-wide img,
  .aspirations-photo img {
    height:auto;
    max-height:320px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .ticker span {
    animation:none;
    padding-left:8px;
  }
}