/* Char's Journey — rebuilt from the 2019 Wayback capture.
   Palette lifted from her original banner: soft rose pink, black ink,
   black-and-white stripe rules. Script headings throughout. */

@import url('https://fonts.googleapis.com/css2?family=Cherry+Cream+Soda&family=Kaushan+Script&display=swap');

:root{
  --rose:#F7D9E2;
  --rose-deep:#F0C0D0;
  --rose-line:#E8A8BC;
  --ink:#1D1D1D;
  --ink-soft:#5A4A50;
  --cream:#FFF9FA;
  --white:#FFFFFF;
  --accent:#C2185B;
  --link:#A3175B;
}

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

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--rose);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.65), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(255,255,255,.45), transparent 42%);
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.7;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--link)}
a:hover{color:var(--accent)}

.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#000;color:#fff;padding:.6rem 1rem;z-index:99}

:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* ---------- stripe rules ---------- */

.stripe{
  height:14px;
  background-image:repeating-linear-gradient(
    90deg, #111 0 14px, #fff 14px 28px);
  border-top:1px solid #111;
  border-bottom:1px solid #111;
}

/* ---------- header ---------- */

.masthead{
  max-width:1100px;
  margin:0 auto;
  padding:0;
  background:#fff;
  box-shadow:0 2px 10px rgba(90,50,70,.18);
}

.banner-wrap{background:#fff;line-height:0}
.banner-wrap img{width:100%;height:auto}

/* ---------- nav ---------- */

.nav{
  background:#2B2B2B;
  background-image:linear-gradient(#3A3A3A,#222);
  border-top:2px solid #111;
  border-bottom:2px solid #111;
}

.nav__toggle-input{position:absolute;opacity:0;pointer-events:none}

.nav__toggle{
  display:none;
  width:100%;
  background:none;border:0;color:#fff;
  font-family:'Cherry Cream Soda',Georgia,serif;
  font-size:1rem;padding:.9rem;cursor:pointer;
}

.nav__list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;
}

.nav__list a{
  display:block;
  padding:.85rem 1.15rem;
  color:#F3DDE4;
  font-family:'Cherry Cream Soda',Georgia,serif;
  font-size:.92rem;
  text-decoration:none;
  letter-spacing:.02em;
}
.nav__list a:hover,
.nav__list a[aria-current="page"]{
  background:#000;
  color:#fff;
}

/* ---------- layout ---------- */

.page{
  max-width:1100px;
  margin:0 auto;
  background:var(--cream);
  padding:2rem 2rem 3rem;
  box-shadow:0 2px 10px rgba(90,50,70,.12);
}

.columns{
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 230px;
  gap:2rem;
  align-items:start;
}

/* ---------- sidebars ---------- */

.rail{font-size:.94rem}

.rail-card{
  background:var(--white);
  border:2px solid var(--rose-line);
  border-radius:10px;
  padding:1rem;
  margin-bottom:1.4rem;
  box-shadow:0 1px 4px rgba(90,50,70,.10);
}

.rail-card h2{
  font-family:'Kaushan Script',Georgia,serif;
  font-size:1.2rem;
  color:var(--accent);
  margin:0 0 .7rem;
  text-align:center;
  font-weight:400;
}

.rail-card img{border-radius:8px;margin:0 auto .7rem}
.rail-card p{margin:0 0 .7rem;color:var(--ink-soft);font-size:.9rem;text-align:center}
.rail-card p:last-child{margin-bottom:0}

.rail-card .btn{display:block;text-align:center}

.btn{
  display:inline-block;
  background:var(--rose-deep);
  border:2px solid #fff;
  border-radius:999px;
  padding:.55rem 1.1rem;
  font-family:'Cherry Cream Soda',Georgia,serif;
  font-size:.86rem;
  color:#3B1F2A;
  text-decoration:none;
  box-shadow:0 1px 3px rgba(90,50,70,.25);
}
.btn:hover{background:#E8A8BC;color:#2A1520;text-decoration:none}

/* ---------- posts ---------- */

.post{
  background:var(--white);
  border:2px solid var(--rose-line);
  border-radius:12px;
  padding:1.8rem 1.9rem;
  margin-bottom:2rem;
  box-shadow:0 2px 8px rgba(90,50,70,.10);
}

.post__title{
  font-family:'Kaushan Script',Georgia,serif;
  font-size:1.85rem;
  line-height:1.2;
  color:var(--accent);
  margin:0 0 .35rem;
  font-weight:400;
}

.post__meta{
  font-size:.82rem;
  color:var(--ink-soft);
  letter-spacing:.04em;
  text-transform:uppercase;
  border-bottom:1px dotted var(--rose-line);
  padding-bottom:.8rem;
  margin-bottom:1.2rem;
}

.post p{margin:0 0 1.1rem}
.post img{border-radius:8px;margin:1.2rem auto;border:4px solid var(--rose)}

.post__gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.9rem;
  margin:1.4rem 0;
}
.post__gallery img{
  width:100%;height:auto;border:4px solid var(--rose);border-radius:8px;margin:0;
}

.signature{max-width:340px;margin:1.6rem 0 0}

/* ---------- page heading ---------- */

h1.page-title{
  font-family:'Kaushan Script',Georgia,serif;
  font-size:2.3rem;
  color:var(--accent);
  text-align:center;
  font-weight:400;
  margin:0 0 1.6rem;
}

h2.section-title{
  font-family:'Kaushan Script',Georgia,serif;
  font-size:1.55rem;
  color:var(--accent);
  font-weight:400;
  margin:2rem 0 .8rem;
}

/* ---------- footer ---------- */

.footer{
  max-width:1100px;
  margin:0 auto;
  background:#2B2B2B;
  color:#E9D5DC;
  padding:1.6rem 2rem;
  text-align:center;
  font-size:.88rem;
  box-shadow:0 2px 10px rgba(90,50,70,.18);
}
.footer a{color:#F3DDE4}
.footer p{margin:.25rem 0}

/* ---------- responsive ---------- */

@media (max-width:900px){
  .columns{grid-template-columns:1fr}
  .rail--left{order:2}
  .rail--right{order:3}
  .main-col{order:1}
  .rail{font-size:1rem}
}

@media (max-width:640px){
  body{font-size:16px}
  .page{padding:1.2rem 1rem 2rem}
  .nav__toggle{display:block}
  .nav__list{flex-direction:column;max-height:0;overflow:hidden;transition:max-height .25s ease}
  .nav__toggle-input:checked ~ .nav__list{max-height:40rem}
  .nav__list a{border-top:1px solid #444;text-align:center;padding:1rem}
  .post{padding:1.2rem 1.1rem}
  .post__title{font-size:1.5rem}
  .post__gallery{grid-template-columns:1fr}
  h1.page-title{font-size:1.8rem}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important}
}

/* ---------- graceful placeholders ----------
   Used only where an archived image genuinely no longer exists.
   Keeps the layout intact instead of showing a broken-image icon. */

.ph{
  display:grid;place-items:center;
  background:
    repeating-linear-gradient(45deg,#FBEEF2 0 10px,#F6E2E9 10px 20px);
  border:2px dashed var(--rose-line);
  border-radius:10px;
  min-height:110px;
  padding:1rem;
  text-align:center;
}
.ph span{
  font-family:'Kaushan Script',Georgia,serif;
  color:var(--rose-deep);
  font-size:.95rem;
}
.ph-sig{
  display:block;
  min-height:60px;
  border-bottom:2px dotted var(--rose-line);
  margin-top:1.6rem;
}
.ph-sig span{display:none}


/* ---------- overflow guards ----------
   Grid children default to min-width:auto, so a wide image or a long
   unbroken string can force the track wider than the viewport and create
   horizontal scroll on phones. */

body{overflow-x:hidden}
.columns > *{min-width:0}
.main-col,.rail{min-width:0}
.page,.masthead,.footer{max-width:100%}
.banner-wrap img{display:block;width:100%;max-width:100%;height:auto}
.post,.rail-card{max-width:100%}
.post__gallery img,.post img{max-width:100%;height:auto}
.nav__list a{overflow-wrap:anywhere}

/* ---------- idea gallery ---------- */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.1rem;
  margin:1.4rem 0 0;
}

.gallery-item{
  margin:0;
  background:var(--white);
  border:2px solid var(--rose-line);
  border-radius:10px;
  padding:.55rem;
  box-shadow:0 1px 4px rgba(90,50,70,.10);
}

.gallery-item a{display:block;line-height:0}

.gallery-item img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:6px;
  transition:transform .15s ease;
}

.gallery-item img:hover{transform:scale(1.02)}

.gallery-item figcaption{
  font-size:.82rem;
  text-align:center;
  color:var(--ink-soft);
  padding:.5rem .2rem .15rem;
  line-height:1.35;
}

@media (max-width:900px){
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:520px){
  .gallery-grid{grid-template-columns:1fr}
  .gallery-item img{height:220px}
}
