:root {
  --cream: #F3ECDD;
  --paper: #FBF7EE;
  --ink: #2B1F16;
  --walnut: #6B4B2F;
  --tan: #C9A87C;
  --stitch: #8A6A45;
  --muted: #5A4632;
  --shadow: rgba(43, 31, 22, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Fraunces", Georgia, serif; overflow-x: hidden; }
button, select { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; }

.page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(138, 106, 69, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 106, 69, 0.06) 1px, transparent 1px),
    var(--cream);
  background-size: 18px 18px;
}

.top-strip {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero { min-height: calc(100vh - 32px); display: grid; grid-template-rows: 1fr auto; }
.desktop-wrap { display: grid; place-items: center; padding: 28px clamp(16px, 4vw, 56px) 18px; }

.computer {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  min-height: 560px;
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 168, 124, 0.32), transparent 24%),
    radial-gradient(circle at 14% 86%, rgba(107, 75, 47, 0.13), transparent 26%),
    var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 12px 14px 0 var(--tan), 0 28px 70px var(--shadow);
  overflow: hidden;
}

.computer::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1.5px dashed rgba(138, 106, 69, 0.55);
  border-radius: 10px;
  pointer-events: none;
  z-index: 4;
}

.desktop { position: absolute; inset: 0; overflow: hidden; }
.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(43, 31, 22, 0.03) 50%, transparent 50%),
    radial-gradient(circle, rgba(43, 31, 22, 0.14) 1px, transparent 1.5px);
  background-size: 100% 6px, 11px 11px;
  mix-blend-mode: multiply;
  opacity: 0.58;
  pointer-events: none;
}

.desktop-watermark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(720px, 58%);
  max-height: 46%;
  object-fit: contain;
  opacity: 0.115;
  transform: translate(-45%, -54%);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.boot-screen {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(43, 31, 22, 0.94), rgba(74, 52, 33, 0.9)), var(--ink);
  color: var(--paper);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.boot-screen.is-hidden { opacity: 0; visibility: hidden; transform: scale(1.02); pointer-events: none; }
.boot-panel { width: min(540px, calc(100% - 48px)); border: 2px solid var(--tan); box-shadow: 8px 8px 0 rgba(201, 168, 124, 0.28); background: rgba(43, 31, 22, 0.62); padding: 30px; }
.boot-mark { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed rgba(201, 168, 124, 0.65); }
.boot-title { margin: 0; font-size: clamp(31px, 4vw, 54px); line-height: 0.95; letter-spacing: 0.02em; text-transform: uppercase; }
.boot-light { width: 17px; height: 17px; border: 2px solid var(--tan); background: var(--paper); box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.14); animation: blinkLight 1s steps(2, end) infinite; }
.boot-lines { margin: 22px 0 24px; display: grid; gap: 9px; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #E8D7BD; }
.scan-row { display: grid; grid-template-columns: 96px 1fr 42px; align-items: center; gap: 10px; }
.meter { height: 10px; border: 1px solid rgba(201, 168, 124, 0.8); background: rgba(251, 247, 238, 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--tan), var(--tan) 5px, transparent 5px, transparent 8px); animation: dotSweep 1.2s steps(8, end) infinite; }
.meter-74 span { width: 74%; }
.meter-58 span { width: 58%; }
.meter-91 span { width: 91%; }

.enter-btn {
  width: 100%;
  border: 2px solid var(--tan);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  box-shadow: 4px 4px 0 rgba(201, 168, 124, 0.6);
}
.enter-btn:hover, .enter-btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(201, 168, 124, 0.8); outline: none; }

