/* assets/base.css */
/* =========================================================
   naturalecho — Soft Echo Grid (BASE)
   Updated for:
   - Featured project (image tile + link)
   - Dev log section
   - Important links (tumblr + itch)
   - About + read more + FAQ
   - Demos + oneshots
========================================================= */

:root{
  /* Base pastels */
  --bg: #fff7fb;
  --paper: rgba(255,255,255,.74);
  --text: #2a2a33;
  --muted: rgba(42,42,51,.70);

  /* Grid */
  --grid: rgba(120,145,170,.10);
  --grid-size: 44px;

  /* Echo accents */
  --pink: #f6c6da;
  --blue: #c7e3ff;
  --lav: #d9ceff;

  /* UI */
  --border: rgba(42,42,51,.12);
  --shadow: 0 10px 30px rgba(25,30,45,.08);
  --radius: 18px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --maxw: 980px;
  --pad: clamp(18px, 3vw, 34px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background layers */
.grid{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.glow{
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 20%, rgba(246,198,218,.22), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(199,227,255,.22), transparent 46%),
    radial-gradient(circle at 60% 85%, rgba(217,206,255,.16), transparent 50%);
}

/* Layout wrapper */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--pad) * 1.2) var(--pad) calc(var(--pad) * 1.6);
}

/* Topbar */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
}

.mini-brand{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 0 0 6px rgba(255,255,255,.45);
}

nav{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: lowercase;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}

nav a:hover,
nav a:focus-visible{
  color: var(--text);
  background: rgba(255,255,255,.55);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  padding: 42px 0 34px;
  text-align: center;
}

.echo-title{
  position: relative;
  display: inline-block;
  font-weight: 740;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.echo-title .echo{
  position: absolute;
  inset: 0;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.echo-title .pink{
  color: var(--pink);
  opacity: .45;
  transform: translate(4px, 3px);
}

.echo-title .blue{
  color: var(--blue);
  opacity: .35;
  transform: translate(-4px, 2px);
}

.tagline{
  max-width: 58ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 15px;
}

.tagline-sub{
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(42,42,51,.55);
}

.divider{
  height: 1px;
  width: min(680px, 92%);
  margin: 28px auto 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Panels */
.panel{
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.panel-inner{
  padding: 22px;
}

.panel h2{
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: lowercase;
}

/* Panels */
.panel p{
  margin: 0;
  color: var(--muted);
}

/* ===== Project page typography ===== */

.panel p.story-lead{
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--muted);
  font-size: 15px;
}

.panel p.story-lead:last-child{
  margin-bottom: 0;
}

/* ===== Project page section spacing ===== */

.panel h3{
  margin-bottom: 20px;
}


/* Featured */
.featured-card{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.featured-card:hover,
.featured-card:focus-visible{
  transform: translateY(-2px);
  background: rgba(255,255,255,.78);
  border-color: rgba(42,42,51,.18);
  box-shadow: 0 14px 32px rgba(25,30,45,.10);
}

.featured-thumb{
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42,42,51,.14);
  background: linear-gradient(135deg, rgba(246,198,218,.45), rgba(199,227,255,.45));
}

.featured-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-meta{
  display: grid;
  gap: 6px;
  align-content: start;
}

.featured-title{
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  position: relative;
  display: inline-block;
}

/* small echo behind featured title */
.featured-title::before,
.featured-title::after{
  content: attr(data-echo);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  user-select: none;
  pointer-events: none;
  opacity: .28;
}

.featured-title::before{
  color: var(--pink);
  transform: translate(2px,2px);
}

.featured-title::after{
  color: var(--blue);
  transform: translate(-2px,1px);
  opacity: .22;
}

.featured-desc{
  color: var(--muted);
  font-size: 14px;
}

.featured-cta{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(42,42,51,.60);
}

/* =========================================================
   Project status tags (WIP / Complete / Unavailable)
========================================================= */

.project-tag{
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: lowercase;
  border: 1px solid rgba(42,42,51,.12);
  background: rgba(255,255,255,.65);
  color: rgba(42,42,51,.70);
}

/* Work in progress */
.project-tag.wip{
  background: linear-gradient(
    135deg,
    rgba(246,198,218,.45),
    rgba(199,227,255,.45)
  );
  border-color: rgba(246,198,218,.55);
  color: var(--text);
}

/* Complete */
.project-tag.complete{
  background: rgba(200,235,215,.65);
  border-color: rgba(140,190,160,.55);
  color: #1f3a2a;
}

/* Unavailable / locked */
.project-tag.unavailable{
  background: rgba(230,230,235,.70);
  border-color: rgba(160,160,170,.55);
  color: rgba(60,60,70,.65);
}

/* =========================================================
   Unavailable project cards (muted + unclickable)
========================================================= */

.project-card.unavailable{
  opacity: .72;
  filter: grayscale(.15);
  pointer-events: none;     /* disables clicking */
  cursor: default;
}

/* Prevent hover effects */
.project-card.unavailable:hover{
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,.65);
}

/* Slightly dull the image to reinforce state */
.project-card.unavailable .project-thumb{
  filter: grayscale(.25) saturate(.85);
}


/* Sections grid */
.sections{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}

@media (min-width: 860px){
  .sections{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.mini{
  background: rgba(255,255,255,.58);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.mini-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mini h3{
  margin: 0 0 14px; 
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: .02em;
}


.mini-more{
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(42,42,51,.58);
  padding: 6px 8px;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}

.mini-more:hover{
  color: var(--text);
  background: rgba(255,255,255,.65);
  transform: translateY(-1px);
}

.mini-text{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Lists */
.list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list a{
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.40);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.list a:hover{
  background: rgba(255,255,255,.70);
  border-color: rgba(42,42,51,.12);
  transform: translateY(-1px);
}

.list .meta{
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(42,42,51,.55);
  white-space: nowrap;
}

/* Buttons */
.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.62);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.78);
  border-color: rgba(42,42,51,.18);
}

.btn.alt{
  background: linear-gradient(135deg, rgba(246,198,218,.35), rgba(199,227,255,.35));
}

/* Footer */
footer{
  margin-top: 26px;
  text-align: center;
  color: rgba(42,42,51,.55);
  font-size: 12px;
  padding: 18px 0 8px;
}

footer .tiny{
  font-family: var(--mono);
  letter-spacing: .06em;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
