
/* ==============================================
   SMARTOVAL // ENTRANCE
   Dark terminal theme
   ============================================== */

/* DA CUSTOM FONTS >:D */

@font-face {
  font-family: "LoveLetter";
  src: url("fonts/LoveLetter.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chitani";
  src: url("fonts/ChitaniBT-Roman.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}




/* MAIN COLORS: Change these to customize the theme. */

:root {
  --background: #020403;
  --panel: #050906;
  --panel-bar: #0b140b;
  --green: #a3e875;
  --soft-green: #bad69e;
  --text: #becbb8;
  --muted: #93a98b;
  --border: #3d5931;
  --thin-border: #23341f;
  --font: "Chitani", "Lucida Console", "Courier New", monospace;
}

/* GENERAL PAGE SETUP */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 32px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text);
  background: var(--background);
  font: 13px/1.8 var(--font);
}

/* Subtle stationary scanline texture. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(119, 174, 104, .018) 3px,
    rgba(119, 174, 104, .018) 4px
  );
}

::selection {
  color: var(--background);
  background: var(--green);
}

a {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* Accessibility: Skip link */

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 8px 12px;

  color: var(--background);
  background: var(--green);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==============================================
   MAIN TERMINAL WINDOW
   ============================================== */

.terminal {
  position: relative;
  width: min(100%, 740px);

  border: 1px solid var(--border);
  background: var(--panel);

  box-shadow:
    0 0 0 1px rgba(22, 41, 23, .36),
    0 18px 80px rgba(0, 0, 0, .45);
}

/* TOP AND BOTTOM BARS */

.terminal-top,
.terminal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 16px;

  padding: 9px 18px;
  background: var(--panel-bar);
  color: var(--muted);

  font-size: 10px;
  letter-spacing: .045em;
}

.terminal-top {
  border-bottom: 1px solid var(--border);
}

.terminal-bottom {
  border-top: 1px solid var(--border);
  font-size: 9px;
}

/* GREEN STATUS INDICATOR */

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;

  background: var(--green);
  vertical-align: 1px;
}

.top-right {
  color: var(--soft-green);
}

.terminal-bottom span:first-child {
  color: var(--soft-green);
}

/* ==============================================
   TERMINAL CONTENT
   ============================================== */

.terminal-content {
  padding: 48px 56px 50px;
}

/* Command-line text */

.command {
  margin: 0 0 35px;
  color: var(--muted);
  font-size: 11px;
}

.prompt {
  color: var(--soft-green);
}

/* Small heading above site title */

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .09em;
}

/* MAIN WEBSITE TITLE */

h1 {
  margin: 0;
  color: var(--green);

  font: normal clamp(37px, 7vw, 67px)/1.18
    "LoveLetter", "Courier New", monospace;

  letter-spacing: -.065em;

  text-shadow:
    0 0 17px rgba(163, 232, 117, .10);
}

/* Static underscore cursor */

.underscore {
  font-weight: 400;
  animation: terminal-blink 1s steps(1, end) infinite;
}

@keyframes terminal-blink {
  0%, 49% {
    opacity: 1;
  }
  
  50%, 100% {
    opacity: 0;
  }
}

/* for visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {
  .underscore {
    animation: none;
  }
}

/* Subtitle beneath title */

.subheading {
  margin: 5px 0 0;
  color: var(--soft-green);
  font-size: 13px;
}

/* Welcome paragraph */

.intro {
  margin: 31px 0 34px;
  max-width: 570px;
  line-height: 2;
}

/* ==============================================
   VISITOR NOTICE SECTION
   ============================================== */

.notices {
  padding: 19px 0 20px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.notices h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .07em;
}

.notice-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 16px;
  margin: 6px 0;
  font-size: 11px;
}

.notice-key {
  color: var(--muted);
}

.notice-footnote {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
}

/* ==============================================
   ENTER BUTTON
   ============================================== */

.entry-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 33px;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 47px;
  padding: 10px 18px;

  border: 1px solid var(--green);
  color: var(--green);
  background: #0b1409;

  font: bold 12px/1.5 var(--font);
  text-decoration: none;
}

/* Button changes appearance when hovered */

.enter-button:hover {
  color: var(--background);
  background: var(--green);
}

.path-label {
  color: var(--muted);
  font-size: 10px;
}

/* ==============================================
   MOBILE DEVICE SUPPORT
   ============================================== */

@media (max-width: 590px) {

  body {
    padding: 19px 13px;
  }

  .terminal-content {
    padding: 30px 23px 34px;
  }

  .terminal-top,
  .terminal-bottom {
    padding: 10px 12px;
  }

  .terminal-top {
    font-size: 9px;
  }

  .top-right {
    display: none;
  }

  .command {
    margin-bottom: 28px;
  }

  .intro {
    margin: 24px 0 27px;
  }

  .notice-line {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 11px;
  }

  .entry-row {
    margin-top: 26px;
  }
}

/* TERMINAL GLITCH SHAKE */

/* ==========================================
   SMARTOVAL - GLITCH EFFECT
   ========================================== */

#site-title {
  display: inline-block;
  position: relative;

  animation: smartoval-glitch 2s steps(1, end) infinite;
}

@keyframes smartoval-glitch {
  0%, 79%, 100% {
    transform: translate(0, 0);
    text-shadow: none;
  }

  80%, 84% {
    transform: translate(-3px, 1px);
    text-shadow:
      -4px 0 0 #ff365e,
       4px 0 0 #00eaff;
  }

  85%, 89% {
    transform: translate(3px, -1px);
    text-shadow:
       4px 0 0 #ff365e,
      -4px 0 0 #00eaff;
  }

  90%, 94% {
    transform: translate(-2px, 0);
    text-shadow:
      -2px 0 0 #ff365e,
       2px 0 0 #00eaff;
  }

  95% {
    transform: translate(0, 0);
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #site-title {
    animation: none;
  }
}
/* TITLE AND GIF LAYOUT */

.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.entrance-gif {
  display: block;
  width: 150px;
  height: auto;
  max-width: 35%;
  object-fit: contain;
  flex-shrink: 0;
}

/* MOBILE SUPPORT */

@media (max-width: 590px) {
  .title-container {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .entrance-gif {
    width: 110px;
  }
}