.menu-bar {
  height: 42px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: var(--walnut);
  color: var(--paper);
  border-bottom: 3px solid var(--ink);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wordmark { height: 31px; width: 185px; object-fit: contain; filter: brightness(0) invert(1) sepia(0.18) saturate(0.6); }
.menu-status { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.status-dots { display: grid; grid-template-columns: repeat(5, 6px); gap: 4px; }
.status-dots span { height: 6px; background: var(--tan); opacity: 0.45; animation: pulseDots 1.4s steps(1, end) infinite; }
.status-dots span:nth-child(2) { animation-delay: 0.18s; }
.status-dots span:nth-child(3) { animation-delay: 0.36s; }
.status-dots span:nth-child(4) { animation-delay: 0.54s; }
.status-dots span:nth-child(5) { animation-delay: 0.72s; }

.desktop-icons { position: absolute; z-index: 3; top: 76px; left: 34px; display: grid; gap: 22px; width: 152px; }
.desk-icon { border: 2px solid transparent; background: transparent; padding: 8px 6px; cursor: pointer; display: grid; justify-items: center; gap: 8px; min-height: 94px; }
.desk-icon:hover, .desk-icon:focus-visible, .desk-icon.is-selected { border-color: var(--stitch); background: rgba(251, 247, 238, 0.58); outline: none; }
.folder-shape, .file-shape { width: 58px; height: 44px; position: relative; background: var(--tan); border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(107, 75, 47, 0.32); }
.folder-shape::before { content: ""; position: absolute; left: -2px; top: -13px; width: 34px; height: 13px; background: #D8BE91; border: 2px solid var(--ink); border-bottom: 0; }
.file-shape { width: 46px; height: 58px; background: var(--paper); }
.file-shape::before { content: ""; position: absolute; right: -2px; top: -2px; border-top: 15px solid var(--cream); border-left: 15px solid transparent; width: 0; height: 0; }
.file-shape::after { content: ""; position: absolute; left: 9px; right: 9px; top: 20px; height: 2px; background: var(--stitch); box-shadow: 0 9px 0 var(--stitch), 0 18px 0 var(--stitch); }
.icon-name { max-width: 126px; padding: 3px 6px; background: rgba(251, 247, 238, 0.7); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }

.window { position: absolute; z-index: 5; width: min(690px, calc(100% - 260px)); min-height: 390px; right: 52px; top: 96px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 10px 12px 0 var(--tan), 0 24px 50px var(--shadow); display: none; transform: translateY(16px) scale(0.98); }
.window.is-open { display: block; animation: windowIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.2) forwards; }
.window.is-dragging { animation: none; cursor: grabbing; user-select: none; }
.window.about-window, .window.contact-window { width: min(560px, calc(100% - 300px)); right: 118px; top: 132px; }
.title-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 0 7px 0 12px; background: var(--walnut); color: var(--paper); border-bottom: 3px solid var(--ink); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: grab; touch-action: none; }
.window.is-dragging .title-bar { cursor: grabbing; }
.window-controls { display: flex; gap: 6px; }
.win-btn { min-width: 28px; height: 24px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 rgba(43, 31, 22, 0.2); cursor: pointer; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; line-height: 1; }
.win-btn:hover, .win-btn:focus-visible { background: var(--tan); outline: none; }
.window-body { padding: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--stitch); margin-bottom: 14px; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.back-btn, .sort-select { border: 2px solid var(--ink); background: var(--paper); min-height: 32px; padding: 0 10px; box-shadow: 3px 3px 0 var(--tan); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; }
.back-btn { cursor: pointer; }
.back-btn:hover, .back-btn:focus-visible, .sort-select:focus-visible { transform: translate(-1px, -1px); outline: none; }

.file-list { display: grid; gap: 8px; }
.file-row { display: grid; grid-template-columns: 34px 1fr 104px 98px; gap: 12px; align-items: center; min-height: 44px; padding: 8px 10px; border: 2px solid rgba(43, 31, 22, 0.28); background: rgba(243, 236, 221, 0.55); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; }
.file-row:hover { background: var(--cream); border-color: var(--ink); }
.mini-icon { width: 24px; height: 18px; background: var(--tan); border: 2px solid var(--ink); position: relative; }
.mini-icon::before { content: ""; position: absolute; left: -2px; top: -7px; width: 15px; height: 7px; background: #D8BE91; border: 2px solid var(--ink); border-bottom: 0; }
.plugin-name { font-weight: 600; }
.plugin-type, .plugin-status { color: var(--muted); text-align: right; }
.about-copy { font-family: "IBM Plex Mono", Consolas, monospace; color: var(--ink); font-size: 13px; line-height: 1.75; }
.about-copy h2 { margin: 0 0 14px; font-family: "Fraunces", Georgia, serif; font-size: 34px; line-height: 1; text-transform: uppercase; }
.about-copy p { margin: 0 0 13px; }
.mail-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.schnauzer { position: absolute; z-index: 3; width: 150px; right: 36px; bottom: 34px; filter: drop-shadow(6px 7px 0 rgba(107, 75, 47, 0.2)); animation: dogIdle 2.6s ease-in-out infinite; }
.desktop-note { position: absolute; z-index: 3; left: 222px; bottom: 42px; max-width: 430px; padding: 17px 20px; background: rgba(251, 247, 238, 0.78); border: 2px dashed var(--stitch); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.08em; }
.scroll-hint { display: flex; justify-content: center; padding: 0 16px 22px; font-family: "IBM Plex Mono", Consolas, monospace; color: var(--stitch); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.below { padding: 84px clamp(20px, 6vw, 86px) 110px; border-top: 2px dashed var(--stitch); background: var(--paper); }
.below-inner { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.below h1 { margin: 0; font-size: clamp(42px, 7vw, 88px); line-height: 0.96; text-transform: uppercase; }
.below p { margin: 18px 0 0; max-width: 590px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.goods-card { position: relative; padding: 28px; background: var(--cream); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--tan); }
.goods-card::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--stitch); pointer-events: none; }
.goods-card h2 { margin: 0 0 10px; font-size: 28px; }
.goods-card p { margin: 0; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 13px; }
.card-link { display: inline-block; margin-top: 20px; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.mobile-shell { display: none; }

@keyframes blinkLight { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0.3; } }
@keyframes dotSweep { from { background-position: 0 0; } to { background-position: 16px 0; } }
@keyframes pulseDots { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes windowIn { to { transform: translateY(0) scale(1); } }
@keyframes dogIdle { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 840px) {
  .top-strip { height: auto; min-height: 32px; padding: 8px 16px; line-height: 1.45; text-align: center; letter-spacing: 0.1em; overflow-wrap: anywhere; }
  .hero { min-height: auto; display: block; }
  .desktop-wrap { padding: 16px; }
  .computer { aspect-ratio: auto; min-height: auto; border-radius: 14px; box-shadow: 7px 8px 0 var(--tan); }
  .desktop { display: none; }
  .mobile-shell { display: block; position: relative; padding: 62px 18px 24px; min-height: 640px; background: radial-gradient(circle, rgba(43, 31, 22, 0.12) 1px, transparent 1.5px), var(--paper); background-size: 10px 10px; }
  .mobile-brand { margin: 0 0 22px; font-size: clamp(32px, 10.5vw, 42px); line-height: 0.95; text-transform: uppercase; }
  .mobile-copy { margin: 0 0 24px; font-family: "IBM Plex Mono", Consolas, monospace; color: var(--muted); font-size: 13px; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.07em; }
  .mobile-stack { display: grid; gap: 12px; }
  details.mobile-file { border: 2px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--tan); }
  details.mobile-file summary { min-height: 52px; padding: 14px; cursor: pointer; list-style: none; font-family: "IBM Plex Mono", Consolas, monospace; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
  details.mobile-file summary::-webkit-details-marker { display: none; }
  details.mobile-file summary::after { content: "+"; font-weight: 600; }
  details.mobile-file[open] summary::after { content: "-"; }
  .mobile-panel { border-top: 1.5px dashed var(--stitch); padding: 14px; font-family: "IBM Plex Mono", Consolas, monospace; color: var(--muted); font-size: 12px; line-height: 1.65; }
  .mobile-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .mobile-list li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px dashed rgba(138, 106, 69, 0.55); }
  .menu-bar { position: absolute; inset: 0 0 auto 0; }
  .menu-status { display: none; }
  .wordmark { width: 150px; }
  .boot-panel { width: calc(100% - 34px); padding: 18px; }
  .boot-title { font-size: clamp(29px, 10vw, 42px); }
  .boot-lines { font-size: 10px; }
  .scan-row { grid-template-columns: 70px minmax(90px, 1fr) 28px; font-size: 10px; gap: 7px; }
  .enter-btn { letter-spacing: 0.1em; padding-inline: 10px; }
  .below { padding: 62px 20px 74px; }
  .below-inner { grid-template-columns: 1fr; }
}
