@import url("/ui/nes.min.css");

/* =========================================================
   Voeu shared DS Lite theme
   ---------------------------------------------------------
   This is now the single theme source for the Neocities site.
   Old pages can keep linking /styles.css, /stylesarf.css, etc.;
   those files import this one for compatibility.
========================================================= */

@font-face {
  font-family: "ArkPixel10px";
  src: url("/ui/ark-pixel-10px-monospaced-ja.ttf");
}

@font-face {
  font-family: "ArkPixel12px";
  src: url("/ui/ark-pixel-12px-monospaced-ja.ttf");
}

@font-face {
  font-family: "CandideCondensedRegular";
  src: url("/ui/Candide-CondensedMedium.ttf");
}

:root {
  --ds-bg: #e9edf5;
  --ds-bg-soft: #f5f7fb;
  --ds-panel: #ffffff;
  --ds-panel-translucent: rgba(255, 255, 255, 0.88);
  --ds-border: #c4ccd8;
  --ds-border-strong: #9ba4b8;
  --ds-text: #1a1f2b;
  --ds-muted: #70819b;
  --ds-accent: #6b8fff;
  --ds-accent-strong: #4b6cff;
  --ds-accent-soft: #e0e7ff;
  --ds-shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ds-shadow-pixel: 4px 4px 0 rgba(155, 164, 184, 0.35);
  --ds-sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ds-bg);
}

body {
  margin: 0;
  padding: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: "ArkPixel12px", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: "ArkPixel12px", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--ds-accent-strong);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ds-accent-strong);
  text-decoration: underline;
}



/* ---------------------------------------------------------
   NES.css soft DS Lite overrides
--------------------------------------------------------- */
.nes-container {
  background-color: var(--ds-panel);
  color: var(--ds-text);
}

.nes-container.is-rounded {
  margin: 15px;
  border-image-repeat: unset;
}

.nes-container.with-title > .title {
  display: table;
  background-color: var(--ds-panel);
  color: var(--ds-muted);
  font-family: "ArkPixel10px", system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.nes-container.is-rounded.with-title > .title {
  margin-top: 0;
}

.nes-btn.is-primary {
  background-color: var(--ds-accent);
}

/* ---------------------------------------------------------
   Shared page layout
--------------------------------------------------------- */
.overlay {
  min-height: 100vh;
  margin-left: var(--ds-sidebar-width);
  padding: 24px 24px 40px;
}

.home-wrap,
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.textcontainer,
.header {
  width: min(920px, 100%);
  margin: 16px auto;
  padding: 1.25rem 1.5rem;
  border: 4px solid var(--ds-border-strong);
  background: var(--ds-panel-translucent);
  color: var(--ds-text);
  box-shadow: var(--ds-shadow-pixel);
}

.header {
  text-align: center;
}

.textcontainer > :first-child,
.header > :first-child {
  margin-top: 0;
}

.textcontainer > :last-child,
.header > :last-child {
  margin-bottom: 0;
}

.textcontainer h1,
.textcontainer h2,
.textcontainer h3,
.header h1,
.header h2,
.header h3 {
  color: var(--ds-text);
  line-height: 1.25;
}

.textcontainer h1 {
  text-align: center;
  font-size: 1.35rem;
}

.textcontainer p,
.textcontainer li {
  color: var(--ds-text);
}

.textcontainer ul,
.textcontainer ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1.25rem;
}

.textcontainer li {
  margin-bottom: 0.35em;
}

.textcontainer img,
.container img,
.gallery img {
  max-width: 100%;
  height: auto;
}

/* Legacy gallery grid used by scans/model pages */
.container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 1rem auto;
  width: min(980px, calc(100% - 2rem));
}

.container img {
  width: 100%;
  border: 2px solid var(--ds-border);
  background: var(--ds-bg-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.container img:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-soft);
  transform: translateY(-1px);
}

@media screen and (max-width: 700px) {
  .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Legacy button class, visually aligned with NES buttons */
.btn {
  display: inline-block;
  border: 4px solid var(--ds-border-strong);
  background: var(--ds-panel);
  color: var(--ds-text);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 4px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: inset -4px -4px var(--ds-border);
}

.btn:hover,
.btn:focus {
  background: var(--ds-accent-soft);
  color: var(--ds-text);
  text-decoration: none;
}

.btn.active {
  background: var(--ds-accent);
  color: #fff;
  box-shadow: inset 4px 4px var(--ds-accent-strong);
}

/* Legacy modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 31, 43, 0.82);
  animation: dsFadeIn 0.18s ease-out;
}

.modal-content {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  margin: 4vh auto 0;
  padding: 10px;
  background: var(--ds-panel);
  border: 4px solid var(--ds-border-strong);
  box-shadow: var(--ds-shadow-pixel);
  text-align: center;
}

.center-fit {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
}

#caption {
  display: block;
  width: fit-content;
  max-width: min(90vw, 760px);
  margin: 12px auto;
  padding: 8px 12px;
  border: 4px solid var(--ds-border-strong);
  background: var(--ds-panel);
  color: var(--ds-text);
  text-align: center;
}

.close {
  position: absolute;
  top: 12px;
  right: 28px;
  z-index: 30;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: var(--ds-accent-soft);
  cursor: pointer;
  text-decoration: none;
}

@keyframes dsFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tables get the DS panel treatment by default */
table {
  background: var(--ds-panel);
  color: var(--ds-text);
}

th,
td {
  border-color: var(--ds-border-strong);
}

/* ---------------------------------------------------------
   Home page cards
--------------------------------------------------------- */
.home-hero {
  border-color: var(--ds-border);
  background: var(--ds-panel);
  box-shadow: var(--ds-shadow-soft);
}

.home-hero .title {
  text-align: center;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-col {
  flex: 1 1 220px;
}

.hero-label,
.project-tag,
.project-open {
  font-family: "ArkPixel10px", system-ui, -apple-system, sans-serif;
}

.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-muted);
  margin-bottom: 4px;
}

