/* css/index.css */
/* russmcdaniel.my.id – front page */

:root{
  --bg: #fbf8f2;          /* warm cream page */
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #4b5565;
  --line: #d9e1ee;
  --shadow: 0 12px 30px rgba(11,18,32,.10);
  --radius: 16px;

  --max: 1100px;
  --pad: 18px;

  --accent: #3aa66b;
  --footer-clear: 140px;
}

/* ---------- BASE ---------- */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  padding-top: 64px;
  padding-bottom: var(--footer-clear);
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      var(--bg) 45%,
      var(--bg) 55%,
      #ffffff 100%
    );
  color:var(--text);

  /* CONTENT / READING FONT */
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Make form controls inherit the same font everywhere */
button, input, textarea, select{ font: inherit; }

/* Footer clearance spacer (keep, since you use fixed footer) */
body::after{
  content:"";
  display:block;
  height: var(--footer-clear);
}

/* ---------- NAV ---------- */

.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  padding: 10px var(--pad);

  /* SOLID base (required for mobile) */
  background-color: #ffffff;

  /* visual accent layer (REVERSED footer) */
  background-image:
    linear-gradient(
      to bottom,
      rgba(58,166,107,0.18) 0%,
      rgba(58,166,107,0.08) 35%,
      rgba(255,255,255,0.0) 75%
    );

  border-bottom: 0px solid var(--line);
}

.nav__inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  letter-spacing: .12em;
  font-weight: 700;
  font-size: 13px;
}
/* ---------- BRAND TEXT (Russ default, Rafeal only in RAF mode) ---------- */
.brand__text--raf{ display:none; }
.brand__text--default{ display:inline; }

.is-raf .brand__text--raf{ display:inline; }
.is-raf .brand__text--default{ display:none; }


.brand__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,166,107,.14);
}

.nav__right{
  display:flex;
  gap: 14px;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size: 13px;
  letter-spacing: .08em;
}

/* --- NAV LINKS (UPDATED: green hover + underline + focus polish) --- */

.nav__link{
  position: relative;
  text-decoration:none;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* underline (clean, not browser default) */
.nav__link::after{
  content:"";
  position:absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}

/* hover: green + underline (no background pill) */
.nav__link:hover{
  color: var(--accent);
  background: transparent;
}
.nav__link:hover::after{ transform: scaleX(1); }

/* active page stays highlighted (keep your look) + underline */
.nav__link.is-active{
  color: var(--text);
  background: rgba(58,166,107,.10);
  border: 1px solid rgba(58,166,107,.25);
}
.nav__link.is-active::after{ transform: scaleX(1); }

/* keyboard focus polish */
.nav__link:focus-visible{
  outline: none;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,166,107,.22);
}
.nav__link:focus-visible::after{ transform: scaleX(1); }

/* reduced motion respect */
@media (prefers-reduced-motion: reduce){
  .nav__link,
  .nav__link::after{ transition: none !important; }
}

/* ---------- CONTENT FRAME ---------- */

.frame{
  padding: 18px var(--pad) 22px;
}

.frame__inner{
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;

  /* MID-MORNING SUN: top-right → white falloff */
  background:
    radial-gradient(
      140% 140% at 100% 0%,
      rgba(255, 220, 120, 0.75) 0%,
      rgba(255, 235, 180, 0.55) 22%,
      rgba(255, 248, 225, 0.35) 45%,
      rgba(255, 255, 255, 0.98) 70%,
      #ffffff 100%
    );

  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;

  /* lock desktop placement regardless of HTML order */
  grid-template-areas: "rail panel";
}

/* assign areas */
.rail{ grid-area: rail; }
.panel{ grid-area: panel; min-width:0; }

/* ---------- LEFT RAIL ---------- */

