/* ============================
   Sakurai-Style UI (HenryD.Studio)
   ============================ */

:root{
  --ink:#111;
  --bg:#f5f6fa;
  --muted:#666;

  --btn-red:#ff4b5c;
  --btn-orange:#ff9b2b;
  --btn-yellow:#f7c948;
  --btn-green:#20b46a;
  --btn-teal:#00a8a8;
  --btn-blue:#2c78ff;
  --btn-purple:#8b5cf6;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font:16px/1.6 var(--sans);
  background:var(--bg);
  color:var(--ink);
}

/* ============================
   Top Ribbon
   ============================ */

.sak-ribbon{
  position:sticky;
  top:0;
  z-index:40;
  background:#fff;
  border-bottom:3px solid var(--ink);
  box-shadow:0 6px 0 rgba(0,0,0,.1);
}

.sak-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:14px 20px;
}

.sak-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-weight:800;
}

.sak-brand a{
  text-decoration:none;
  color:inherit;
}

.sak-brand-dot{
  color:var(--btn-teal);
}

.sak-subnav{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.sak-chip{
  padding:5px 10px;
  border-radius:999px;
  border:2px solid var(--ink);
  text-decoration:none;
  color:var(--ink);
  background:#fff;
  font-size:13px;
}

/* ============================
   Smash-style Menu Tiles
   ============================ */

.sak-menu{
  max-width:1120px;
  margin:22px auto 18px;
  padding:0 20px 24px;
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
}

.sak-tile{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 20px;
  border-radius:999px;
  border:4px solid var(--ink);
  box-shadow:0 8px 0 rgba(0,0,0,.6);
  text-decoration:none;
  color:#fff;
  font-family:var(--mono);
  min-height:90px;
  transition:transform .08s ease-out, box-shadow .08s ease-out;
}

.sak-tile:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 0 rgba(0,0,0,.7);
}

.sak-tile:active{
  transform:translateY(1px);
  box-shadow:0 4px 0 rgba(0,0,0,.6);
}