.hero-main-line {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--ds-muted);
}

.home-hero ol {
  margin: 0;
  padding-left: 1.1em;
}

.home-hero li {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.2em;
}

.home-section {
  margin-top: 20px;
  border-color: var(--ds-border);
  background: var(--ds-panel);
  box-shadow: var(--ds-shadow-soft);
}

.home-section .title {
  padding-bottom: 2px;
}

.home-section h2 {
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 4px solid var(--ds-border-strong);
  background: var(--ds-panel);
  box-shadow: none;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.1s ease-out, background-color 0.1s ease-out;
}

.project-card:hover {
  border-color: var(--ds-accent);
  background-color: var(--ds-bg-soft);
  box-shadow: var(--ds-shadow-soft);
  transform: translateY(-1px);
  text-decoration: none;
}

.project-thumb {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-soft);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.project-thumb-icon {
  font-size: 32px;
  opacity: 0.9;
  color: var(--ds-accent);
}

.project-body {
  padding: 10px 12px 12px;
}

.project-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ds-text);
}

.project-desc {
  margin: 0 0 8px;
  line-height: 1.4;
  font-size: 0.92rem;
  color: var(--ds-muted);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ds-muted);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
  background: var(--ds-bg-soft);
  font-size: 0.78rem;
}

.project-tag i,
.project-open i {
  font-size: 0.78rem;
}

.project-tag i {
  color: var(--ds-accent);
}

.project-open {
  white-space: nowrap;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------
   Shared sidebar navigation, moved out of /ui/sidenavigation.html
--------------------------------------------------------- */
.tab.nes-container {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--ds-sidebar-width);
  height: auto;
  margin: 0;
  padding: 12px 16px 12px 8px;
  border-color: #222;
  background-color: var(--ds-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.tab::before {
  content: "V's Site";
  display: block;
  padding: 0 6px 4px;
  margin-bottom: 4px;
  font-family: "ArkPixel12px", system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ds-muted);
}

.tab button,
.tab a {
  border: none;
  outline: none;
  background: transparent;
  font-family: "ArkPixel12px", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: left;
  color: #283248;
  padding: 0;
  margin: 0;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.tab .menu-btn {
  display: flex;
  width: 100%;
}

.tab .menu-btn-inner {
  width: 100%;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  background-color: var(--ds-panel);
  
  border-image-repeat: unset;
}

.tab .menu-btn-inner i.fa {
  font-size: 1rem;
  color: #7b8bb0;
}

.tab .menu-btn-inner:hover {
  background-color: var(--ds-accent-soft);
  color: #111827;
}

.tab .menu-btn-inner:hover i.fa,
.tab button.active .menu-btn-inner i.fa {
  color: var(--ds-accent-strong);
}

.tab button.active .menu-btn-inner {
  background-color: #d5defb;
}

.tab .home-button .menu-btn-inner {
  justify-content: center;
  font-size: 0;
  border-image-repeat: unset;
}

.tab .home-button .menu-btn-inner i.fa-home {
  font-size: 1.25rem;
}

.filler {
  flex: 1 1 auto;
}

.tabcontent.nes-container {
  position: fixed;
  top: 14px;
  left: calc(var(--ds-sidebar-width) + 14px);
  min-width: 220px;
  max-width: 360px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  margin: 0;
  padding: 10px 12px 12px;
  background-color: var(--ds-panel);
  border-color: #222;
  display: none;
  z-index: 9;
  animation: dsFadeIn 0.16s ease-out;
}

.dropdown-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "ArkPixel12px", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

.dropdown-container p {
  margin: 0 0 6px;
  padding-bottom: 4px;
  font-family: "ArkPixel12px", system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  border-bottom: 1px solid #ccd4e5;
}

.dropdown-container a {
  border-radius: 4px;
  padding: 5px 6px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.dropdown-container a .fa-caret-right {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dropdown-container a:hover {
  background-color: var(--ds-accent-soft);
  color: #111827;
  transform: translateX(2px);
}

.sidenav2.nes-container {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 56px;
  height: auto;
  margin: 0;
  padding: 10px 6px;
  background-color: var(--ds-bg-soft);
  border-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.sidenav2 a {
  color: #4b5563;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidenav2 a:hover {
  color: #111827;
  transform: scale(1.08);
}

@media screen and (max-width: 700px) {
  :root {
    --ds-sidebar-width: 0px;
  }

  .overlay {
    margin-left: 0;
    padding: 112px 10px 32px;
  }

  .home-wrap,
  .page-wrap {
    padding: 0 8px;
  }

  .textcontainer,
  .header {
    width: 100%;
    margin: 12px auto;
    padding: 1rem;
  }

  .hero-col {
    flex: unset;
  }

  .hero-row {
    flex-direction: column;
  }

  .tab.nes-container {
    position: fixed;
    inset-inline: 6px;
    top: 6px;
    bottom: auto;
    height: min-content;
    width: auto;
    max-width: none;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
  }

  .tab::before {
    display: none;
  }

  .tab .menu-btn-inner {
    justify-content: center;
    padding-inline: 6px;
  }

  .filler {
    display: none;
  }

  .tabcontent.nes-container {
    left: 6px;
    right: 6px;
    top: 116px;
    max-width: none;
    width: auto;
  }

  .sidenav2.nes-container {
    display: block;
  }
}