.rail{
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.rail__block{ margin-bottom:14px; }

.rail__label{
  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.rail__photo .photo{
  height:170px;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.photo__img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.photo__caption{
  margin-top: 1px;
  padding: 6px 10px;
  background: transparent;

  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size: 12px;
  color: var(--muted);
}

/* Card-like blocks in rail (transparent by default) */
.rail__card{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: transparent;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size:14px;
}

/* Optional: per-card background overrides you can apply later */
.rail__card--glass{
  background: rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.rail__card--solid{ background:#fff; }
.rail__card--imaginarius{
  background: rgba(58,166,107,.10);
  border-color: rgba(58,166,107,.25);
}

/* If you still use buttons anywhere */
.rail__button{
  display:block;
  padding:10px 12px;
  margin-bottom:8px;
  border-radius:12px;
  border:1px solid var(--line);
  background: transparent;
  text-decoration:none;
  color:var(--text);

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size:14px;
}

.rail__button--primary{
  background: rgba(58,166,107,.10);
  border-color: rgba(58,166,107,.25);
}

/* If you keep subnotes anywhere */
.rail__subnote{
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(217,225,238,.9);
  border-radius: 12px;
  background: transparent;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size: 13px;
  color: var(--muted);
}

/* Published Works links (underline at rest, lavender on hover) */
.rail__link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.rail__link:hover{
  color: #b392ff;
  text-decoration-color: #b392ff;
}

/* ---------- MAIN PANEL ---------- */

.panel__top{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

/* Transparent “card” feel by default */
.nameplate{
  padding:12px 14px;
  border-radius:12px;
  background: rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.nameplate__first,
.nameplate__last{
  font-size:46px;
  font-weight:700;
}

/* Badge (your updated cosmetics) */
.badge{
  width:100px;
  padding:0;
  border-radius:12px;
  background: transparent;
  text-align:center;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size:14px;
}

/* BADGE ICON (SVG-safe sizing, link-safe) */
.badge__iconWrap{
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge__iconWrap a{
  display:block;
  width:100%;
  height:100%;
  line-height:0;
}

.badge__icon{
  width: 100%;
  height: 100%;
  display: block;
}

.badge__small{ display:block; }

/* Strap / labels / content boxes */
.strap{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: transparent;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size:14px;
}

.about__label,
.content__label{
  display: inline-block;
  padding: 6px 10px;
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(11,18,32,.60);
  border: 1px solid rgba(58,166,107,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.about__box,
.content__box{
  margin-top:8px;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: transparent;

  font-size:14px;
  line-height:1.65;
}

.content__box{ min-height:360px; }

/* paragraph rhythm + indentation (FIXED) */
.about__box p,
.content__box p{
  margin: 0 0 1em;
  text-indent: 1.5em;
}
.about__box p:first-child,
.content__box p:first-child{
  text-indent: 0; /* do not indent first paragraph */
}
.about__box p:last-child,
.content__box p:last-child{
  margin-bottom: 0;
}

/* ---------- FOOTER ----------
   Replaced: 2026-01-18 (mobile transparency fix)
-------------------------------- */

.footer{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 200;

  /* SOLID base (required for mobile) */
  background-color: #ffffff;

  /* visual accent layer (safe) */
  background-image:
    linear-gradient(
      to top,
      rgba(58,166,107,0.18) 0%,
      rgba(58,166,107,0.08) 35%,
      rgba(255,255,255,0.0) 75%
    );

  border-top:0px solid var(--line);
  padding: 20px var(--pad);
  opacity: 1;
}

.footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0px 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  text-align:center;

  /* UI FONT */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI,
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;

  font-size:13px;
  color:var(--muted);
}

.footer__brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 2px;
  margin-bottom: 0px;
}

.footer__logo{
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  display: block;
  margin: 0 auto 4px;
}

/* tagline only (no extra name line under logo) */
.footer__tagline{
  font-size: 12px;
  color: var(--muted);
}

.footer__legal{ margin-top: 0px; }

.footer__datetime{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* If you still have any footer links */
.footer__link{
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}
.footer__link:hover{
  color: #7a3cff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:860px){

  :root{
    --footer-clear: calc(110px + env(safe-area-inset-bottom));
  }

  /* collapse to one column AND reorder areas */
  .frame__inner{
    grid-template-columns:1fr;
    grid-template-areas:
      "panel"
      "rail";
  }

  .rail{
    border-right:none;
    border-bottom:1px solid var(--line);
    padding-bottom:14px;
    padding-right:0;
  }

  .panel__top{ flex-direction:column; }
}
