:root {
  --rad: .7rem;
  --dur: .3s;
  --color-dark: #2f2f2f;
  --color-light: #fff;
  --color-brand: #ffffff;
  --font-fam: 'Lato', sans-serif;
  --height: 5rem;
  --btn-width: 3rem;
  --bez: cubic-bezier(0, 0, 0.43, 1.49);
}

/* Setup */
body {
  /* Dark fallback color plus layered background: local wallpaper (if present)
     with a subtle gradient fallback so the page isn't purely black when the
     image file is missing. */
  background-color: var(--color-dark);
  background-image: url("./wallhaven-m3v3j1.png"), linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  /* base readable font size */
  font-size: 16px;
  color: white;
}
html { box-sizing: border-box; height: 100%; font-size: 10px; } *, *::before, *::after { box-sizing: inherit; }

/* Main styles */
form {
  position: relative;
  /* responsive width */
  width: min(30rem, 92vw);
  /* match nav panel appearance */
  background: rgba(0,0,0,0.32);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-left: 6px solid rgba(255,255,255,0.08);
  padding: 0.6rem;
}
input, button {
  height: var(--height);
  font-family: var(--font-fam);
  border: 0;
  color: var(--color-dark);
  font-size: 1.8rem;
}
input[type="search"] {
  /* outline: 0; -- should probably remove this for better accessibility, adding for demo aesthetics for now. */
  width: 100%;
  /* slightly lighter translucent field so placeholder remains readable */
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: calc(var(--rad) - 0.1rem);
  appearance: none; /* for iOS input[type="search"] roundedness issue. border-radius alone doesn't work */
  transition: all var(--dur) var(--bez);
  transition-property: width, border-radius;
  z-index: 1;
  position: relative;
  border: none;
}

input::placeholder { color: rgba(255,255,255,0.7); }

button[type="submit"] {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: none;
  padding: 0.6rem 0.8rem;
  margin-left: 0.25rem;
  border-radius: 6px;
}
h1 {
  font-size: 3em;
  margin: 0;
  text-align: center;
}

h2 {
  font-size: 2em;
  margin: 0;
  text-align: center;
}

h3 {
  font-size: 2em;
  margin: 0;
  text-align: center;
}
label {
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}

a:focus,

a:hover {
  color: #1d81b2;
}
nav {
  display: grid;
  grid-row-gap: 1em;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 1em;
  min-width: 24em;
  padding: 1em 1.25em 1em 0;
  /* Rounded translucent panel behind nav text */
  background: rgba(0,0,0,0.32);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  /* thicker left border for emphasis */
  border-left: 6px solid rgba(255,255,255,0.08);
  padding-left: 1.25em;
}

/* Ensure the main title spans the full width of the nav and sits above the lists */
nav h1 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0.5rem;
}

.nav-section {
  display: block;
}

.list-title {
  font-weight: bold;
  line-height: 2em;
  margin: 0 0 0.5em 0;
  font-size: 1.25em;
}

img {
  border: 2px solid #313131;
  height: auto;
  object-fit: cover;
  object-position: 50% 100%;
  width: 8em;
}

/* Remove default bullets and reset spacing for nav lists */
/* Remove default bullets and reset spacing for nav lists (covers both .nav-section and legacy ul structure) */
nav ul,
nav .nav-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Larger, more readable nav link text */
/* Make nav/list text larger and give items breathing room */
nav ul li,
nav .nav-section ul li {
  font-size: 1.5rem; /* ~18px */
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

nav ul li a,
nav .nav-section ul li a {
  font-size: inherit;
  line-height: inherit;
}