.sak-main-label{
  font-size:22px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.sak-sub-label{
  font-size:13px;
  opacity:0.9;
}

.sak-icon-badge{
  min-width:58px;
  height:58px;
  border-radius:50%;
  border:4px solid #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  background:rgba(0,0,0,.25);
}

/* Tile Color Variants */
.sak-red   { background:var(--btn-red); }
.sak-orange{ background:var(--btn-orange); }
.sak-yellow{ background:var(--btn-yellow); color:#222; }
.sak-green { background:var(--btn-green); }
.sak-teal  { background:var(--btn-teal); }
.sak-blue  { background:var(--btn-blue); }
.sak-purple{ background:var(--btn-purple); }
.sak-pink  {  background:#e84f9b;}

/* ============================
   Subpage Cards
   ============================ */

.sak-page-main{
  max-width:960px;
  margin:24px auto;
  padding:0 20px 32px;
}

.sak-card{
  border-radius:24px;
  border:4px solid var(--ink);
  background:#fff;
  box-shadow:0 8px 0 rgba(0,0,0,.6);
  padding:18px 20px 24px;
}

.sak-card h1{
  margin-top:0;
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.sak-muted{
  color:var(--muted);
}

/* ============================
   Home Button
   ============================ */

.sak-home-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:28px;
  padding:8px 14px;
  border-radius:16px;
  background:var(--btn-yellow);
  color:#000;
  font-weight:700;
  text-decoration:none;
  border:3px solid var(--ink);
  box-shadow:4px 4px 0 rgba(0,0,0,0.15);
  transition:transform 0.1s ease, box-shadow 0.1s ease;
}

.sak-home-btn:hover{
  transform:translateY(-2px);
  box-shadow:6px 6px 0 rgba(0,0,0,0.18);
}

.sak-home-btn:active{
  transform:translateY(0);
  box-shadow:2px 2px 0 rgba(0,0,0,0.1);
}

.henrydlogo {
  height:3em;
  width:auto;
  object-fit:contain;
  display:block;
}

/* ============================
   Smash Bros Style Start Screen
   ============================ */

.sak-start-screen {
  position:fixed;
  inset:0;
  background:linear-gradient(145deg, #ffffff 0%, #f0f0f0 65%);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3000;
}

.sak-start-card {
  text-align:center;
  padding:40px 50px;
  border:4px solid var(--ink);
  border-radius:30px;
  background:white;
  box-shadow:0 12px 0 rgba(0,0,0,.4);
}

.sak-start-title {
  font-family:var(--mono);
  font-size:1.7rem;
  margin:0;
}

.sak-start-site {
  font-family:var(--sans);
  font-weight:900;
  font-size:2.6rem;
  margin:10px 0 30px;
  color:var(--btn-blue);
  text-shadow:-3px -3px 0 white, 3px 3px 0 var(--ink);
}

.sak-start-btn {
  padding:14px 28px;
  font-size:1.3rem;
  font-family:var(--mono);
  font-weight:900;
  letter-spacing:1px;
  border-radius:18px;
  border:4px solid var(--ink);
  background:var(--btn-yellow);
  cursor:pointer;
  box-shadow:6px 6px 0 rgba(0,0,0,.4);
  animation:pressstart-pulse 1.2s infinite alternate;
  transition:transform .1s ease, box-shadow .1s ease;
}

.sak-start-btn:hover {
  transform:translateY(-3px);
  box-shadow:8px 8px 0 rgba(0,0,0,.5);
}

.sak-start-btn:active {
  transform:translateY(1px);
  box-shadow:3px 3px 0 rgba(0,0,0,.3);
}

.pdf-container {
    height: 70em;
}

@keyframes pressstart-pulse {
  from { opacity:0.65; }
  to { opacity:1; }
}

/* ============================
   ART ARCHIVE
   ============================ */

.art-grid {
  display:grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:22px;
}


/* Individual artwork */

.art-item {
  appearance:none;
  display:block;
  width:100%;
  padding:0;

  background:#fff;

  border:3px solid var(--ink);
  border-radius:14px;

  overflow:hidden;
  cursor:pointer;

  box-shadow:
    4px 4px 0 rgba(0,0,0,.35);

  transition:
    transform .1s ease,
    box-shadow .1s ease;
}


.art-item:hover {
  transform:translate(-2px,-2px);

  box-shadow:
    7px 7px 0 rgba(0,0,0,.45);
}


.art-item:active {
  transform:translate(1px,1px);

  box-shadow:
    2px 2px 0 rgba(0,0,0,.35);
}


.art-item img {
  display:block;

  width:100%;
  height:250px;

  object-fit:cover;
}


/* Loading */

.art-loading {
  padding:30px 0;

  text-align:center;

  font-family:var(--mono);
  font-weight:700;
}


/* Load more */

.art-controls {
  display:flex;
  justify-content:center;

  margin:28px 0 8px;
}


.art-load-more {
  padding:10px 20px;

  border:3px solid var(--ink);
  border-radius:999px;

  background:var(--btn-blue);
  color:#fff;

  font-family:var(--mono);
  font-weight:800;

  cursor:pointer;

  box-shadow:
    4px 4px 0 rgba(0,0,0,.4);
}


.art-load-more:hover {
  transform:translateY(-2px);

  box-shadow:
    6px 6px 0 rgba(0,0,0,.45);
}


.art-load-more:active {
  transform:translateY(1px);

  box-shadow:
    2px 2px 0 rgba(0,0,0,.35);
}


/* ============================
   ART VIEWER
   ============================ */

.art-viewer {
  position:fixed;
  inset:0;

  z-index:5000;

  display:none;

  align-items:center;
  justify-content:center;

  padding:30px;

  background:
    rgba(0,0,0,.92);
}


.art-viewer.open {
  display:flex;
}


.art-viewer img {
  display:block;

  max-width:min(1100px, 90vw);
  max-height:88vh;

  object-fit:contain;

  border:4px solid #fff;
  border-radius:10px;

  box-shadow:
    0 12px 40px rgba(0,0,0,.5);
}


/* Close button */

.art-close {
  position:absolute;

  top:20px;
  right:20px;

  width:50px;
  height:50px;

  border:3px solid #111;
  border-radius:50%;

  background:var(--btn-yellow);

  font-size:30px;
  font-weight:900;
  line-height:1;

  cursor:pointer;
}


/* Previous / Next */

.art-arrow {
  position:absolute;
  top:50%;

  transform:translateY(-50%);

  width:54px;
  height:70px;

  border:3px solid #111;
  border-radius:16px;

  background:#fff;

  font-size:40px;
  font-weight:900;

  cursor:pointer;
}


.art-prev {
  left:20px;
}


.art-next {
  right:20px;
}


/* ============================
   ART MOBILE
   ============================ */

@media(max-width:700px) {

  .art-grid {
    grid-template-columns:
      repeat(2, minmax(0,1fr));

    gap:10px;
  }


  .art-item img {
    height:180px;
  }


  .art-viewer {
    padding:12px;
  }


  .art-viewer img {
    max-width:96vw;
    max-height:80vh;
  }


  .art-arrow {
    width:44px;
    height:58px;

    font-size:32px;

    background:
      rgba(255,255,255,.9);
  }


  .art-prev {
    left:8px;
  }


  .art-next {
    right:8px;
  }

}


@media(max-width:420px) {

  .art-item img {
    height:145px;
  }

}
